public CharacterParser AddCharacterForTitle(TitleParser title, bool adult = false) { CharacterParser chr = CharacterManager.instance.GetNewCharacter(); chr.GiveTitle(title); if (title.Rank > 0) { characters.Add(chr); } return(chr); }
public CharacterParser AddCharacterForTitle(TitleParser title, String culture, String religion) { CharacterParser chr = CharacterManager.instance.CreateNewCharacter(culture, religion, Rand.Next(8) == 0); chr.GiveTitle(title); if (title.Rank > 0) { characters.Add(chr); } return(chr); }
public void Save() { foreach (var religionParser in AllReligions) { if (religionParser.ReligiousHeadTitle != null) { CharacterParser chr = CharacterManager.instance.GetNewCharacter(); chr.GiveTitle(religionParser.ReligiousHeadTitle); chr.religion = religionParser.Name; } } script.Save(); }
public void Init() { // ModularFunctionalityManager.instance.Save(); DynastyManager.instance.Init(); CharacterManager.instance.Init(); CulturalDnaManager.instance.Init(); CultureManager.instance.Init(); EventManager.instance.Load(); DecisionManager.instance.Load(); TraitManager.instance.Init(); SpriteManager.instance.Init(); foreach (var titleParser in TitleManager.instance.Titles) { titleParser.DoCapital(); } ReligionManager.instance.Init(); CharacterParser chr = CharacterManager.instance.GetNewCharacter(); characters.Add(chr); Random rand = new Random(); for (int n = 0; n < 1; n++) { ScriptScope s = new ScriptScope(); string name = chr.Culture.dna.GetPlaceName(); s.Name = StarNames.SafeName(name); LanguageManager.instance.Add(s.Name, name); //872 vanilla MapManager.instance.ProvinceIDMap[872].RenameForCulture(chr.Culture); var tit = MapManager.instance.ProvinceIDMap[872].CreateTitle(); // if (chr.Culture.dna.horde) // tit.Scope.Do("historical_nomad = yes"); chr.GiveTitle(tit); MapManager.instance.ProvinceIDMap[872].CreateProvinceDetails(chr.Culture); } }