private static bool Prefix(CharacterCreation characterCreation) //private static void Test(CharacterCreation characterCreation) { //Change here to make addtl cultures first one to load int maincultures = 0; foreach (CultureObject cultureObject in MBObjectManager.Instance.GetObjectTypeList<CultureObject>()) { if (cultureObject.IsMainCulture) { maincultures++; } } if (maincultures == 6) { CultureStartOptions.AddGameOption(characterCreation); } else { CultureStartOptions.AddtlCultures(characterCreation); CultureStartOptions.AddGameOption(characterCreation); } CharacterCreationContent.AddParentsMenu(characterCreation); CharacterCreationContent.AddChildhoodMenu(characterCreation); CharacterCreationContent.AddEducationMenu(characterCreation); CharacterCreationContent.AddYouthMenu(characterCreation); CharacterCreationContent.AddAdulthoodMenu(characterCreation); //CultureStartOptions.AddStartOption(characterCreation, CharacterCreationContent.Instance); //CultureStartOptions.AddStartLocation(characterCreation); return false; }
private static bool Prefix(CharacterCreation characterCreation, CharacterCreationContent __instance) //private static void Test(CharacterCreation characterCreation) { CharacterCreationContent.AddParentsMenu(characterCreation); CharacterCreationContent.AddChildhoodMenu(characterCreation); CharacterCreationContent.AddEducationMenu(characterCreation); CharacterCreationContent.AddYouthMenu(characterCreation); CharacterCreationContent.AddAdulthoodMenu(characterCreation); CultureStartOptions.AddStartOption(characterCreation); CharacterCreationContent.Instance.GetType().GetMethod("AddEscapeMenu", BindingFlags.NonPublic | BindingFlags.Static).Invoke(CharacterCreationContent.Instance, new object[] { characterCreation }); //CultureStartOptions.AddStartOption2(characterCreation); return(false); }