private static void EscapeOnInit(CharacterCreation characterCreation) //Different from Base { //Use these to get private fields FaceGenChar mother = (FaceGenChar)CharacterCreationContent.Instance.GetType().GetField("_mother", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(CharacterCreationContent.Instance); FaceGenChar father = (FaceGenChar)CharacterCreationContent.Instance.GetType().GetField("_father", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(CharacterCreationContent.Instance); characterCreation.CurrentStage = CharacterCreation.Stages.EscapeMenu; characterCreation.ClearFaceGenPrefab(); ClearCharacters(characterCreation); ClearMountEntity(characterCreation); Hero @object = MBObjectManager.Instance.GetObject <Hero>("tutorial_npc_brother"); List <FaceGenChar> list = new List <FaceGenChar>(); BodyProperties bodyProperties = CharacterObject.PlayerCharacter.GetBodyProperties(CharacterObject.PlayerCharacter.Equipment, -1); bodyProperties = FaceGen.GetBodyPropertiesWithAge(ref bodyProperties, 23f); BodyProperties randomBodyProperties = BodyProperties.GetRandomBodyProperties(CharacterObject.PlayerCharacter.IsFemale, mother.BodyProperties, father.BodyProperties, 1, Hero.MainHero.Mother.CharacterObject.GetDefaultFaceSeed(1), Hero.MainHero.Father.CharacterObject.HairTags, Hero.MainHero.Father.CharacterObject.BeardTags, Hero.MainHero.Father.CharacterObject.TattooTags); randomBodyProperties = new BodyProperties(new DynamicBodyProperties(randomBodyProperties.Age, 0.5f, 0.5f), randomBodyProperties.StaticProperties); @object.ModifyPlayersFamilyAppearance(randomBodyProperties.StaticProperties); @object.DynamicBodyProperties = randomBodyProperties.DynamicProperties; list.Add(new FaceGenChar(bodyProperties, new Equipment(), CharacterObject.PlayerCharacter.IsFemale, "act_childhood_schooled")); // if (CSCharCreationOption.CSWithFamily) { list.Add(new FaceGenChar(@object.BodyProperties, new Equipment(), @object.CharacterObject.IsFemale, "act_brotherhood_schooled")); characterCreation.ChangeFaceGenChars(list); characterCreation.ChangeCharsAnimation(new List <string> { "act_childhood_schooled", "act_brotherhood_schooled" }); } else { characterCreation.ChangeFaceGenChars(list); characterCreation.ChangeCharsAnimation(new List <string> { "act_childhood_schooled", }); } //CharacterCreationContent.Instance.GetType().GetMethod("ChangeStoryStageEquipments", BindingFlags.NonPublic | BindingFlags.Static).Invoke(CharacterCreationContent.Instance, new object[] { characterCreation }); **Cant invoke due to Hardcoded change brother ChangeStoryStageEquipments(characterCreation); List <FaceGenMount> list2 = new List <FaceGenMount>(); if (CharacterObject.PlayerCharacter.HasMount()) { ItemObject item = CharacterObject.PlayerCharacter.Equipment[EquipmentIndex.ArmorItemEndSlot].Item; list2.Add(new FaceGenMount(MountCreationKey.FromString(MountCreationKey.GetRandomMountKey(item, 2)), CharacterObject.PlayerCharacter.Equipment[EquipmentIndex.ArmorItemEndSlot].Item, CharacterObject.PlayerCharacter.Equipment[EquipmentIndex.HorseHarness].Item, "act_inventory_idle_start")); } if (@object.CharacterObject.HasMount()) { ItemObject item2 = @object.CharacterObject.Equipment[EquipmentIndex.ArmorItemEndSlot].Item; list2.Add(new FaceGenMount(MountCreationKey.FromString(MountCreationKey.GetRandomMountKey(item2, 2)), @object.CharacterObject.Equipment[EquipmentIndex.ArmorItemEndSlot].Item, @object.CharacterObject.Equipment[EquipmentIndex.HorseHarness].Item, "act_inventory_idle_start")); } }
// Token: 0x06000240 RID: 576 RVA: 0x0000D1DD File Offset: 0x0000B3DD private static void EscapeOrganizeTravellersOnConsequence(CharacterCreation characterCreation) { List <string> Anims = new List <string>(); if (CSCharCreationOption.CSWithFamily) { Anims.Add("act_childhood_schooled"); Anims.Add("act_brotherhood_manners"); } else { Anims.Add("act_childhood_schooled"); } characterCreation.ChangeCharsAnimation(Anims); }
// Token: 0x0600023E RID: 574 RVA: 0x0000D197 File Offset: 0x0000B397 private static void EscapeFastHorseOnConsequence(CharacterCreation characterCreation) { List <string> Anims = new List <string>(); if (CSCharCreationOption.CSWithFamily) { Anims.Add("act_childhood_fox"); Anims.Add("act_brotherhood_gracious"); } else { Anims.Add("act_childhood_fox"); } characterCreation.ChangeCharsAnimation(Anims); }
// Token: 0x0600023F RID: 575 RVA: 0x0000D1BA File Offset: 0x0000B3BA private static void EscapeRoadOffWithBrotherOnConsequence(CharacterCreation characterCreation) { List <string> Anims = new List <string>(); if (CSCharCreationOption.CSWithFamily) { Anims.Add("act_childhood_tough"); Anims.Add("act_brotherhood_clever"); } else { Anims.Add("act_childhood_tough"); } characterCreation.ChangeCharsAnimation(Anims); }
// Token: 0x0600023D RID: 573 RVA: 0x0000D174 File Offset: 0x0000B374 private static void EscapeDrawArrowsOnConsequence(CharacterCreation characterCreation) { List <string> Anims = new List <string>(); if (CSCharCreationOption.CSWithFamily) { Anims.Add("act_childhood_ready"); Anims.Add("act_brotherhood_fierce"); } else { Anims.Add("act_childhood_ready"); } characterCreation.ChangeCharsAnimation(Anims); }