using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Security.Permissions; using BepInEx; using BepInEx.Bootstrap; using BepInEx.Configuration; using BepInEx.Logging; using MonoMod.RuntimeDetour; using MonoMod.RuntimeDetour.HookGen; using MwSkinAdditions; using RiskOfOptions; using RiskOfOptions.OptionConfigs; using RiskOfOptions.Options; using RoR2; using RuneFoxMods.DynamicSkins; using UnityEngine; using UnityEngine.AddressableAssets; using UnityEngine.Rendering; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("0.0.0.0")] namespace NiaMercSkin { public static class MwSkinEvents { public static VoiceGroup[] voiceGroups; private static BlendShapeAnimation[] blinkAnimations = (BlendShapeAnimation[])(object)new BlendShapeAnimation[1] { (BlendShapeAnimation)new BlinkBlendShapeAnimation("MercMesh", "LowBlink", -1, 0, 0.1f, 0f, 0.1f, false) }; private static IdleAnimation[] conditionalIdleAnimations = (IdleAnimation[])(object)new IdleAnimation[2] { new IdleAnimation((BlendShapeAnimation[])(object)new BlendShapeAnimation[2] { new BlendShapeAnimation("MercMesh", "BrowAngry", 1, -2, 0.3f, float.PositiveInfinity, 0.3f, false), new BlendShapeAnimation("MercMesh", "MouthFrown", 2, -2, 0.3f, float.PositiveInfinity, 0.3f, false) }, (Func)InCombat, true), new IdleAnimation((BlendShapeAnimation[])(object)new BlendShapeAnimation[3] { new BlendShapeAnimation("MercMesh", "EyesDepressed", 0, -1, 0.3f, float.PositiveInfinity, 0.3f, true), new BlendShapeAnimation("MercMesh", "BrowsConcerned", 1, -1, 0.3f, float.PositiveInfinity, 0.3f, false), new BlendShapeAnimation("MercMesh", "MouthFrown", 2, -1, 0.3f, float.PositiveInfinity, 0.3f, false) }, (Func)IsLowHealth, true) }; public static VoiceArray blockDamage = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[6] { new VoiceInfo("Play_NiaMerc_Block_1", 2.4f), new VoiceInfo("Play_NiaMerc_Block_2", 1.9f), new VoiceInfo("Play_NiaMerc_Block_3", 1.3f), new VoiceInfo("Play_NiaMerc_Block_4", 1.7f), new VoiceInfo("Play_NiaMerc_Block_5", 1.5f), new VoiceInfo("Play_NiaMerc_Block_6", 1.6f) }); public static VoiceArray damage = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[4] { new VoiceInfo("Play_NiaMerc_Damage_1", 1f), new VoiceInfo("Play_NiaMerc_Damage_2", 1f), new VoiceInfo("Play_NiaMerc_Damage_3", 0.7f), new VoiceInfo("Play_NiaMerc_Damage_4", 0.9f) }); public static VoiceArray death = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[5] { new VoiceInfo("Play_NiaMerc_Death_1", 4.5f), new VoiceInfo("Play_NiaMerc_Death_2", 1.5f), new VoiceInfo("Play_NiaMerc_Death_3", 2f), new VoiceInfo("Play_NiaMerc_Death_4", 2.2f), new VoiceInfo("Play_NiaMerc_Death_5", 1.5f) }); public static VoiceArray defeatBossGroup = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[5] { new VoiceInfo("Play_NiaMerc_Defeat_Boss_Group_1", 1.7f), new VoiceInfo("Play_NiaMerc_Defeat_Boss_Group_2", 1.6f), new VoiceInfo("Play_NiaMerc_Defeat_Boss_Group_3", 2.2f), new VoiceInfo("Play_NiaMerc_Defeat_Boss_Group_4", 2.3f), new VoiceInfo("Play_NiaMerc_Defeat_Boss_Group_5", 1.3f) }); public static VoiceArray getItem = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[10] { new VoiceInfo("Play_NiaMerc_Get_Item_1", 0.7f), new VoiceInfo("Play_NiaMerc_Get_Item_2", 0.5f), new VoiceInfo("Play_NiaMerc_Get_Item_3", 0.7f), new VoiceInfo("Play_NiaMerc_Get_Item_4", 1.8f), new VoiceInfo("Play_NiaMerc_Get_Item_5", 3.1f), new VoiceInfo("Play_NiaMerc_Get_Item_6", 1.6f), new VoiceInfo("Play_NiaMerc_Get_Item_7", 2.4f), new VoiceInfo("Play_NiaMerc_Get_Item_8", 1.7f), new VoiceInfo("Play_NiaMerc_Get_Item_9", 2.2f), new VoiceInfo("Play_NiaMerc_Get_Item_10", 1.5f) }); public static VoiceArray heal = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[3] { new VoiceInfo("Play_NiaMerc_Heal_1", 2.5f), new VoiceInfo("Play_NiaMerc_Heal_2", 1.5f), new VoiceInfo("Play_NiaMerc_Heal_3", 1.3f) }); public static VoiceArray leavePod = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[3] { new VoiceInfo("Play_NiaMerc_Leave_Pod_1", 1.8f), new VoiceInfo("Play_NiaMerc_Leave_Pod_2", 1.3f), new VoiceInfo("Play_NiaMerc_Leave_Pod_3", 1.1f) }); public static VoiceArray levelUp = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[6] { new VoiceInfo("Play_NiaMerc_Level_Up_1", 2.2f), new VoiceInfo("Play_NiaMerc_Level_Up_2", 1.5f), new VoiceInfo("Play_NiaMerc_Level_Up_3", 1.3f), new VoiceInfo("Play_NiaMerc_Level_Up_4", 2.3f), new VoiceInfo("Play_NiaMerc_Level_Up_5", 1.7f), new VoiceInfo("Play_NiaMerc_Level_Up_6", 2f) }); public static VoiceArray lowHealth = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[5] { new VoiceInfo("Play_NiaMerc_Low_Health_1", 2.5f), new VoiceInfo("Play_NiaMerc_Low_Health_2", 2.1f), new VoiceInfo("Play_NiaMerc_Low_Health_3", 2.7f), new VoiceInfo("Play_NiaMerc_Low_Health_4", 1.7f), new VoiceInfo("Play_NiaMerc_Low_Health_5", 1.8f) }); public static VoiceArray mithrixDefeat = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[2] { new VoiceInfo("Play_NiaMerc_Mithrix_Defeat_1", 1.9f), new VoiceInfo("Play_NiaMerc_Mithrix_Defeat_2", 2.4f) }); public static VoiceArray secondary = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[6] { new VoiceInfo("Play_NiaMerc_Secondary_1", 0.4f), new VoiceInfo("Play_NiaMerc_Secondary_2", 0.3f), new VoiceInfo("Play_NiaMerc_Secondary_3", 0.3f), new VoiceInfo("Play_NiaMerc_Secondary_4", 0.3f), new VoiceInfo("Play_NiaMerc_Secondary_5", 0.3f), new VoiceInfo("Play_NiaMerc_Secondary_6", 0.3f) }); public static VoiceArray shrineFailure = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[3] { new VoiceInfo("Play_NiaMerc_Shrine_Failure_1", 3f), new VoiceInfo("Play_NiaMerc_Shrine_Failure_2", 0.8f), new VoiceInfo("Play_NiaMerc_Shrine_Failure_3", 1.2f) }); public static VoiceArray shrineSuccess = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[3] { new VoiceInfo("Play_NiaMerc_Shrine_Success_1", 1.3f), new VoiceInfo("Play_NiaMerc_Shrine_Success_2", 1.3f), new VoiceInfo("Play_NiaMerc_Shrine_Success_3", 1.5f) }); public static VoiceArray special = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[6] { new VoiceInfo("Play_NiaMerc_Special_1", 1.3f), new VoiceInfo("Play_NiaMerc_Special_2", 1.4f), new VoiceInfo("Play_NiaMerc_Special_3", 1f), new VoiceInfo("Play_NiaMerc_Special_4", 1.4f), new VoiceInfo("Play_NiaMerc_Special_5", 0.9f), new VoiceInfo("Play_NiaMerc_Special_6", 1.3f) }); public static VoiceArray endTP = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[10] { new VoiceInfo("Play_NiaMerc_TP_End_1", 1.7f), new VoiceInfo("Play_NiaMerc_TP_End_2", 3.3f), new VoiceInfo("Play_NiaMerc_TP_End_3", 2.6f), new VoiceInfo("Play_NiaMerc_TP_End_4", 1.2f), new VoiceInfo("Play_NiaMerc_TP_End_5", 1.7f), new VoiceInfo("Play_NiaMerc_TP_End_6", 2.1f), new VoiceInfo("Play_NiaMerc_TP_End_7", 1.7f), new VoiceInfo("Play_NiaMerc_TP_End_8", 1f), new VoiceInfo("Play_NiaMerc_TP_End_9", 2.1f), new VoiceInfo("Play_NiaMerc_TP_End_10", 2.8f) }); public static VoiceArray startTP = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[10] { new VoiceInfo("Play_NiaMerc_TP_Start_1", 2.4f), new VoiceInfo("Play_NiaMerc_TP_Start_2", 3.5f), new VoiceInfo("Play_NiaMerc_TP_Start_3", 1.4f), new VoiceInfo("Play_NiaMerc_TP_Start_4", 2.2f), new VoiceInfo("Play_NiaMerc_TP_Start_5", 1.9f), new VoiceInfo("Play_NiaMerc_TP_Start_6", 1.7f), new VoiceInfo("Play_NiaMerc_TP_Start_7", 2.2f), new VoiceInfo("Play_NiaMerc_TP_Start_8", 1.7f), new VoiceInfo("Play_NiaMerc_TP_Start_9", 2f), new VoiceInfo("Play_NiaMerc_TP_Start_10", 1.4f) }); public static VoiceArray utility = new VoiceArray((VoiceInfo[])(object)new VoiceInfo[6] { new VoiceInfo("Play_NiaMerc_Utility_1", 0.7f), new VoiceInfo("Play_NiaMerc_Utility_2", 1.3f), new VoiceInfo("Play_NiaMerc_Utility_3", 1.3f), new VoiceInfo("Play_NiaMerc_Utility_4", 0.8f), new VoiceInfo("Play_NiaMerc_Utility_5", 1.3f), new VoiceInfo("Play_NiaMerc_Utility_6", 1.4f) }); public static void InitDriver(SkinDef[] skinDefs) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Expected O, but got Unknown //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_0041: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown //IL_00a6: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Unknown result type (might be due to invalid IL or missing references) //IL_00ce: Unknown result type (might be due to invalid IL or missing references) //IL_00ef: Unknown result type (might be due to invalid IL or missing references) //IL_00f0: Unknown result type (might be due to invalid IL or missing references) //IL_0111: Unknown result type (might be due to invalid IL or missing references) //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_0133: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) //IL_0155: Unknown result type (might be due to invalid IL or missing references) //IL_0156: Unknown result type (might be due to invalid IL or missing references) //IL_0177: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_0199: Unknown result type (might be due to invalid IL or missing references) //IL_019a: Unknown result type (might be due to invalid IL or missing references) //IL_01bb: Unknown result type (might be due to invalid IL or missing references) //IL_01bc: Unknown result type (might be due to invalid IL or missing references) //IL_01dd: Unknown result type (might be due to invalid IL or missing references) //IL_01de: Unknown result type (might be due to invalid IL or missing references) //IL_0212: Unknown result type (might be due to invalid IL or missing references) //IL_0213: Unknown result type (might be due to invalid IL or missing references) //IL_0247: Unknown result type (might be due to invalid IL or missing references) //IL_0248: Unknown result type (might be due to invalid IL or missing references) //IL_027c: Unknown result type (might be due to invalid IL or missing references) //IL_027d: Unknown result type (might be due to invalid IL or missing references) //IL_02b1: Unknown result type (might be due to invalid IL or missing references) //IL_02b2: Unknown result type (might be due to invalid IL or missing references) //IL_02e6: Unknown result type (might be due to invalid IL or missing references) //IL_02e7: Unknown result type (might be due to invalid IL or missing references) //IL_031b: Unknown result type (might be due to invalid IL or missing references) //IL_031c: Unknown result type (might be due to invalid IL or missing references) //IL_0350: Unknown result type (might be due to invalid IL or missing references) //IL_0351: Unknown result type (might be due to invalid IL or missing references) //IL_0385: Unknown result type (might be due to invalid IL or missing references) //IL_0386: Unknown result type (might be due to invalid IL or missing references) //IL_03ba: Unknown result type (might be due to invalid IL or missing references) //IL_03bb: Unknown result type (might be due to invalid IL or missing references) //IL_03ef: Unknown result type (might be due to invalid IL or missing references) //IL_03f0: Unknown result type (might be due to invalid IL or missing references) //IL_0424: Unknown result type (might be due to invalid IL or missing references) //IL_0425: Unknown result type (might be due to invalid IL or missing references) //IL_0459: Unknown result type (might be due to invalid IL or missing references) //IL_045a: Unknown result type (might be due to invalid IL or missing references) //IL_048e: Unknown result type (might be due to invalid IL or missing references) //IL_048f: Unknown result type (might be due to invalid IL or missing references) //IL_04c3: Unknown result type (might be due to invalid IL or missing references) //IL_04c4: Unknown result type (might be due to invalid IL or missing references) //IL_04f8: Unknown result type (might be due to invalid IL or missing references) //IL_04f9: Unknown result type (might be due to invalid IL or missing references) //IL_051a: Unknown result type (might be due to invalid IL or missing references) //IL_051b: Unknown result type (might be due to invalid IL or missing references) EventSubOptions val = new EventSubOptions(); val.boneTransformations = (BoneTransformation[])(object)new BoneTransformation[3] { new BoneTransformation("MercArmature/ROOT/base/stomach/chest/clavicle.l", Vector3.one * 0.806f, Vector3.zero, (string)null), new BoneTransformation("MercArmature/ROOT/base/stomach/chest/clavicle.r", Vector3.one * 0.806f, Vector3.zero, (string)null), new BoneTransformation("MercArmature/ROOT/base/stomach/chest/SwingCenter/SwordBase", Vector3.one * 0.806f, Vector3.zero, "MercArmature/ROOT/base/stomach/chest/clavicle.l/upper_arm.l/lower_arm.l/hand.l") }; val.voiceGroups = voiceGroups; val.useAnimations = true; val.blinkAnimations = blinkAnimations; val.conditionalIdleAnimations = conditionalIdleAnimations; EventSub val2 = new EventSub(skinDefs, val); val2.TakeDamage = (Action)Delegate.Combine(val2.TakeDamage, new Action(ExpressionOnHit)); val2.Death = (Action)Delegate.Combine(val2.Death, new Action(ExpressionOnDeath)); val2.ShrineFailure = (Action)Delegate.Combine(val2.ShrineFailure, new Action(ExpressionOnShrineFailure)); val2.LevelUp = (Action)Delegate.Combine(val2.LevelUp, new Action(ExpressionOnHoldoutOnLevelOnMithrix)); val2.MithrixDefeat = (Action)Delegate.Combine(val2.MithrixDefeat, new Action(ExpressionOnHoldoutOnLevelOnMithrix)); val2.HoldoutZoneCharged = (Action)Delegate.Combine(val2.HoldoutZoneCharged, new Action(ExpressionOnHoldoutOnLevelOnMithrix)); val2.GetItem = (Action)Delegate.Combine(val2.GetItem, new Action(ExpressionOnItem)); val2.TakeDamage = (Action)Delegate.Combine(val2.TakeDamage, new Action(LowHealthLine)); val2.Heal = (Action)Delegate.Combine(val2.Heal, new Action(HeavyHealLine)); val2.TakeDamage = (Action)Delegate.Combine(val2.TakeDamage, (Action)delegate(GameObject body, DamageReport damageReport) { if (body != null) { VoiceController component15 = body.GetComponent(); if (component15 != null) { component15.TryPlayRandomUniqueSoundServer(damage, body, 0.4f); } } }); val2.Death = (Action)Delegate.Combine(val2.Death, (Action)delegate(GameObject body) { if (body != null) { VoiceController component14 = body.GetComponent(); if (component14 != null) { component14.TryPlayRandomSoundServer(death, body, 1f); } } }); val2.DefeatBossGroup = (Action)Delegate.Combine(val2.DefeatBossGroup, (Action)delegate(GameObject body) { if (body != null) { VoiceController component13 = body.GetComponent(); if (component13 != null) { component13.TryPlayRandomUniqueSoundServer(defeatBossGroup, body, 1f); } } }); val2.TeleporterStart = (Action)Delegate.Combine(val2.TeleporterStart, (Action)delegate(GameObject body) { if (body != null) { VoiceController component12 = body.GetComponent(); if (component12 != null) { component12.TryPlayRandomUniqueSoundServer(startTP, body, 1f); } } }); val2.TeleporterEnd = (Action)Delegate.Combine(val2.TeleporterEnd, (Action)delegate(GameObject body) { if (body != null) { VoiceController component11 = body.GetComponent(); if (component11 != null) { component11.TryPlayRandomUniqueSoundServer(endTP, body, 1f); } } }); val2.LeavePod = (Action)Delegate.Combine(val2.LeavePod, (Action)delegate(GameObject body) { if (body != null) { VoiceController component10 = body.GetComponent(); if (component10 != null) { component10.TryPlayRandomUniqueSoundServer(leavePod, body, 1f); } } }); val2.GetItem = (Action)Delegate.Combine(val2.GetItem, (Action)delegate(GameObject body, ItemIndex itemIndex) { if (body != null) { VoiceController component9 = body.GetComponent(); if (component9 != null) { component9.TryPlayRandomUniqueSoundServer(getItem, body, 0.75f); } } }); val2.ShrineSuccess = (Action)Delegate.Combine(val2.ShrineSuccess, (Action)delegate(GameObject body) { if (body != null) { VoiceController component8 = body.GetComponent(); if (component8 != null) { component8.TryPlayRandomUniqueSoundServer(shrineSuccess, body, 1f); } } }); val2.ShrineFailure = (Action)Delegate.Combine(val2.ShrineFailure, (Action)delegate(GameObject body) { if (body != null) { VoiceController component7 = body.GetComponent(); if (component7 != null) { component7.TryPlayRandomUniqueSoundServer(shrineFailure, body, 1f); } } }); val2.LevelUp = (Action)Delegate.Combine(val2.LevelUp, (Action)delegate(GameObject body) { if (body != null) { VoiceController component6 = body.GetComponent(); if (component6 != null) { component6.TryPlayRandomUniqueSoundServer(levelUp, body, 0.25f); } } }); val2.BearDamageBlock = (Action)Delegate.Combine(val2.BearDamageBlock, (Action)delegate(GameObject body) { if (body != null) { VoiceController component5 = body.GetComponent(); if (component5 != null) { component5.TryPlayRandomUniqueSoundServer(blockDamage, body, 0.6f); } } }); val2.UseSpecial = (Action)Delegate.Combine(val2.UseSpecial, (Action)delegate(GameObject body) { if (body != null) { VoiceController component4 = body.GetComponent(); if (component4 != null) { component4.TryPlayRandomUniqueSoundServer(special, body, 0.25f); } } }); val2.UseSecondary = (Action)Delegate.Combine(val2.UseSecondary, (Action)delegate(GameObject body) { if (body != null) { VoiceController component3 = body.GetComponent(); if (component3 != null) { component3.TryPlayRandomUniqueSoundServer(secondary, body, 0.15f); } } }); val2.UseUtility = (Action)Delegate.Combine(val2.UseUtility, (Action)delegate(GameObject body) { if (body != null) { VoiceController component2 = body.GetComponent(); if (component2 != null) { component2.TryPlayRandomUniqueSoundServer(utility, body, 0.25f); } } }); val2.MithrixDefeat = (Action)Delegate.Combine(val2.MithrixDefeat, (Action)delegate(GameObject body) { if (body != null) { VoiceController component = body.GetComponent(); if (component != null) { component.TryPlayRandomUniqueSoundServer(mithrixDefeat, body, 0.15f); } } }); val2.SkinAppliedLobby = (Action)Delegate.Combine(val2.SkinAppliedLobby, new Action(HideLightsLobby)); val2.SkinAppliedRun = (Action)Delegate.Combine(val2.SkinAppliedRun, new Action(HideLightsRun)); val2.Init(); } public static void InitBlade(SkinDef[] skinDefs) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0007: Expected O, but got Unknown //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0033: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Expected O, but got Unknown //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_0081: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Expected O, but got Unknown //IL_00b5: Unknown result type (might be due to invalid IL or missing references) //IL_00ba: Unknown result type (might be due to invalid IL or missing references) //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00dd: Unknown result type (might be due to invalid IL or missing references) //IL_00fe: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0142: Unknown result type (might be due to invalid IL or missing references) //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_0164: Unknown result type (might be due to invalid IL or missing references) //IL_0165: Unknown result type (might be due to invalid IL or missing references) //IL_0186: Unknown result type (might be due to invalid IL or missing references) //IL_0187: Unknown result type (might be due to invalid IL or missing references) //IL_01a8: Unknown result type (might be due to invalid IL or missing references) //IL_01a9: Unknown result type (might be due to invalid IL or missing references) //IL_01ca: Unknown result type (might be due to invalid IL or missing references) //IL_01cb: Unknown result type (might be due to invalid IL or missing references) //IL_01ec: Unknown result type (might be due to invalid IL or missing references) //IL_01ed: Unknown result type (might be due to invalid IL or missing references) //IL_0221: Unknown result type (might be due to invalid IL or missing references) //IL_0222: Unknown result type (might be due to invalid IL or missing references) //IL_0256: Unknown result type (might be due to invalid IL or missing references) //IL_0257: Unknown result type (might be due to invalid IL or missing references) //IL_028b: Unknown result type (might be due to invalid IL or missing references) //IL_028c: Unknown result type (might be due to invalid IL or missing references) //IL_02c0: Unknown result type (might be due to invalid IL or missing references) //IL_02c1: Unknown result type (might be due to invalid IL or missing references) //IL_02f5: Unknown result type (might be due to invalid IL or missing references) //IL_02f6: Unknown result type (might be due to invalid IL or missing references) //IL_032a: Unknown result type (might be due to invalid IL or missing references) //IL_032b: Unknown result type (might be due to invalid IL or missing references) //IL_035f: Unknown result type (might be due to invalid IL or missing references) //IL_0360: Unknown result type (might be due to invalid IL or missing references) //IL_0394: Unknown result type (might be due to invalid IL or missing references) //IL_0395: Unknown result type (might be due to invalid IL or missing references) //IL_03c9: Unknown result type (might be due to invalid IL or missing references) //IL_03ca: Unknown result type (might be due to invalid IL or missing references) //IL_03fe: Unknown result type (might be due to invalid IL or missing references) //IL_03ff: Unknown result type (might be due to invalid IL or missing references) //IL_0433: Unknown result type (might be due to invalid IL or missing references) //IL_0434: Unknown result type (might be due to invalid IL or missing references) //IL_0468: Unknown result type (might be due to invalid IL or missing references) //IL_0469: Unknown result type (might be due to invalid IL or missing references) //IL_049d: Unknown result type (might be due to invalid IL or missing references) //IL_049e: Unknown result type (might be due to invalid IL or missing references) //IL_04d2: Unknown result type (might be due to invalid IL or missing references) //IL_04d3: Unknown result type (might be due to invalid IL or missing references) //IL_0507: Unknown result type (might be due to invalid IL or missing references) //IL_0508: Unknown result type (might be due to invalid IL or missing references) //IL_0529: Unknown result type (might be due to invalid IL or missing references) //IL_052a: Unknown result type (might be due to invalid IL or missing references) EventSubOptions val = new EventSubOptions(); val.boneTransformations = (BoneTransformation[])(object)new BoneTransformation[3] { new BoneTransformation("MercArmature/ROOT/base/stomach/chest/clavicle.l", Vector3.one * 0.84f, new Vector3(0f, -0.04f, 0f), (string)null), new BoneTransformation("MercArmature/ROOT/base/stomach/chest/clavicle.r", Vector3.one * 0.84f, Vector3.zero, (string)null), new BoneTransformation("MercArmature/ROOT/base/stomach/chest/SwingCenter/SwordBase", Vector3.one * 0.806f, Vector3.zero, "MercArmature/ROOT/base/stomach/chest/clavicle.l/upper_arm.l/lower_arm.l/hand.l") }; val.voiceGroups = voiceGroups; val.useAnimations = true; val.blinkAnimations = blinkAnimations; val.conditionalIdleAnimations = conditionalIdleAnimations; EventSub val2 = new EventSub(skinDefs, val); val2.TakeDamage = (Action)Delegate.Combine(val2.TakeDamage, new Action(ExpressionOnHit)); val2.Death = (Action)Delegate.Combine(val2.Death, new Action(ExpressionOnDeath)); val2.ShrineFailure = (Action)Delegate.Combine(val2.ShrineFailure, new Action(ExpressionOnShrineFailure)); val2.LevelUp = (Action)Delegate.Combine(val2.LevelUp, new Action(ExpressionOnHoldoutOnLevelOnMithrix)); val2.MithrixDefeat = (Action)Delegate.Combine(val2.MithrixDefeat, new Action(ExpressionOnHoldoutOnLevelOnMithrix)); val2.HoldoutZoneCharged = (Action)Delegate.Combine(val2.HoldoutZoneCharged, new Action(ExpressionOnHoldoutOnLevelOnMithrix)); val2.GetItem = (Action)Delegate.Combine(val2.GetItem, new Action(ExpressionOnItem)); val2.TakeDamage = (Action)Delegate.Combine(val2.TakeDamage, new Action(LowHealthLine)); val2.Heal = (Action)Delegate.Combine(val2.Heal, new Action(HeavyHealLine)); val2.TakeDamage = (Action)Delegate.Combine(val2.TakeDamage, (Action)delegate(GameObject body, DamageReport damageReport) { if (body != null) { VoiceController component15 = body.GetComponent(); if (component15 != null) { component15.TryPlayRandomUniqueSoundServer(damage, body, 0.4f); } } }); val2.Death = (Action)Delegate.Combine(val2.Death, (Action)delegate(GameObject body) { if (body != null) { VoiceController component14 = body.GetComponent(); if (component14 != null) { component14.TryPlayRandomSoundServer(death, body, 1f); } } }); val2.DefeatBossGroup = (Action)Delegate.Combine(val2.DefeatBossGroup, (Action)delegate(GameObject body) { if (body != null) { VoiceController component13 = body.GetComponent(); if (component13 != null) { component13.TryPlayRandomUniqueSoundServer(defeatBossGroup, body, 1f); } } }); val2.TeleporterStart = (Action)Delegate.Combine(val2.TeleporterStart, (Action)delegate(GameObject body) { if (body != null) { VoiceController component12 = body.GetComponent(); if (component12 != null) { component12.TryPlayRandomUniqueSoundServer(startTP, body, 1f); } } }); val2.TeleporterEnd = (Action)Delegate.Combine(val2.TeleporterEnd, (Action)delegate(GameObject body) { if (body != null) { VoiceController component11 = body.GetComponent(); if (component11 != null) { component11.TryPlayRandomUniqueSoundServer(endTP, body, 1f); } } }); val2.LeavePod = (Action)Delegate.Combine(val2.LeavePod, (Action)delegate(GameObject body) { if (body != null) { VoiceController component10 = body.GetComponent(); if (component10 != null) { component10.TryPlayRandomUniqueSoundServer(leavePod, body, 1f); } } }); val2.GetItem = (Action)Delegate.Combine(val2.GetItem, (Action)delegate(GameObject body, ItemIndex itemIndex) { if (body != null) { VoiceController component9 = body.GetComponent(); if (component9 != null) { component9.TryPlayRandomUniqueSoundServer(getItem, body, 0.75f); } } }); val2.ShrineSuccess = (Action)Delegate.Combine(val2.ShrineSuccess, (Action)delegate(GameObject body) { if (body != null) { VoiceController component8 = body.GetComponent(); if (component8 != null) { component8.TryPlayRandomUniqueSoundServer(shrineSuccess, body, 1f); } } }); val2.ShrineFailure = (Action)Delegate.Combine(val2.ShrineFailure, (Action)delegate(GameObject body) { if (body != null) { VoiceController component7 = body.GetComponent(); if (component7 != null) { component7.TryPlayRandomUniqueSoundServer(shrineFailure, body, 1f); } } }); val2.LevelUp = (Action)Delegate.Combine(val2.LevelUp, (Action)delegate(GameObject body) { if (body != null) { VoiceController component6 = body.GetComponent(); if (component6 != null) { component6.TryPlayRandomUniqueSoundServer(levelUp, body, 0.25f); } } }); val2.BearDamageBlock = (Action)Delegate.Combine(val2.BearDamageBlock, (Action)delegate(GameObject body) { if (body != null) { VoiceController component5 = body.GetComponent(); if (component5 != null) { component5.TryPlayRandomUniqueSoundServer(blockDamage, body, 0.6f); } } }); val2.UseSpecial = (Action)Delegate.Combine(val2.UseSpecial, (Action)delegate(GameObject body) { if (body != null) { VoiceController component4 = body.GetComponent(); if (component4 != null) { component4.TryPlayRandomUniqueSoundServer(special, body, 0.25f); } } }); val2.UseSecondary = (Action)Delegate.Combine(val2.UseSecondary, (Action)delegate(GameObject body) { if (body != null) { VoiceController component3 = body.GetComponent(); if (component3 != null) { component3.TryPlayRandomUniqueSoundServer(secondary, body, 0.15f); } } }); val2.UseUtility = (Action)Delegate.Combine(val2.UseUtility, (Action)delegate(GameObject body) { if (body != null) { VoiceController component2 = body.GetComponent(); if (component2 != null) { component2.TryPlayRandomUniqueSoundServer(utility, body, 0.25f); } } }); val2.MithrixDefeat = (Action)Delegate.Combine(val2.MithrixDefeat, (Action)delegate(GameObject body) { if (body != null) { VoiceController component = body.GetComponent(); if (component != null) { component.TryPlayRandomUniqueSoundServer(mithrixDefeat, body, 0.15f); } } }); val2.SkinAppliedLobby = (Action)Delegate.Combine(val2.SkinAppliedLobby, new Action(HideLightsLobby)); val2.SkinAppliedRun = (Action)Delegate.Combine(val2.SkinAppliedRun, new Action(HideLightsRun)); val2.Init(); } private static void HideLightsLobby(GameObject body) { ((Component)body.transform.Find("MercArmature/ROOT/base/stomach/chest/Point Light (1)")).gameObject.SetActive(false); ((Component)body.transform.Find("MercArmature/ROOT/base/stomach/chest/SwingCenter/SwordBase/Point Light")).gameObject.SetActive(false); } private static void HideLightsRun(GameObject body) { GameObject modelFromEventBody = SkinEvents.GetModelFromEventBody(body); ((Component)modelFromEventBody.transform.Find("MercArmature/ROOT/base/stomach/chest/Point Light")).gameObject.SetActive(false); ((Component)modelFromEventBody.transform.Find("MercArmature/ROOT/base/stomach/chest/SwingCenter/SwordBase/Point Light")).gameObject.SetActive(false); } private static bool InCombat(ExpressionController expressionController) { CharacterBody characterBody = expressionController.characterBody; if ((Object)(object)characterBody != (Object)null) { return !characterBody.outOfCombat; } return false; } private static bool IsLowHealth(ExpressionController expressionController) { CharacterBody characterBody = expressionController.characterBody; if ((Object)(object)characterBody != (Object)null) { if (characterBody == null) { return false; } HealthComponent healthComponent = characterBody.healthComponent; return ((healthComponent != null) ? new float?(healthComponent.combinedHealthFraction) : null) <= 0.25f; } return false; } private static void LowHealthLine(GameObject body, DamageReport damageReport) { if (damageReport == null) { return; } HealthComponent victim = damageReport.victim; if (((victim != null) ? new float?(((Component)victim).GetComponent().combinedHealthFraction) : null) <= 0.25f && body != null) { VoiceController component = body.GetComponent(); if (component != null) { component.TryPlayRandomUniqueSoundServer(lowHealth, body, 0.8f); } } } private static void HeavyHealLine(GameObject body, float amount) { VoiceController val = ((body != null) ? body.GetComponent() : null); if (val != null) { object obj; if (body == null) { obj = null; } else { CharacterBody component = body.GetComponent(); obj = ((component != null) ? component.healthComponent : null); } HealthComponent val2 = (HealthComponent)obj; if (val2 != null && amount >= 0.5f * val2.fullCombinedHealth && val2.combinedHealth < 0.5f * val2.fullCombinedHealth) { val.TryPlayRandomSoundServer(heal, body, 1f); } } } private static void ExpressionOnHit(GameObject body, DamageReport damageReport) { //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0076: Expected O, but got Unknown //IL_0093: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Expected O, but got Unknown //IL_00ba: Unknown result type (might be due to invalid IL or missing references) //IL_00c4: Expected O, but got Unknown if (damageReport == null) { return; } HealthComponent victim = damageReport.victim; if (((victim != null) ? new float?(((Component)victim).GetComponent().combinedHealthFraction) : null) > 0.25f) { ExpressionController component = body.GetComponent(); if (component != null) { component.TryPlayAnimation(new BlendShapeAnimation("MercMesh", "EyesHurt", 0, 0, 0.1f, 0.3f, 0.1f, true)); component.TryPlayAnimation(new BlendShapeAnimation("MercMesh", "BrowHurt", 1, 0, 0.1f, 0.3f, 0.1f, false)); component.TryPlayAnimation(new BlendShapeAnimation("MercMesh", "MouthGrimace", 2, 0, 0.1f, 0.3f, 0.1f, false)); } } } private static void ExpressionOnShrineFailure(GameObject body) { //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_0031: Expected O, but got Unknown //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Expected O, but got Unknown ExpressionController component = body.GetComponent(); if (component != null) { component.TryPlayAnimation(new BlendShapeAnimation("MercMesh", "EyesGlare", 0, 0, 0.2f, 0.8f, 0.2f, true)); component.TryPlayAnimation(new BlendShapeAnimation("MercMesh", "MouthPuff", 2, 0, 0.2f, 0.8f, 0.2f, false)); } } private static void ExpressionOnHoldoutOnLevelOnMithrix(GameObject body) { //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_0031: Expected O, but got Unknown //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Expected O, but got Unknown ExpressionController component = body.GetComponent(); if (component != null) { component.TryPlayAnimation(new BlendShapeAnimation("MercMesh", "BrowHappy", 1, 0, 0.2f, 0.8f, 0.2f, false)); component.TryPlayAnimation(new BlendShapeAnimation("MercMesh", "MouthSmile", 2, 0, 0.2f, 0.8f, 0.2f, false)); } } private static void ExpressionOnItem(GameObject body, ItemIndex itemIndex) { //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_0031: Expected O, but got Unknown //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Expected O, but got Unknown //IL_0075: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Expected O, but got Unknown ExpressionController component = body.GetComponent(); if (component != null) { component.TryPlayAnimation(new BlendShapeAnimation("MercMesh", "HighBlink", 0, 0, 0.2f, 0.8f, 0.2f, true)); component.TryPlayAnimation(new BlendShapeAnimation("MercMesh", "BrowHappy", 1, 0, 0.2f, 0.8f, 0.2f, false)); component.TryPlayAnimation(new BlendShapeAnimation("MercMesh", "MouthSmile", 2, 0, 0.2f, 0.8f, 0.2f, false)); } } private static void ExpressionOnDeath(GameObject body) { //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_0031: Expected O, but got Unknown //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Expected O, but got Unknown //IL_0075: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Expected O, but got Unknown ExpressionController component = body.GetComponent(); if (component != null) { component.TryPlayAnimation(new BlendShapeAnimation("MercMesh", "EyesDeath", 0, 2, 0.2f, float.PositiveInfinity, 0.2f, true)); component.TryPlayAnimation(new BlendShapeAnimation("MercMesh", "BrowsConcerned", 1, 2, 0.2f, float.PositiveInfinity, 0.2f, false)); component.TryPlayAnimation(new BlendShapeAnimation("MercMesh", "MouthDeath", 2, 2, 0.2f, float.PositiveInfinity, 0.2f, false)); } } public static void CreateVoiceGroups() { //IL_0040: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Expected O, but got Unknown //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Expected O, but got Unknown //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_0086: Expected O, but got Unknown //IL_00a8: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Expected O, but got Unknown //IL_00c8: Unknown result type (might be due to invalid IL or missing references) //IL_00ce: Expected O, but got Unknown //IL_0118: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Expected O, but got Unknown //IL_0150: Unknown result type (might be due to invalid IL or missing references) //IL_0156: Expected O, but got Unknown RoR2Application.onLoadFinished = (Action)Delegate.Combine(RoR2Application.onLoadFinished, new Action(Options.OnLoadFinished)); voiceGroups = (VoiceGroup[])(object)new VoiceGroup[7] { new VoiceGroup((VoiceArray[])(object)new VoiceArray[1] { leavePod }, 0.5f, 0.5f), new VoiceGroup((VoiceArray[])(object)new VoiceArray[1] { death }, 5f, 5f), new VoiceGroup((VoiceArray[])(object)new VoiceArray[1] { getItem }, 15f, 60f), new VoiceGroup((VoiceArray[])(object)new VoiceArray[2] { shrineSuccess, shrineFailure }, 10f, 20f), new VoiceGroup((VoiceArray[])(object)new VoiceArray[1] { levelUp }, 10f, 30f), new VoiceGroup((VoiceArray[])(object)new VoiceArray[7] { damage, secondary, special, blockDamage, heal, lowHealth, utility }, 2.5f, 14f), new VoiceGroup((VoiceArray[])(object)new VoiceArray[4] { startTP, defeatBossGroup, endTP, mithrixDefeat }, 5f, 10f) }; } } public class Options { private static bool? _rooEnabled; public static bool rooEnabled { get { if (!_rooEnabled.HasValue) { _rooEnabled = Chainloader.PluginInfos.ContainsKey("com.rune580.riskofoptions"); } return _rooEnabled.Value; } } public static ConfigEntry niaVoiceVolume { get; set; } private static void NiaVoiceVolumeSettingChanged() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) AkSoundEngine.SetRTPCValue("NiaMercVoiceVolume", niaVoiceVolume.Value * 50f); } public static void Init() { niaVoiceVolume = NiaMercSkinPlugin.config.Bind("Sound", "Nia Voice Volume", 1f, "How loud Nia's voice is relative to other sound effects."); niaVoiceVolume.SettingChanged += delegate { NiaVoiceVolumeSettingChanged(); }; if (rooEnabled) { RoOInit(); } } public static void OnLoadFinished() { NiaVoiceVolumeSettingChanged(); } private static void RoOInit() { //IL_0005: Unknown result type (might be due to invalid IL or missing references) //IL_000a: Unknown result type (might be due to invalid IL or missing references) //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Expected O, but got Unknown //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Expected O, but got Unknown ModSettingsManager.AddOption((BaseOption)new StepSliderOption(niaVoiceVolume, new StepSliderConfig { min = 0f, max = 2f, increment = 0.01f })); ModSettingsManager.SetModDescription("Config options relating to the NiaMerc skin mod."); ModSettingsManager.SetModIcon(NiaMercSkinPlugin.assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Icons\\NiaDriverIcon.png")); } } [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("com.Miyowi.NiaMercSkin", "NiaMercSkin", "2.0.2")] public class NiaMercSkinPlugin : BaseUnityPlugin { private class FieldException : Exception { public FieldException(string message, Exception innerException) : base(message, innerException) { } } private class ElementException : Exception { public int Index { get; } public ElementException(int index, string message) : base(message) { Index = index; } } public class DynamicSkinExtension { private Modification NiaDriverPouchModification; private Modification NiaDriverKnife1Modification; private Modification NiaDriverKnife2Modification; private Modification NiaDriverKnife3Modification; private Modification NiaDriverCapeLModification; private Modification NiaDriverCapeRModification; private Modification NiaDriverChestJewelryModification; private Modification NiaDriverHoodBackModification; private Modification NiaDriverBackHairLModification; private Modification NiaDriverBackHairMModification; private Modification NiaDriverBackHairRModification; private Modification NiaDriverEarLModification; private Modification NiaDriverEarRModification; private Modification NiaDriverFrontHairModification; private Modification NiaDriverTendrilLModification; private Modification NiaDriverTendrilRModification; private Modification NiaCandyStripePouchModification; private Modification NiaCandyStripeKnife1Modification; private Modification NiaCandyStripeKnife2Modification; private Modification NiaCandyStripeKnife3Modification; private Modification NiaCandyStripeCapeLModification; private Modification NiaCandyStripeCapeRModification; private Modification NiaCandyStripeChestJewelryModification; private Modification NiaCandyStripeHoodBackModification; private Modification NiaCandyStripeBackHairLModification; private Modification NiaCandyStripeBackHairMModification; private Modification NiaCandyStripeBackHairRModification; private Modification NiaCandyStripeEarLModification; private Modification NiaCandyStripeEarRModification; private Modification NiaCandyStripeFrontHairModification; private Modification NiaCandyStripeTendrilLModification; private Modification NiaCandyStripeTendrilRModification; private Modification NiaBloodWitchPouchModification; private Modification NiaBloodWitchKnife1Modification; private Modification NiaBloodWitchKnife2Modification; private Modification NiaBloodWitchKnife3Modification; private Modification NiaBloodWitchCapeLModification; private Modification NiaBloodWitchCapeRModification; private Modification NiaBloodWitchChestJewelryModification; private Modification NiaBloodWitchHoodBackModification; private Modification NiaBloodWitchBackHairLModification; private Modification NiaBloodWitchBackHairMModification; private Modification NiaBloodWitchBackHairRModification; private Modification NiaBloodWitchEarLModification; private Modification NiaBloodWitchEarRModification; private Modification NiaBloodWitchFrontHairModification; private Modification NiaBloodWitchTendrilLModification; private Modification NiaBloodWitchTendrilRModification; private Modification NiaBladeBeltLeftModification; private Modification NiaBladeBeltRightModification; private Modification NiaBladeSkirtLeftModification; private Modification NiaBladeSkirtRightModification; private Modification NiaBladeArmSleeveLeftModification; private Modification NiaBladeArmSleeveRightModification; private Modification NiaBladeEarLeftModification; private Modification NiaBladeEarRightModification; private Modification NiaBladeHairBackLeftModification; private Modification NiaBladeHairBackRightModification; private Modification NiaBladeHairFrontLeftModification; private Modification NiaBladeHairFrontMiddleModification; private Modification NiaBladeHairFrontRightModification; private Modification NiaBladeRibbonBackModification; private Modification NiaBladeRibbonFrontModification; private Modification NiaDevotedMarigoldBeltLeftModification; private Modification NiaDevotedMarigoldBeltRightModification; private Modification NiaDevotedMarigoldSkirtLeftModification; private Modification NiaDevotedMarigoldSkirtRightModification; private Modification NiaDevotedMarigoldArmSleeveLeftModification; private Modification NiaDevotedMarigoldArmSleeveRightModification; private Modification NiaDevotedMarigoldEarLeftModification; private Modification NiaDevotedMarigoldEarRightModification; private Modification NiaDevotedMarigoldHairBackLeftModification; private Modification NiaDevotedMarigoldHairBackRightModification; private Modification NiaDevotedMarigoldHairFrontLeftModification; private Modification NiaDevotedMarigoldHairFrontMiddleModification; private Modification NiaDevotedMarigoldHairFrontRightModification; private Modification NiaDevotedMarigoldRibbonBackModification; private Modification NiaDevotedMarigoldRibbonFrontModification; private Modification NiaLoyalBellflowerBeltLeftModification; private Modification NiaLoyalBellflowerBeltRightModification; private Modification NiaLoyalBellflowerSkirtLeftModification; private Modification NiaLoyalBellflowerSkirtRightModification; private Modification NiaLoyalBellflowerArmSleeveLeftModification; private Modification NiaLoyalBellflowerArmSleeveRightModification; private Modification NiaLoyalBellflowerEarLeftModification; private Modification NiaLoyalBellflowerEarRightModification; private Modification NiaLoyalBellflowerHairBackLeftModification; private Modification NiaLoyalBellflowerHairBackRightModification; private Modification NiaLoyalBellflowerHairFrontLeftModification; private Modification NiaLoyalBellflowerHairFrontMiddleModification; private Modification NiaLoyalBellflowerHairFrontRightModification; private Modification NiaLoyalBellflowerRibbonBackModification; private Modification NiaLoyalBellflowerRibbonFrontModification; private Modification NiaSincerePrimroseBeltLeftModification; private Modification NiaSincerePrimroseBeltRightModification; private Modification NiaSincerePrimroseSkirtLeftModification; private Modification NiaSincerePrimroseSkirtRightModification; private Modification NiaSincerePrimroseArmSleeveLeftModification; private Modification NiaSincerePrimroseArmSleeveRightModification; private Modification NiaSincerePrimroseEarLeftModification; private Modification NiaSincerePrimroseEarRightModification; private Modification NiaSincerePrimroseHairBackLeftModification; private Modification NiaSincerePrimroseHairBackRightModification; private Modification NiaSincerePrimroseHairFrontLeftModification; private Modification NiaSincerePrimroseHairFrontMiddleModification; private Modification NiaSincerePrimroseHairFrontRightModification; private Modification NiaSincerePrimroseRibbonBackModification; private Modification NiaSincerePrimroseRibbonFrontModification; internal void BeforeStart() { //IL_0038: Unknown result type (might be due to invalid IL or missing references) _DynamicSkinManager.InstanceLogger = ((BaseUnityPlugin)Instance).Logger; new Hook((MethodBase)typeof(SkinDef).GetMethod("ApplyAsync"), (Delegate)new Func>, List>, int, IEnumerator>, SkinDef, GameObject, List>, List>, int, IEnumerator>(_DynamicSkinManager.SkinDefApply)).Apply(); } internal void AfterStart() { InitializeModifications(); InitializeDynamicBones(); AddModificationsToList(); } internal void BeforeBodyCatalogInit() { MercBodyNiaDriverSkinAddedEvent += onSkinAdded; MercBodyNiaCandyStripeSkinAddedEvent += onSkinAdded; MercBodyNiaBloodWitchSkinAddedEvent += onSkinAdded; MercBodyNiaBladeSkinAddedEvent += onSkinAdded; MercBodyNiaDevotedMarigoldSkinAddedEvent += onSkinAdded; MercBodyNiaLoyalBellflowerSkinAddedEvent += onSkinAdded; MercBodyNiaSincerePrimroseSkinAddedEvent += onSkinAdded; } internal void AfterBodyCatalogInit() { } private void InitializeModifications() { NiaDriverPouchModification = new Modification("Pouch.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIADRIVER_NAME", 116, AffectsBaseModel: true, assetBundle); NiaDriverKnife1Modification = new Modification("Knife1.prefab", "thigh.l", "MercBody", "MIYOWI_SKIN_NIADRIVER_NAME", 109, AffectsBaseModel: true, assetBundle); NiaDriverKnife2Modification = new Modification("Knife2.prefab", "thigh.l", "MercBody", "MIYOWI_SKIN_NIADRIVER_NAME", 110, AffectsBaseModel: true, assetBundle); NiaDriverKnife3Modification = new Modification("Knife3.prefab", "thigh.l", "MercBody", "MIYOWI_SKIN_NIADRIVER_NAME", 111, AffectsBaseModel: true, assetBundle); NiaDriverCapeLModification = new Modification("CapeL.prefab", "chest", "MercBody", "MIYOWI_SKIN_NIADRIVER_NAME", 88, AffectsBaseModel: true, assetBundle); NiaDriverCapeRModification = new Modification("CapeR.prefab", "chest", "MercBody", "MIYOWI_SKIN_NIADRIVER_NAME", 95, AffectsBaseModel: true, assetBundle); NiaDriverChestJewelryModification = new Modification("ChestJewelry.prefab", "chest", "MercBody", "MIYOWI_SKIN_NIADRIVER_NAME", 102, AffectsBaseModel: true, assetBundle); NiaDriverHoodBackModification = new Modification("HoodBack.prefab", "chest", "MercBody", "MIYOWI_SKIN_NIADRIVER_NAME", 103, AffectsBaseModel: true, assetBundle); NiaDriverBackHairLModification = new Modification("BackHairL.prefab", "head", "MercBody", "MIYOWI_SKIN_NIADRIVER_NAME", 31, AffectsBaseModel: true, assetBundle); NiaDriverBackHairMModification = new Modification("BackHairM.prefab", "head", "MercBody", "MIYOWI_SKIN_NIADRIVER_NAME", 34, AffectsBaseModel: true, assetBundle); NiaDriverBackHairRModification = new Modification("BackHairR.prefab", "head", "MercBody", "MIYOWI_SKIN_NIADRIVER_NAME", 37, AffectsBaseModel: true, assetBundle); NiaDriverEarLModification = new Modification("EarL.prefab", "head", "MercBody", "MIYOWI_SKIN_NIADRIVER_NAME", 49, AffectsBaseModel: true, assetBundle); NiaDriverEarRModification = new Modification("EarR.prefab", "head", "MercBody", "MIYOWI_SKIN_NIADRIVER_NAME", 52, AffectsBaseModel: true, assetBundle); NiaDriverFrontHairModification = new Modification("FrontHair.prefab", "head", "MercBody", "MIYOWI_SKIN_NIADRIVER_NAME", 40, AffectsBaseModel: true, assetBundle); NiaDriverTendrilLModification = new Modification("TendrilL.prefab", "head", "MercBody", "MIYOWI_SKIN_NIADRIVER_NAME", 43, AffectsBaseModel: true, assetBundle); NiaDriverTendrilRModification = new Modification("TendrilR.prefab", "head", "MercBody", "MIYOWI_SKIN_NIADRIVER_NAME", 46, AffectsBaseModel: true, assetBundle); NiaCandyStripePouchModification = new Modification("Pouch.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 116, AffectsBaseModel: true, assetBundle); NiaCandyStripeKnife1Modification = new Modification("Knife1.prefab", "thigh.l", "MercBody", "MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 109, AffectsBaseModel: true, assetBundle); NiaCandyStripeKnife2Modification = new Modification("Knife2.prefab", "thigh.l", "MercBody", "MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 110, AffectsBaseModel: true, assetBundle); NiaCandyStripeKnife3Modification = new Modification("Knife3.prefab", "thigh.l", "MercBody", "MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 111, AffectsBaseModel: true, assetBundle); NiaCandyStripeCapeLModification = new Modification("CapeL.prefab", "chest", "MercBody", "MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 88, AffectsBaseModel: true, assetBundle); NiaCandyStripeCapeRModification = new Modification("CapeR.prefab", "chest", "MercBody", "MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 95, AffectsBaseModel: true, assetBundle); NiaCandyStripeChestJewelryModification = new Modification("ChestJewelry.prefab", "chest", "MercBody", "MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 102, AffectsBaseModel: true, assetBundle); NiaCandyStripeHoodBackModification = new Modification("HoodBack.prefab", "chest", "MercBody", "MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 103, AffectsBaseModel: true, assetBundle); NiaCandyStripeBackHairLModification = new Modification("BackHairL.prefab", "head", "MercBody", "MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 31, AffectsBaseModel: true, assetBundle); NiaCandyStripeBackHairMModification = new Modification("BackHairM.prefab", "head", "MercBody", "MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 34, AffectsBaseModel: true, assetBundle); NiaCandyStripeBackHairRModification = new Modification("BackHairR.prefab", "head", "MercBody", "MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 37, AffectsBaseModel: true, assetBundle); NiaCandyStripeEarLModification = new Modification("EarL.prefab", "head", "MercBody", "MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 49, AffectsBaseModel: true, assetBundle); NiaCandyStripeEarRModification = new Modification("EarR.prefab", "head", "MercBody", "MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 52, AffectsBaseModel: true, assetBundle); NiaCandyStripeFrontHairModification = new Modification("FrontHair.prefab", "head", "MercBody", "MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 40, AffectsBaseModel: true, assetBundle); NiaCandyStripeTendrilLModification = new Modification("TendrilL.prefab", "head", "MercBody", "MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 43, AffectsBaseModel: true, assetBundle); NiaCandyStripeTendrilRModification = new Modification("TendrilR.prefab", "head", "MercBody", "MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 46, AffectsBaseModel: true, assetBundle); NiaBloodWitchPouchModification = new Modification("Pouch.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIABLOODWITCH_NAME", 116, AffectsBaseModel: true, assetBundle); NiaBloodWitchKnife1Modification = new Modification("Knife1.prefab", "thigh.l", "MercBody", "MIYOWI_SKIN_NIABLOODWITCH_NAME", 109, AffectsBaseModel: true, assetBundle); NiaBloodWitchKnife2Modification = new Modification("Knife2.prefab", "thigh.l", "MercBody", "MIYOWI_SKIN_NIABLOODWITCH_NAME", 110, AffectsBaseModel: true, assetBundle); NiaBloodWitchKnife3Modification = new Modification("Knife3.prefab", "thigh.l", "MercBody", "MIYOWI_SKIN_NIABLOODWITCH_NAME", 111, AffectsBaseModel: true, assetBundle); NiaBloodWitchCapeLModification = new Modification("CapeL.prefab", "chest", "MercBody", "MIYOWI_SKIN_NIABLOODWITCH_NAME", 88, AffectsBaseModel: true, assetBundle); NiaBloodWitchCapeRModification = new Modification("CapeR.prefab", "chest", "MercBody", "MIYOWI_SKIN_NIABLOODWITCH_NAME", 95, AffectsBaseModel: true, assetBundle); NiaBloodWitchChestJewelryModification = new Modification("ChestJewelry.prefab", "chest", "MercBody", "MIYOWI_SKIN_NIABLOODWITCH_NAME", 102, AffectsBaseModel: true, assetBundle); NiaBloodWitchHoodBackModification = new Modification("HoodBack.prefab", "chest", "MercBody", "MIYOWI_SKIN_NIABLOODWITCH_NAME", 103, AffectsBaseModel: true, assetBundle); NiaBloodWitchBackHairLModification = new Modification("BackHairL.prefab", "head", "MercBody", "MIYOWI_SKIN_NIABLOODWITCH_NAME", 31, AffectsBaseModel: true, assetBundle); NiaBloodWitchBackHairMModification = new Modification("BackHairM.prefab", "head", "MercBody", "MIYOWI_SKIN_NIABLOODWITCH_NAME", 34, AffectsBaseModel: true, assetBundle); NiaBloodWitchBackHairRModification = new Modification("BackHairR.prefab", "head", "MercBody", "MIYOWI_SKIN_NIABLOODWITCH_NAME", 37, AffectsBaseModel: true, assetBundle); NiaBloodWitchEarLModification = new Modification("EarL.prefab", "head", "MercBody", "MIYOWI_SKIN_NIABLOODWITCH_NAME", 49, AffectsBaseModel: true, assetBundle); NiaBloodWitchEarRModification = new Modification("EarR.prefab", "head", "MercBody", "MIYOWI_SKIN_NIABLOODWITCH_NAME", 52, AffectsBaseModel: true, assetBundle); NiaBloodWitchFrontHairModification = new Modification("FrontHair.prefab", "head", "MercBody", "MIYOWI_SKIN_NIABLOODWITCH_NAME", 40, AffectsBaseModel: true, assetBundle); NiaBloodWitchTendrilLModification = new Modification("TendrilL.prefab", "head", "MercBody", "MIYOWI_SKIN_NIABLOODWITCH_NAME", 43, AffectsBaseModel: true, assetBundle); NiaBloodWitchTendrilRModification = new Modification("TendrilR.prefab", "head", "MercBody", "MIYOWI_SKIN_NIABLOODWITCH_NAME", 46, AffectsBaseModel: true, assetBundle); NiaBladeBeltLeftModification = new Modification("BeltLeft.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIABLADE_NAME", 112, AffectsBaseModel: true, assetBundle); NiaBladeBeltRightModification = new Modification("BeltRight.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIABLADE_NAME", 114, AffectsBaseModel: true, assetBundle); NiaBladeSkirtLeftModification = new Modification("SkirtLeft.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIABLADE_NAME", 115, AffectsBaseModel: true, assetBundle); NiaBladeSkirtRightModification = new Modification("SkirtRight.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIABLADE_NAME", 120, AffectsBaseModel: true, assetBundle); NiaBladeArmSleeveLeftModification = new Modification("ArmSleeveLeft.prefab", "upper_arm.l", "MercBody", "MIYOWI_SKIN_NIABLADE_NAME", 28, AffectsBaseModel: true, assetBundle); NiaBladeArmSleeveRightModification = new Modification("ArmSleeveRight.prefab", "upper_arm.r", "MercBody", "MIYOWI_SKIN_NIABLADE_NAME", 88, AffectsBaseModel: true, assetBundle); NiaBladeEarLeftModification = new Modification("EarLeft.prefab", "head", "MercBody", "MIYOWI_SKIN_NIABLADE_NAME", 58, AffectsBaseModel: true, assetBundle); NiaBladeEarRightModification = new Modification("EarRight.prefab", "head", "MercBody", "MIYOWI_SKIN_NIABLADE_NAME", 61, AffectsBaseModel: true, assetBundle); NiaBladeHairBackLeftModification = new Modification("HairBackLeft.prefab", "head", "MercBody", "MIYOWI_SKIN_NIABLADE_NAME", 35, AffectsBaseModel: true, assetBundle); NiaBladeHairBackRightModification = new Modification("HairBackRight.prefab", "head", "MercBody", "MIYOWI_SKIN_NIABLADE_NAME", 42, AffectsBaseModel: true, assetBundle); NiaBladeHairFrontLeftModification = new Modification("HairFrontLeft.prefab", "head", "MercBody", "MIYOWI_SKIN_NIABLADE_NAME", 52, AffectsBaseModel: true, assetBundle); NiaBladeHairFrontMiddleModification = new Modification("HairFrontMiddle.prefab", "head", "MercBody", "MIYOWI_SKIN_NIABLADE_NAME", 49, AffectsBaseModel: true, assetBundle); NiaBladeHairFrontRightModification = new Modification("HairFrontRight.prefab", "head", "MercBody", "MIYOWI_SKIN_NIABLADE_NAME", 55, AffectsBaseModel: true, assetBundle); NiaBladeRibbonBackModification = new Modification("RibbonBack.prefab", "stomach", "MercBody", "MIYOWI_SKIN_NIABLADE_NAME", 101, AffectsBaseModel: true, assetBundle); NiaBladeRibbonFrontModification = new Modification("RibbonFront.prefab", "stomach", "MercBody", "MIYOWI_SKIN_NIABLADE_NAME", 102, AffectsBaseModel: true, assetBundle); NiaDevotedMarigoldBeltLeftModification = new Modification("BeltLeft.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 112, AffectsBaseModel: true, assetBundle); NiaDevotedMarigoldBeltRightModification = new Modification("BeltRight.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 114, AffectsBaseModel: true, assetBundle); NiaDevotedMarigoldSkirtLeftModification = new Modification("SkirtLeft.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 115, AffectsBaseModel: true, assetBundle); NiaDevotedMarigoldSkirtRightModification = new Modification("SkirtRight.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 120, AffectsBaseModel: true, assetBundle); NiaDevotedMarigoldArmSleeveLeftModification = new Modification("ArmSleeveLeft.prefab", "upper_arm.l", "MercBody", "MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 28, AffectsBaseModel: true, assetBundle); NiaDevotedMarigoldArmSleeveRightModification = new Modification("ArmSleeveRight.prefab", "upper_arm.r", "MercBody", "MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 88, AffectsBaseModel: true, assetBundle); NiaDevotedMarigoldEarLeftModification = new Modification("EarLeft.prefab", "head", "MercBody", "MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 58, AffectsBaseModel: true, assetBundle); NiaDevotedMarigoldEarRightModification = new Modification("EarRight.prefab", "head", "MercBody", "MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 61, AffectsBaseModel: true, assetBundle); NiaDevotedMarigoldHairBackLeftModification = new Modification("HairBackLeft.prefab", "head", "MercBody", "MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 35, AffectsBaseModel: true, assetBundle); NiaDevotedMarigoldHairBackRightModification = new Modification("HairBackRight.prefab", "head", "MercBody", "MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 42, AffectsBaseModel: true, assetBundle); NiaDevotedMarigoldHairFrontLeftModification = new Modification("HairFrontLeft.prefab", "head", "MercBody", "MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 52, AffectsBaseModel: true, assetBundle); NiaDevotedMarigoldHairFrontMiddleModification = new Modification("HairFrontMiddle.prefab", "head", "MercBody", "MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 49, AffectsBaseModel: true, assetBundle); NiaDevotedMarigoldHairFrontRightModification = new Modification("HairFrontRight.prefab", "head", "MercBody", "MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 55, AffectsBaseModel: true, assetBundle); NiaDevotedMarigoldRibbonBackModification = new Modification("RibbonBack.prefab", "stomach", "MercBody", "MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 101, AffectsBaseModel: true, assetBundle); NiaDevotedMarigoldRibbonFrontModification = new Modification("RibbonFront.prefab", "stomach", "MercBody", "MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 102, AffectsBaseModel: true, assetBundle); NiaLoyalBellflowerBeltLeftModification = new Modification("BeltLeft.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 112, AffectsBaseModel: true, assetBundle); NiaLoyalBellflowerBeltRightModification = new Modification("BeltRight.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 114, AffectsBaseModel: true, assetBundle); NiaLoyalBellflowerSkirtLeftModification = new Modification("SkirtLeft.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 115, AffectsBaseModel: true, assetBundle); NiaLoyalBellflowerSkirtRightModification = new Modification("SkirtRight.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 120, AffectsBaseModel: true, assetBundle); NiaLoyalBellflowerArmSleeveLeftModification = new Modification("ArmSleeveLeft.prefab", "upper_arm.l", "MercBody", "MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 28, AffectsBaseModel: true, assetBundle); NiaLoyalBellflowerArmSleeveRightModification = new Modification("ArmSleeveRight.prefab", "upper_arm.r", "MercBody", "MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 88, AffectsBaseModel: true, assetBundle); NiaLoyalBellflowerEarLeftModification = new Modification("EarLeft.prefab", "head", "MercBody", "MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 58, AffectsBaseModel: true, assetBundle); NiaLoyalBellflowerEarRightModification = new Modification("EarRight.prefab", "head", "MercBody", "MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 61, AffectsBaseModel: true, assetBundle); NiaLoyalBellflowerHairBackLeftModification = new Modification("HairBackLeft.prefab", "head", "MercBody", "MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 35, AffectsBaseModel: true, assetBundle); NiaLoyalBellflowerHairBackRightModification = new Modification("HairBackRight.prefab", "head", "MercBody", "MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 42, AffectsBaseModel: true, assetBundle); NiaLoyalBellflowerHairFrontLeftModification = new Modification("HairFrontLeft.prefab", "head", "MercBody", "MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 52, AffectsBaseModel: true, assetBundle); NiaLoyalBellflowerHairFrontMiddleModification = new Modification("HairFrontMiddle.prefab", "head", "MercBody", "MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 49, AffectsBaseModel: true, assetBundle); NiaLoyalBellflowerHairFrontRightModification = new Modification("HairFrontRight.prefab", "head", "MercBody", "MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 55, AffectsBaseModel: true, assetBundle); NiaLoyalBellflowerRibbonBackModification = new Modification("RibbonBack.prefab", "stomach", "MercBody", "MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 101, AffectsBaseModel: true, assetBundle); NiaLoyalBellflowerRibbonFrontModification = new Modification("RibbonFront.prefab", "stomach", "MercBody", "MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 102, AffectsBaseModel: true, assetBundle); NiaSincerePrimroseBeltLeftModification = new Modification("BeltLeft.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 112, AffectsBaseModel: true, assetBundle); NiaSincerePrimroseBeltRightModification = new Modification("BeltRight.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 114, AffectsBaseModel: true, assetBundle); NiaSincerePrimroseSkirtLeftModification = new Modification("SkirtLeft.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 115, AffectsBaseModel: true, assetBundle); NiaSincerePrimroseSkirtRightModification = new Modification("SkirtRight.prefab", "pelvis", "MercBody", "MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 120, AffectsBaseModel: true, assetBundle); NiaSincerePrimroseArmSleeveLeftModification = new Modification("ArmSleeveLeft.prefab", "upper_arm.l", "MercBody", "MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 28, AffectsBaseModel: true, assetBundle); NiaSincerePrimroseArmSleeveRightModification = new Modification("ArmSleeveRight.prefab", "upper_arm.r", "MercBody", "MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 88, AffectsBaseModel: true, assetBundle); NiaSincerePrimroseEarLeftModification = new Modification("EarLeft.prefab", "head", "MercBody", "MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 58, AffectsBaseModel: true, assetBundle); NiaSincerePrimroseEarRightModification = new Modification("EarRight.prefab", "head", "MercBody", "MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 61, AffectsBaseModel: true, assetBundle); NiaSincerePrimroseHairBackLeftModification = new Modification("HairBackLeft.prefab", "head", "MercBody", "MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 35, AffectsBaseModel: true, assetBundle); NiaSincerePrimroseHairBackRightModification = new Modification("HairBackRight.prefab", "head", "MercBody", "MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 42, AffectsBaseModel: true, assetBundle); NiaSincerePrimroseHairFrontLeftModification = new Modification("HairFrontLeft.prefab", "head", "MercBody", "MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 52, AffectsBaseModel: true, assetBundle); NiaSincerePrimroseHairFrontMiddleModification = new Modification("HairFrontMiddle.prefab", "head", "MercBody", "MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 49, AffectsBaseModel: true, assetBundle); NiaSincerePrimroseHairFrontRightModification = new Modification("HairFrontRight.prefab", "head", "MercBody", "MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 55, AffectsBaseModel: true, assetBundle); NiaSincerePrimroseRibbonBackModification = new Modification("RibbonBack.prefab", "stomach", "MercBody", "MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 101, AffectsBaseModel: true, assetBundle); NiaSincerePrimroseRibbonFrontModification = new Modification("RibbonFront.prefab", "stomach", "MercBody", "MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 102, AffectsBaseModel: true, assetBundle); } private void InitializeDynamicBones() { //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00e4: Unknown result type (might be due to invalid IL or missing references) //IL_013b: Unknown result type (might be due to invalid IL or missing references) //IL_014f: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) //IL_01ba: Unknown result type (might be due to invalid IL or missing references) //IL_01ce: Unknown result type (might be due to invalid IL or missing references) //IL_01e2: Unknown result type (might be due to invalid IL or missing references) //IL_0239: Unknown result type (might be due to invalid IL or missing references) //IL_024d: Unknown result type (might be due to invalid IL or missing references) //IL_0261: Unknown result type (might be due to invalid IL or missing references) //IL_0281: Unknown result type (might be due to invalid IL or missing references) //IL_02e8: Unknown result type (might be due to invalid IL or missing references) //IL_02fc: Unknown result type (might be due to invalid IL or missing references) //IL_0310: Unknown result type (might be due to invalid IL or missing references) //IL_0330: Unknown result type (might be due to invalid IL or missing references) //IL_0397: Unknown result type (might be due to invalid IL or missing references) //IL_03ab: Unknown result type (might be due to invalid IL or missing references) //IL_03bf: Unknown result type (might be due to invalid IL or missing references) //IL_0416: Unknown result type (might be due to invalid IL or missing references) //IL_042a: Unknown result type (might be due to invalid IL or missing references) //IL_043e: Unknown result type (might be due to invalid IL or missing references) //IL_0495: Unknown result type (might be due to invalid IL or missing references) //IL_04a9: Unknown result type (might be due to invalid IL or missing references) //IL_04bd: Unknown result type (might be due to invalid IL or missing references) //IL_0514: Unknown result type (might be due to invalid IL or missing references) //IL_0528: Unknown result type (might be due to invalid IL or missing references) //IL_053c: Unknown result type (might be due to invalid IL or missing references) //IL_0593: Unknown result type (might be due to invalid IL or missing references) //IL_05a7: Unknown result type (might be due to invalid IL or missing references) //IL_05bb: Unknown result type (might be due to invalid IL or missing references) //IL_0612: Unknown result type (might be due to invalid IL or missing references) //IL_0626: Unknown result type (might be due to invalid IL or missing references) //IL_063a: Unknown result type (might be due to invalid IL or missing references) //IL_0691: Unknown result type (might be due to invalid IL or missing references) //IL_06a5: Unknown result type (might be due to invalid IL or missing references) //IL_06b9: Unknown result type (might be due to invalid IL or missing references) //IL_0710: Unknown result type (might be due to invalid IL or missing references) //IL_0724: Unknown result type (might be due to invalid IL or missing references) //IL_0738: Unknown result type (might be due to invalid IL or missing references) //IL_078f: Unknown result type (might be due to invalid IL or missing references) //IL_07a3: Unknown result type (might be due to invalid IL or missing references) //IL_07b7: Unknown result type (might be due to invalid IL or missing references) //IL_080e: Unknown result type (might be due to invalid IL or missing references) //IL_0822: Unknown result type (might be due to invalid IL or missing references) //IL_0836: Unknown result type (might be due to invalid IL or missing references) //IL_088d: Unknown result type (might be due to invalid IL or missing references) //IL_08a1: Unknown result type (might be due to invalid IL or missing references) //IL_08b5: Unknown result type (might be due to invalid IL or missing references) //IL_090c: Unknown result type (might be due to invalid IL or missing references) //IL_0920: Unknown result type (might be due to invalid IL or missing references) //IL_0934: Unknown result type (might be due to invalid IL or missing references) //IL_098b: Unknown result type (might be due to invalid IL or missing references) //IL_099f: Unknown result type (might be due to invalid IL or missing references) //IL_09b3: Unknown result type (might be due to invalid IL or missing references) //IL_0a0a: Unknown result type (might be due to invalid IL or missing references) //IL_0a1e: Unknown result type (might be due to invalid IL or missing references) //IL_0a32: Unknown result type (might be due to invalid IL or missing references) //IL_0a89: Unknown result type (might be due to invalid IL or missing references) //IL_0a9d: Unknown result type (might be due to invalid IL or missing references) //IL_0ab1: Unknown result type (might be due to invalid IL or missing references) //IL_0ad1: Unknown result type (might be due to invalid IL or missing references) //IL_0b38: Unknown result type (might be due to invalid IL or missing references) //IL_0b4c: Unknown result type (might be due to invalid IL or missing references) //IL_0b60: Unknown result type (might be due to invalid IL or missing references) //IL_0b80: Unknown result type (might be due to invalid IL or missing references) //IL_0be7: Unknown result type (might be due to invalid IL or missing references) //IL_0bfb: Unknown result type (might be due to invalid IL or missing references) //IL_0c0f: Unknown result type (might be due to invalid IL or missing references) //IL_0c66: Unknown result type (might be due to invalid IL or missing references) //IL_0c7a: Unknown result type (might be due to invalid IL or missing references) //IL_0c8e: Unknown result type (might be due to invalid IL or missing references) //IL_0ce5: Unknown result type (might be due to invalid IL or missing references) //IL_0cf9: Unknown result type (might be due to invalid IL or missing references) //IL_0d0d: Unknown result type (might be due to invalid IL or missing references) //IL_0d64: Unknown result type (might be due to invalid IL or missing references) //IL_0d78: Unknown result type (might be due to invalid IL or missing references) //IL_0d8c: Unknown result type (might be due to invalid IL or missing references) //IL_0de3: Unknown result type (might be due to invalid IL or missing references) //IL_0df7: Unknown result type (might be due to invalid IL or missing references) //IL_0e0b: Unknown result type (might be due to invalid IL or missing references) //IL_0e62: Unknown result type (might be due to invalid IL or missing references) //IL_0e76: Unknown result type (might be due to invalid IL or missing references) //IL_0e8a: Unknown result type (might be due to invalid IL or missing references) //IL_0ee1: Unknown result type (might be due to invalid IL or missing references) //IL_0ef5: Unknown result type (might be due to invalid IL or missing references) //IL_0f09: Unknown result type (might be due to invalid IL or missing references) //IL_0f60: Unknown result type (might be due to invalid IL or missing references) //IL_0f74: Unknown result type (might be due to invalid IL or missing references) //IL_0f88: Unknown result type (might be due to invalid IL or missing references) //IL_0fdf: Unknown result type (might be due to invalid IL or missing references) //IL_0ff3: Unknown result type (might be due to invalid IL or missing references) //IL_1007: Unknown result type (might be due to invalid IL or missing references) //IL_105e: Unknown result type (might be due to invalid IL or missing references) //IL_1072: Unknown result type (might be due to invalid IL or missing references) //IL_1086: Unknown result type (might be due to invalid IL or missing references) //IL_10dd: Unknown result type (might be due to invalid IL or missing references) //IL_10f1: Unknown result type (might be due to invalid IL or missing references) //IL_1105: Unknown result type (might be due to invalid IL or missing references) //IL_115c: Unknown result type (might be due to invalid IL or missing references) //IL_1170: Unknown result type (might be due to invalid IL or missing references) //IL_1184: Unknown result type (might be due to invalid IL or missing references) //IL_11db: Unknown result type (might be due to invalid IL or missing references) //IL_11ef: Unknown result type (might be due to invalid IL or missing references) //IL_1203: Unknown result type (might be due to invalid IL or missing references) //IL_125a: Unknown result type (might be due to invalid IL or missing references) //IL_126e: Unknown result type (might be due to invalid IL or missing references) //IL_1282: Unknown result type (might be due to invalid IL or missing references) //IL_12d9: Unknown result type (might be due to invalid IL or missing references) //IL_12ed: Unknown result type (might be due to invalid IL or missing references) //IL_1301: Unknown result type (might be due to invalid IL or missing references) //IL_1321: Unknown result type (might be due to invalid IL or missing references) //IL_1388: Unknown result type (might be due to invalid IL or missing references) //IL_139c: Unknown result type (might be due to invalid IL or missing references) //IL_13b0: Unknown result type (might be due to invalid IL or missing references) //IL_13d0: Unknown result type (might be due to invalid IL or missing references) //IL_1437: Unknown result type (might be due to invalid IL or missing references) //IL_144b: Unknown result type (might be due to invalid IL or missing references) //IL_145f: Unknown result type (might be due to invalid IL or missing references) //IL_14b6: Unknown result type (might be due to invalid IL or missing references) //IL_14ca: Unknown result type (might be due to invalid IL or missing references) //IL_14de: Unknown result type (might be due to invalid IL or missing references) //IL_1535: Unknown result type (might be due to invalid IL or missing references) //IL_1549: Unknown result type (might be due to invalid IL or missing references) //IL_155d: Unknown result type (might be due to invalid IL or missing references) //IL_15b4: Unknown result type (might be due to invalid IL or missing references) //IL_15c8: Unknown result type (might be due to invalid IL or missing references) //IL_15dc: Unknown result type (might be due to invalid IL or missing references) //IL_1633: Unknown result type (might be due to invalid IL or missing references) //IL_1647: Unknown result type (might be due to invalid IL or missing references) //IL_165b: Unknown result type (might be due to invalid IL or missing references) //IL_16b2: Unknown result type (might be due to invalid IL or missing references) //IL_16c6: Unknown result type (might be due to invalid IL or missing references) //IL_16da: Unknown result type (might be due to invalid IL or missing references) //IL_1731: Unknown result type (might be due to invalid IL or missing references) //IL_1745: Unknown result type (might be due to invalid IL or missing references) //IL_1759: Unknown result type (might be due to invalid IL or missing references) //IL_17b0: Unknown result type (might be due to invalid IL or missing references) //IL_17c4: Unknown result type (might be due to invalid IL or missing references) //IL_17d8: Unknown result type (might be due to invalid IL or missing references) //IL_182f: Unknown result type (might be due to invalid IL or missing references) //IL_1843: Unknown result type (might be due to invalid IL or missing references) //IL_1857: Unknown result type (might be due to invalid IL or missing references) //IL_18ae: Unknown result type (might be due to invalid IL or missing references) //IL_18c2: Unknown result type (might be due to invalid IL or missing references) //IL_18d6: Unknown result type (might be due to invalid IL or missing references) //IL_192d: Unknown result type (might be due to invalid IL or missing references) //IL_1941: Unknown result type (might be due to invalid IL or missing references) //IL_1955: Unknown result type (might be due to invalid IL or missing references) //IL_1975: Unknown result type (might be due to invalid IL or missing references) //IL_19dc: Unknown result type (might be due to invalid IL or missing references) //IL_19f0: Unknown result type (might be due to invalid IL or missing references) //IL_1a04: Unknown result type (might be due to invalid IL or missing references) //IL_1a5b: Unknown result type (might be due to invalid IL or missing references) //IL_1a6f: Unknown result type (might be due to invalid IL or missing references) //IL_1a83: Unknown result type (might be due to invalid IL or missing references) //IL_1ada: Unknown result type (might be due to invalid IL or missing references) //IL_1aee: Unknown result type (might be due to invalid IL or missing references) //IL_1b02: Unknown result type (might be due to invalid IL or missing references) //IL_1b59: Unknown result type (might be due to invalid IL or missing references) //IL_1b6d: Unknown result type (might be due to invalid IL or missing references) //IL_1b81: Unknown result type (might be due to invalid IL or missing references) //IL_1bd8: Unknown result type (might be due to invalid IL or missing references) //IL_1bec: Unknown result type (might be due to invalid IL or missing references) //IL_1c00: Unknown result type (might be due to invalid IL or missing references) //IL_1c57: Unknown result type (might be due to invalid IL or missing references) //IL_1c6b: Unknown result type (might be due to invalid IL or missing references) //IL_1c7f: Unknown result type (might be due to invalid IL or missing references) //IL_1cd6: Unknown result type (might be due to invalid IL or missing references) //IL_1cea: Unknown result type (might be due to invalid IL or missing references) //IL_1cfe: Unknown result type (might be due to invalid IL or missing references) //IL_1d55: Unknown result type (might be due to invalid IL or missing references) //IL_1d69: Unknown result type (might be due to invalid IL or missing references) //IL_1d7d: Unknown result type (might be due to invalid IL or missing references) //IL_1d9d: Unknown result type (might be due to invalid IL or missing references) //IL_1e04: Unknown result type (might be due to invalid IL or missing references) //IL_1e18: Unknown result type (might be due to invalid IL or missing references) //IL_1e2c: Unknown result type (might be due to invalid IL or missing references) //IL_1e4c: Unknown result type (might be due to invalid IL or missing references) //IL_1eb3: Unknown result type (might be due to invalid IL or missing references) //IL_1ec7: Unknown result type (might be due to invalid IL or missing references) //IL_1edb: Unknown result type (might be due to invalid IL or missing references) //IL_1f32: Unknown result type (might be due to invalid IL or missing references) //IL_1f46: Unknown result type (might be due to invalid IL or missing references) //IL_1f5a: Unknown result type (might be due to invalid IL or missing references) //IL_1fb1: Unknown result type (might be due to invalid IL or missing references) //IL_1fc5: Unknown result type (might be due to invalid IL or missing references) //IL_1fd9: Unknown result type (might be due to invalid IL or missing references) //IL_2030: Unknown result type (might be due to invalid IL or missing references) //IL_2044: Unknown result type (might be due to invalid IL or missing references) //IL_2058: Unknown result type (might be due to invalid IL or missing references) //IL_20af: Unknown result type (might be due to invalid IL or missing references) //IL_20c3: Unknown result type (might be due to invalid IL or missing references) //IL_20d7: Unknown result type (might be due to invalid IL or missing references) //IL_212e: Unknown result type (might be due to invalid IL or missing references) //IL_2142: Unknown result type (might be due to invalid IL or missing references) //IL_2156: Unknown result type (might be due to invalid IL or missing references) //IL_2176: Unknown result type (might be due to invalid IL or missing references) //IL_21dd: Unknown result type (might be due to invalid IL or missing references) //IL_21f1: Unknown result type (might be due to invalid IL or missing references) //IL_2205: Unknown result type (might be due to invalid IL or missing references) //IL_225c: Unknown result type (might be due to invalid IL or missing references) //IL_2270: Unknown result type (might be due to invalid IL or missing references) //IL_2284: Unknown result type (might be due to invalid IL or missing references) //IL_22db: Unknown result type (might be due to invalid IL or missing references) //IL_22ef: Unknown result type (might be due to invalid IL or missing references) //IL_2303: Unknown result type (might be due to invalid IL or missing references) //IL_235a: Unknown result type (might be due to invalid IL or missing references) //IL_236e: Unknown result type (might be due to invalid IL or missing references) //IL_2382: Unknown result type (might be due to invalid IL or missing references) //IL_23d9: Unknown result type (might be due to invalid IL or missing references) //IL_23ed: Unknown result type (might be due to invalid IL or missing references) //IL_2401: Unknown result type (might be due to invalid IL or missing references) //IL_2458: Unknown result type (might be due to invalid IL or missing references) //IL_246c: Unknown result type (might be due to invalid IL or missing references) //IL_2480: Unknown result type (might be due to invalid IL or missing references) //IL_24d7: Unknown result type (might be due to invalid IL or missing references) //IL_24eb: Unknown result type (might be due to invalid IL or missing references) //IL_24ff: Unknown result type (might be due to invalid IL or missing references) //IL_2556: Unknown result type (might be due to invalid IL or missing references) //IL_256a: Unknown result type (might be due to invalid IL or missing references) //IL_257e: Unknown result type (might be due to invalid IL or missing references) //IL_259e: Unknown result type (might be due to invalid IL or missing references) //IL_2605: Unknown result type (might be due to invalid IL or missing references) //IL_2619: Unknown result type (might be due to invalid IL or missing references) //IL_262d: Unknown result type (might be due to invalid IL or missing references) //IL_264d: Unknown result type (might be due to invalid IL or missing references) //IL_26b4: Unknown result type (might be due to invalid IL or missing references) //IL_26c8: Unknown result type (might be due to invalid IL or missing references) //IL_26dc: Unknown result type (might be due to invalid IL or missing references) //IL_2733: Unknown result type (might be due to invalid IL or missing references) //IL_2747: Unknown result type (might be due to invalid IL or missing references) //IL_275b: Unknown result type (might be due to invalid IL or missing references) //IL_27b2: Unknown result type (might be due to invalid IL or missing references) //IL_27c6: Unknown result type (might be due to invalid IL or missing references) //IL_27da: Unknown result type (might be due to invalid IL or missing references) //IL_2831: Unknown result type (might be due to invalid IL or missing references) //IL_2845: Unknown result type (might be due to invalid IL or missing references) //IL_2859: Unknown result type (might be due to invalid IL or missing references) //IL_28b0: Unknown result type (might be due to invalid IL or missing references) //IL_28c4: Unknown result type (might be due to invalid IL or missing references) //IL_28d8: Unknown result type (might be due to invalid IL or missing references) //IL_292f: Unknown result type (might be due to invalid IL or missing references) //IL_2943: Unknown result type (might be due to invalid IL or missing references) //IL_2957: Unknown result type (might be due to invalid IL or missing references) //IL_2977: Unknown result type (might be due to invalid IL or missing references) //IL_29de: Unknown result type (might be due to invalid IL or missing references) //IL_29f2: Unknown result type (might be due to invalid IL or missing references) //IL_2a06: Unknown result type (might be due to invalid IL or missing references) //IL_2a5d: Unknown result type (might be due to invalid IL or missing references) //IL_2a71: Unknown result type (might be due to invalid IL or missing references) //IL_2a85: Unknown result type (might be due to invalid IL or missing references) //IL_2adc: Unknown result type (might be due to invalid IL or missing references) //IL_2af0: Unknown result type (might be due to invalid IL or missing references) //IL_2b04: Unknown result type (might be due to invalid IL or missing references) //IL_2b5b: Unknown result type (might be due to invalid IL or missing references) //IL_2b6f: Unknown result type (might be due to invalid IL or missing references) //IL_2b83: Unknown result type (might be due to invalid IL or missing references) //IL_2bda: Unknown result type (might be due to invalid IL or missing references) //IL_2bee: Unknown result type (might be due to invalid IL or missing references) //IL_2c02: Unknown result type (might be due to invalid IL or missing references) //IL_2c59: Unknown result type (might be due to invalid IL or missing references) //IL_2c6d: Unknown result type (might be due to invalid IL or missing references) //IL_2c81: Unknown result type (might be due to invalid IL or missing references) //IL_2cd8: Unknown result type (might be due to invalid IL or missing references) //IL_2cec: Unknown result type (might be due to invalid IL or missing references) //IL_2d00: Unknown result type (might be due to invalid IL or missing references) //IL_2d57: Unknown result type (might be due to invalid IL or missing references) //IL_2d6b: Unknown result type (might be due to invalid IL or missing references) //IL_2d7f: Unknown result type (might be due to invalid IL or missing references) //IL_2d9f: Unknown result type (might be due to invalid IL or missing references) //IL_2e06: Unknown result type (might be due to invalid IL or missing references) //IL_2e1a: Unknown result type (might be due to invalid IL or missing references) //IL_2e2e: Unknown result type (might be due to invalid IL or missing references) //IL_2e4e: Unknown result type (might be due to invalid IL or missing references) //IL_2eb5: Unknown result type (might be due to invalid IL or missing references) //IL_2ec9: Unknown result type (might be due to invalid IL or missing references) //IL_2edd: Unknown result type (might be due to invalid IL or missing references) //IL_2f34: Unknown result type (might be due to invalid IL or missing references) //IL_2f48: Unknown result type (might be due to invalid IL or missing references) //IL_2f5c: Unknown result type (might be due to invalid IL or missing references) //IL_2fb3: Unknown result type (might be due to invalid IL or missing references) //IL_2fc7: Unknown result type (might be due to invalid IL or missing references) //IL_2fdb: Unknown result type (might be due to invalid IL or missing references) //IL_3032: Unknown result type (might be due to invalid IL or missing references) //IL_3046: Unknown result type (might be due to invalid IL or missing references) //IL_305a: Unknown result type (might be due to invalid IL or missing references) //IL_30b1: Unknown result type (might be due to invalid IL or missing references) //IL_30c5: Unknown result type (might be due to invalid IL or missing references) //IL_30d9: Unknown result type (might be due to invalid IL or missing references) //IL_3130: Unknown result type (might be due to invalid IL or missing references) //IL_3144: Unknown result type (might be due to invalid IL or missing references) //IL_3158: Unknown result type (might be due to invalid IL or missing references) //IL_3178: Unknown result type (might be due to invalid IL or missing references) //IL_31df: Unknown result type (might be due to invalid IL or missing references) //IL_31f3: Unknown result type (might be due to invalid IL or missing references) //IL_3207: Unknown result type (might be due to invalid IL or missing references) //IL_325e: Unknown result type (might be due to invalid IL or missing references) //IL_3272: Unknown result type (might be due to invalid IL or missing references) //IL_3286: Unknown result type (might be due to invalid IL or missing references) //IL_32dd: Unknown result type (might be due to invalid IL or missing references) //IL_32f1: Unknown result type (might be due to invalid IL or missing references) //IL_3305: Unknown result type (might be due to invalid IL or missing references) //IL_335c: Unknown result type (might be due to invalid IL or missing references) //IL_3370: Unknown result type (might be due to invalid IL or missing references) //IL_3384: Unknown result type (might be due to invalid IL or missing references) //IL_33db: Unknown result type (might be due to invalid IL or missing references) //IL_33ef: Unknown result type (might be due to invalid IL or missing references) //IL_3403: Unknown result type (might be due to invalid IL or missing references) //IL_345a: Unknown result type (might be due to invalid IL or missing references) //IL_346e: Unknown result type (might be due to invalid IL or missing references) //IL_3482: Unknown result type (might be due to invalid IL or missing references) //IL_34d9: Unknown result type (might be due to invalid IL or missing references) //IL_34ed: Unknown result type (might be due to invalid IL or missing references) //IL_3501: Unknown result type (might be due to invalid IL or missing references) //IL_3558: Unknown result type (might be due to invalid IL or missing references) //IL_356c: Unknown result type (might be due to invalid IL or missing references) //IL_3580: Unknown result type (might be due to invalid IL or missing references) //IL_35a0: Unknown result type (might be due to invalid IL or missing references) //IL_3607: Unknown result type (might be due to invalid IL or missing references) //IL_361b: Unknown result type (might be due to invalid IL or missing references) //IL_362f: Unknown result type (might be due to invalid IL or missing references) //IL_364f: Unknown result type (might be due to invalid IL or missing references) //IL_36b6: Unknown result type (might be due to invalid IL or missing references) //IL_36ca: Unknown result type (might be due to invalid IL or missing references) //IL_36de: Unknown result type (might be due to invalid IL or missing references) //IL_3735: Unknown result type (might be due to invalid IL or missing references) //IL_3749: Unknown result type (might be due to invalid IL or missing references) //IL_375d: Unknown result type (might be due to invalid IL or missing references) //IL_37b4: Unknown result type (might be due to invalid IL or missing references) //IL_37c8: Unknown result type (might be due to invalid IL or missing references) //IL_37dc: Unknown result type (might be due to invalid IL or missing references) //IL_3833: Unknown result type (might be due to invalid IL or missing references) //IL_3847: Unknown result type (might be due to invalid IL or missing references) //IL_385b: Unknown result type (might be due to invalid IL or missing references) //IL_38b2: Unknown result type (might be due to invalid IL or missing references) //IL_38c6: Unknown result type (might be due to invalid IL or missing references) //IL_38da: Unknown result type (might be due to invalid IL or missing references) NiaDriverPouchModification.dynamicBoneData = new DynamicBoneData("Pouch", 0.3f, null, 0.05f, null, 0.8f, null, 0.7f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDriverKnife1Modification.dynamicBoneData = new DynamicBoneData("Knife1", 0.2f, null, 0.05f, null, 0.98f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDriverKnife2Modification.dynamicBoneData = new DynamicBoneData("Knife2", 0.2f, null, 0.05f, null, 0.98f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDriverKnife3Modification.dynamicBoneData = new DynamicBoneData("Knife3", 0.2f, null, 0.05f, null, 0.98f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDriverCapeLModification.dynamicBoneData = new DynamicBoneData("CapeL", 0.379f, null, 0.05f, null, 0.243f, null, 0.5f, null, 0.065f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, -0.01f, 0f), new List { new DynamicBoneColliderData("stomach", (Direction)1, new Vector3(0f, 0f, 0.06f), (Bound)0, 0.19f, 0.87f) }, new List(), (FreezeAxis)0); NiaDriverCapeRModification.dynamicBoneData = new DynamicBoneData("CapeR", 0.379f, null, 0.05f, null, 0.243f, null, 0.5f, null, 0.065f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, -0.01f, 0f), new List { new DynamicBoneColliderData("stomach", (Direction)1, new Vector3(0f, 0f, 0.06f), (Bound)0, 0.19f, 0.87f) }, new List(), (FreezeAxis)0); NiaDriverChestJewelryModification.dynamicBoneData = new DynamicBoneData("ChestJewelry", 0.3f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDriverHoodBackModification.dynamicBoneData = new DynamicBoneData("HoodBack", 0.15f, null, 0.05f, null, 0.1f, null, 0.5f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDriverBackHairLModification.dynamicBoneData = new DynamicBoneData("BackHairL", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDriverBackHairMModification.dynamicBoneData = new DynamicBoneData("BackHairM", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDriverBackHairRModification.dynamicBoneData = new DynamicBoneData("BackHairR", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDriverEarLModification.dynamicBoneData = new DynamicBoneData("EarL", 0.5f, null, 0.018f, null, 0.75f, null, 0.247f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDriverEarRModification.dynamicBoneData = new DynamicBoneData("EarR", 0.5f, null, 0.018f, null, 0.75f, null, 0.247f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDriverFrontHairModification.dynamicBoneData = new DynamicBoneData("FrontHair", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDriverTendrilLModification.dynamicBoneData = new DynamicBoneData("TendrilL", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDriverTendrilRModification.dynamicBoneData = new DynamicBoneData("TendrilR", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaCandyStripePouchModification.dynamicBoneData = new DynamicBoneData("Pouch", 0.3f, null, 0.05f, null, 0.8f, null, 0.7f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaCandyStripeKnife1Modification.dynamicBoneData = new DynamicBoneData("Knife1", 0.2f, null, 0.05f, null, 0.98f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaCandyStripeKnife2Modification.dynamicBoneData = new DynamicBoneData("Knife2", 0.2f, null, 0.05f, null, 0.98f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaCandyStripeKnife3Modification.dynamicBoneData = new DynamicBoneData("Knife3", 0.2f, null, 0.05f, null, 0.98f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaCandyStripeCapeLModification.dynamicBoneData = new DynamicBoneData("CapeL", 0.379f, null, 0.05f, null, 0.243f, null, 0.5f, null, 0.065f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, -0.01f, 0f), new List { new DynamicBoneColliderData("stomach", (Direction)1, new Vector3(0f, 0f, 0.06f), (Bound)0, 0.19f, 0.87f) }, new List(), (FreezeAxis)0); NiaCandyStripeCapeRModification.dynamicBoneData = new DynamicBoneData("CapeR", 0.379f, null, 0.05f, null, 0.243f, null, 0.5f, null, 0.065f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, -0.01f, 0f), new List { new DynamicBoneColliderData("stomach", (Direction)1, new Vector3(0f, 0f, 0.06f), (Bound)0, 0.19f, 0.87f) }, new List(), (FreezeAxis)0); NiaCandyStripeChestJewelryModification.dynamicBoneData = new DynamicBoneData("ChestJewelry", 0.3f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaCandyStripeHoodBackModification.dynamicBoneData = new DynamicBoneData("HoodBack", 0.15f, null, 0.05f, null, 0.1f, null, 0.5f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaCandyStripeBackHairLModification.dynamicBoneData = new DynamicBoneData("BackHairL", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaCandyStripeBackHairMModification.dynamicBoneData = new DynamicBoneData("BackHairM", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaCandyStripeBackHairRModification.dynamicBoneData = new DynamicBoneData("BackHairR", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaCandyStripeEarLModification.dynamicBoneData = new DynamicBoneData("EarL", 0.5f, null, 0.018f, null, 0.75f, null, 0.247f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaCandyStripeEarRModification.dynamicBoneData = new DynamicBoneData("EarR", 0.5f, null, 0.018f, null, 0.75f, null, 0.247f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaCandyStripeFrontHairModification.dynamicBoneData = new DynamicBoneData("FrontHair", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaCandyStripeTendrilLModification.dynamicBoneData = new DynamicBoneData("TendrilL", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaCandyStripeTendrilRModification.dynamicBoneData = new DynamicBoneData("TendrilR", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBloodWitchPouchModification.dynamicBoneData = new DynamicBoneData("Pouch", 0.3f, null, 0.05f, null, 0.8f, null, 0.7f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBloodWitchKnife1Modification.dynamicBoneData = new DynamicBoneData("Knife1", 0.2f, null, 0.05f, null, 0.98f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBloodWitchKnife2Modification.dynamicBoneData = new DynamicBoneData("Knife2", 0.2f, null, 0.05f, null, 0.98f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBloodWitchKnife3Modification.dynamicBoneData = new DynamicBoneData("Knife3", 0.2f, null, 0.05f, null, 0.98f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBloodWitchCapeLModification.dynamicBoneData = new DynamicBoneData("CapeL", 0.379f, null, 0.05f, null, 0.243f, null, 0.5f, null, 0.065f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, -0.01f, 0f), new List { new DynamicBoneColliderData("stomach", (Direction)1, new Vector3(0f, 0f, 0.06f), (Bound)0, 0.19f, 0.87f) }, new List(), (FreezeAxis)0); NiaBloodWitchCapeRModification.dynamicBoneData = new DynamicBoneData("CapeR", 0.379f, null, 0.05f, null, 0.243f, null, 0.5f, null, 0.065f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, -0.01f, 0f), new List { new DynamicBoneColliderData("stomach", (Direction)1, new Vector3(0f, 0f, 0.06f), (Bound)0, 0.19f, 0.87f) }, new List(), (FreezeAxis)0); NiaBloodWitchChestJewelryModification.dynamicBoneData = new DynamicBoneData("ChestJewelry", 0.3f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBloodWitchHoodBackModification.dynamicBoneData = new DynamicBoneData("HoodBack", 0.15f, null, 0.05f, null, 0.1f, null, 0.5f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBloodWitchBackHairLModification.dynamicBoneData = new DynamicBoneData("BackHairL", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBloodWitchBackHairMModification.dynamicBoneData = new DynamicBoneData("BackHairM", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBloodWitchBackHairRModification.dynamicBoneData = new DynamicBoneData("BackHairR", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBloodWitchEarLModification.dynamicBoneData = new DynamicBoneData("EarL", 0.5f, null, 0.018f, null, 0.75f, null, 0.247f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBloodWitchEarRModification.dynamicBoneData = new DynamicBoneData("EarR", 0.5f, null, 0.018f, null, 0.75f, null, 0.247f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBloodWitchFrontHairModification.dynamicBoneData = new DynamicBoneData("FrontHair", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBloodWitchTendrilLModification.dynamicBoneData = new DynamicBoneData("TendrilL", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBloodWitchTendrilRModification.dynamicBoneData = new DynamicBoneData("TendrilR", 0.2f, null, 0.05f, null, 0.8f, null, 0f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBladeBeltLeftModification.dynamicBoneData = new DynamicBoneData("BeltLeft", 0.3f, null, 0.05f, null, 0.8f, null, 0f, null, 0.02f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List { new DynamicBoneColliderData("thigh.l", (Direction)1, new Vector3(0f, 0.15f, -0.067f), (Bound)0, 0.13f, 0.56f) }, new List(), (FreezeAxis)0); NiaBladeBeltRightModification.dynamicBoneData = new DynamicBoneData("BeltRight", 0.3f, null, 0.08f, null, 0.88f, null, 0.3f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBladeSkirtLeftModification.dynamicBoneData = new DynamicBoneData("SkirtLeft", 0.25f, null, 0.05f, null, 0.401f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBladeSkirtRightModification.dynamicBoneData = new DynamicBoneData("SkirtRight", 0.25f, null, 0.05f, null, 0.401f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBladeArmSleeveLeftModification.dynamicBoneData = new DynamicBoneData("ArmSleeveLeft", 0.1f, null, 0.01f, null, 0.75f, null, 0.9f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBladeArmSleeveRightModification.dynamicBoneData = new DynamicBoneData("ArmSleeveRight", 0.1f, null, 0.01f, null, 0.75f, null, 0.9f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBladeEarLeftModification.dynamicBoneData = new DynamicBoneData("EarLeft", 0.18f, null, 0.018f, null, 0.35f, null, 0.4f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBladeEarRightModification.dynamicBoneData = new DynamicBoneData("EarRight", 0.18f, null, 0.018f, null, 0.35f, null, 0.4f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBladeHairBackLeftModification.dynamicBoneData = new DynamicBoneData("HairBackLeft", 0.894f, null, 0.1f, null, 0.5f, null, 0.2f, null, 0.12f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, -0.01f, -0.005f), new List { new DynamicBoneColliderData("stomach", (Direction)1, new Vector3(0f, 0f, 0.08f), (Bound)0, 0.16f, 1.03f) }, new List(), (FreezeAxis)0); NiaBladeHairBackRightModification.dynamicBoneData = new DynamicBoneData("HairBackRight", 0.894f, null, 0.1f, null, 0.5f, null, 0.2f, null, 0.12f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, -0.01f, -0.005f), new List { new DynamicBoneColliderData("stomach", (Direction)1, new Vector3(0f, 0f, 0.08f), (Bound)0, 0.16f, 1.03f) }, new List(), (FreezeAxis)0); NiaBladeHairFrontLeftModification.dynamicBoneData = new DynamicBoneData("HairFrontLeft", 0.894f, null, 0.1f, null, 0.7f, null, 0.2f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBladeHairFrontMiddleModification.dynamicBoneData = new DynamicBoneData("HairFrontMiddle", 0.8f, null, 0.15f, null, 0.9f, null, 0.2f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBladeHairFrontRightModification.dynamicBoneData = new DynamicBoneData("HairFrontRight", 0.894f, null, 0.1f, null, 0.7f, null, 0.2f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBladeRibbonBackModification.dynamicBoneData = new DynamicBoneData("RibbonBack", 0.682f, null, 0.05f, null, 0.9f, null, 0.752f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaBladeRibbonFrontModification.dynamicBoneData = new DynamicBoneData("RibbonFront", 0.8f, null, 0.05f, null, 0.93f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDevotedMarigoldBeltLeftModification.dynamicBoneData = new DynamicBoneData("BeltLeft", 0.3f, null, 0.05f, null, 0.8f, null, 0f, null, 0.02f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List { new DynamicBoneColliderData("thigh.l", (Direction)1, new Vector3(0f, 0.15f, -0.067f), (Bound)0, 0.13f, 0.56f) }, new List(), (FreezeAxis)0); NiaDevotedMarigoldBeltRightModification.dynamicBoneData = new DynamicBoneData("BeltRight", 0.3f, null, 0.08f, null, 0.88f, null, 0.3f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDevotedMarigoldSkirtLeftModification.dynamicBoneData = new DynamicBoneData("SkirtLeft", 0.25f, null, 0.05f, null, 0.401f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDevotedMarigoldSkirtRightModification.dynamicBoneData = new DynamicBoneData("SkirtRight", 0.25f, null, 0.05f, null, 0.401f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDevotedMarigoldArmSleeveLeftModification.dynamicBoneData = new DynamicBoneData("ArmSleeveLeft", 0.1f, null, 0.01f, null, 0.75f, null, 0.9f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDevotedMarigoldArmSleeveRightModification.dynamicBoneData = new DynamicBoneData("ArmSleeveRight", 0.1f, null, 0.01f, null, 0.75f, null, 0.9f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDevotedMarigoldEarLeftModification.dynamicBoneData = new DynamicBoneData("EarLeft", 0.18f, null, 0.018f, null, 0.35f, null, 0.4f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDevotedMarigoldEarRightModification.dynamicBoneData = new DynamicBoneData("EarRight", 0.18f, null, 0.018f, null, 0.35f, null, 0.4f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDevotedMarigoldHairBackLeftModification.dynamicBoneData = new DynamicBoneData("HairBackLeft", 0.894f, null, 0.1f, null, 0.5f, null, 0.2f, null, 0.12f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, -0.01f, -0.005f), new List { new DynamicBoneColliderData("stomach", (Direction)1, new Vector3(0f, 0f, 0.08f), (Bound)0, 0.16f, 1.03f) }, new List(), (FreezeAxis)0); NiaDevotedMarigoldHairBackRightModification.dynamicBoneData = new DynamicBoneData("HairBackRight", 0.894f, null, 0.1f, null, 0.5f, null, 0.2f, null, 0.12f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, -0.01f, -0.005f), new List { new DynamicBoneColliderData("stomach", (Direction)1, new Vector3(0f, 0f, 0.08f), (Bound)0, 0.16f, 1.03f) }, new List(), (FreezeAxis)0); NiaDevotedMarigoldHairFrontLeftModification.dynamicBoneData = new DynamicBoneData("HairFrontLeft", 0.894f, null, 0.1f, null, 0.7f, null, 0.2f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDevotedMarigoldHairFrontMiddleModification.dynamicBoneData = new DynamicBoneData("HairFrontMiddle", 0.8f, null, 0.15f, null, 0.9f, null, 0.2f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDevotedMarigoldHairFrontRightModification.dynamicBoneData = new DynamicBoneData("HairFrontRight", 0.894f, null, 0.1f, null, 0.7f, null, 0.2f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDevotedMarigoldRibbonBackModification.dynamicBoneData = new DynamicBoneData("RibbonBack", 0.682f, null, 0.05f, null, 0.9f, null, 0.752f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaDevotedMarigoldRibbonFrontModification.dynamicBoneData = new DynamicBoneData("RibbonFront", 0.8f, null, 0.05f, null, 0.93f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaLoyalBellflowerBeltLeftModification.dynamicBoneData = new DynamicBoneData("BeltLeft", 0.3f, null, 0.05f, null, 0.8f, null, 0f, null, 0.02f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List { new DynamicBoneColliderData("thigh.l", (Direction)1, new Vector3(0f, 0.15f, -0.067f), (Bound)0, 0.13f, 0.56f) }, new List(), (FreezeAxis)0); NiaLoyalBellflowerBeltRightModification.dynamicBoneData = new DynamicBoneData("BeltRight", 0.3f, null, 0.08f, null, 0.88f, null, 0.3f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaLoyalBellflowerSkirtLeftModification.dynamicBoneData = new DynamicBoneData("SkirtLeft", 0.25f, null, 0.05f, null, 0.401f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaLoyalBellflowerSkirtRightModification.dynamicBoneData = new DynamicBoneData("SkirtRight", 0.25f, null, 0.05f, null, 0.401f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaLoyalBellflowerArmSleeveLeftModification.dynamicBoneData = new DynamicBoneData("ArmSleeveLeft", 0.1f, null, 0.01f, null, 0.75f, null, 0.9f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaLoyalBellflowerArmSleeveRightModification.dynamicBoneData = new DynamicBoneData("ArmSleeveRight", 0.1f, null, 0.01f, null, 0.75f, null, 0.9f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaLoyalBellflowerEarLeftModification.dynamicBoneData = new DynamicBoneData("EarLeft", 0.18f, null, 0.018f, null, 0.35f, null, 0.4f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaLoyalBellflowerEarRightModification.dynamicBoneData = new DynamicBoneData("EarRight", 0.18f, null, 0.018f, null, 0.35f, null, 0.4f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaLoyalBellflowerHairBackLeftModification.dynamicBoneData = new DynamicBoneData("HairBackLeft", 0.894f, null, 0.1f, null, 0.5f, null, 0.2f, null, 0.12f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, -0.01f, -0.005f), new List { new DynamicBoneColliderData("stomach", (Direction)1, new Vector3(0f, 0f, 0.08f), (Bound)0, 0.16f, 1.03f) }, new List(), (FreezeAxis)0); NiaLoyalBellflowerHairBackRightModification.dynamicBoneData = new DynamicBoneData("HairBackRight", 0.894f, null, 0.1f, null, 0.5f, null, 0.2f, null, 0.12f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, -0.01f, -0.005f), new List { new DynamicBoneColliderData("stomach", (Direction)1, new Vector3(0f, 0f, 0.08f), (Bound)0, 0.16f, 1.03f) }, new List(), (FreezeAxis)0); NiaLoyalBellflowerHairFrontLeftModification.dynamicBoneData = new DynamicBoneData("HairFrontLeft", 0.894f, null, 0.1f, null, 0.7f, null, 0.2f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaLoyalBellflowerHairFrontMiddleModification.dynamicBoneData = new DynamicBoneData("HairFrontMiddle", 0.8f, null, 0.15f, null, 0.9f, null, 0.2f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaLoyalBellflowerHairFrontRightModification.dynamicBoneData = new DynamicBoneData("HairFrontRight", 0.894f, null, 0.1f, null, 0.7f, null, 0.2f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaLoyalBellflowerRibbonBackModification.dynamicBoneData = new DynamicBoneData("RibbonBack", 0.682f, null, 0.05f, null, 0.9f, null, 0.752f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaLoyalBellflowerRibbonFrontModification.dynamicBoneData = new DynamicBoneData("RibbonFront", 0.8f, null, 0.05f, null, 0.93f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaSincerePrimroseBeltLeftModification.dynamicBoneData = new DynamicBoneData("BeltLeft", 0.3f, null, 0.05f, null, 0.8f, null, 0f, null, 0.02f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List { new DynamicBoneColliderData("thigh.l", (Direction)1, new Vector3(0f, 0.15f, -0.067f), (Bound)0, 0.13f, 0.56f) }, new List(), (FreezeAxis)0); NiaSincerePrimroseBeltRightModification.dynamicBoneData = new DynamicBoneData("BeltRight", 0.3f, null, 0.08f, null, 0.88f, null, 0.3f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaSincerePrimroseSkirtLeftModification.dynamicBoneData = new DynamicBoneData("SkirtLeft", 0.25f, null, 0.05f, null, 0.401f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaSincerePrimroseSkirtRightModification.dynamicBoneData = new DynamicBoneData("SkirtRight", 0.25f, null, 0.05f, null, 0.401f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaSincerePrimroseArmSleeveLeftModification.dynamicBoneData = new DynamicBoneData("ArmSleeveLeft", 0.1f, null, 0.01f, null, 0.75f, null, 0.9f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaSincerePrimroseArmSleeveRightModification.dynamicBoneData = new DynamicBoneData("ArmSleeveRight", 0.1f, null, 0.01f, null, 0.75f, null, 0.9f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaSincerePrimroseEarLeftModification.dynamicBoneData = new DynamicBoneData("EarLeft", 0.18f, null, 0.018f, null, 0.35f, null, 0.4f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaSincerePrimroseEarRightModification.dynamicBoneData = new DynamicBoneData("EarRight", 0.18f, null, 0.018f, null, 0.35f, null, 0.4f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaSincerePrimroseHairBackLeftModification.dynamicBoneData = new DynamicBoneData("HairBackLeft", 0.894f, null, 0.1f, null, 0.5f, null, 0.2f, null, 0.12f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, -0.01f, -0.005f), new List { new DynamicBoneColliderData("stomach", (Direction)1, new Vector3(0f, 0f, 0.08f), (Bound)0, 0.16f, 1.03f) }, new List(), (FreezeAxis)0); NiaSincerePrimroseHairBackRightModification.dynamicBoneData = new DynamicBoneData("HairBackRight", 0.894f, null, 0.1f, null, 0.5f, null, 0.2f, null, 0.12f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, -0.01f, -0.005f), new List { new DynamicBoneColliderData("stomach", (Direction)1, new Vector3(0f, 0f, 0.08f), (Bound)0, 0.16f, 1.03f) }, new List(), (FreezeAxis)0); NiaSincerePrimroseHairFrontLeftModification.dynamicBoneData = new DynamicBoneData("HairFrontLeft", 0.894f, null, 0.1f, null, 0.7f, null, 0.2f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaSincerePrimroseHairFrontMiddleModification.dynamicBoneData = new DynamicBoneData("HairFrontMiddle", 0.8f, null, 0.15f, null, 0.9f, null, 0.2f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaSincerePrimroseHairFrontRightModification.dynamicBoneData = new DynamicBoneData("HairFrontRight", 0.894f, null, 0.1f, null, 0.7f, null, 0.2f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaSincerePrimroseRibbonBackModification.dynamicBoneData = new DynamicBoneData("RibbonBack", 0.682f, null, 0.05f, null, 0.9f, null, 0.752f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); NiaSincerePrimroseRibbonFrontModification.dynamicBoneData = new DynamicBoneData("RibbonFront", 0.8f, null, 0.05f, null, 0.93f, null, 0.8f, null, 0f, null, 0f, new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new Vector3(0f, 0f, 0f), new List(), new List(), (FreezeAxis)0); } private void AddModificationsToList() { _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADRIVER_NAME", 116, NiaDriverPouchModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADRIVER_NAME", 109, NiaDriverKnife1Modification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADRIVER_NAME", 110, NiaDriverKnife2Modification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADRIVER_NAME", 111, NiaDriverKnife3Modification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADRIVER_NAME", 88, NiaDriverCapeLModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADRIVER_NAME", 95, NiaDriverCapeRModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADRIVER_NAME", 102, NiaDriverChestJewelryModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADRIVER_NAME", 103, NiaDriverHoodBackModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADRIVER_NAME", 31, NiaDriverBackHairLModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADRIVER_NAME", 34, NiaDriverBackHairMModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADRIVER_NAME", 37, NiaDriverBackHairRModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADRIVER_NAME", 49, NiaDriverEarLModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADRIVER_NAME", 52, NiaDriverEarRModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADRIVER_NAME", 40, NiaDriverFrontHairModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADRIVER_NAME", 43, NiaDriverTendrilLModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADRIVER_NAME", 46, NiaDriverTendrilRModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 116, NiaCandyStripePouchModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 109, NiaCandyStripeKnife1Modification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 110, NiaCandyStripeKnife2Modification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 111, NiaCandyStripeKnife3Modification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 88, NiaCandyStripeCapeLModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 95, NiaCandyStripeCapeRModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 102, NiaCandyStripeChestJewelryModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 103, NiaCandyStripeHoodBackModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 31, NiaCandyStripeBackHairLModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 34, NiaCandyStripeBackHairMModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 37, NiaCandyStripeBackHairRModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 49, NiaCandyStripeEarLModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 52, NiaCandyStripeEarRModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 40, NiaCandyStripeFrontHairModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 43, NiaCandyStripeTendrilLModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", 46, NiaCandyStripeTendrilRModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLOODWITCH_NAME", 116, NiaBloodWitchPouchModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLOODWITCH_NAME", 109, NiaBloodWitchKnife1Modification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLOODWITCH_NAME", 110, NiaBloodWitchKnife2Modification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLOODWITCH_NAME", 111, NiaBloodWitchKnife3Modification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLOODWITCH_NAME", 88, NiaBloodWitchCapeLModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLOODWITCH_NAME", 95, NiaBloodWitchCapeRModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLOODWITCH_NAME", 102, NiaBloodWitchChestJewelryModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLOODWITCH_NAME", 103, NiaBloodWitchHoodBackModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLOODWITCH_NAME", 31, NiaBloodWitchBackHairLModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLOODWITCH_NAME", 34, NiaBloodWitchBackHairMModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLOODWITCH_NAME", 37, NiaBloodWitchBackHairRModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLOODWITCH_NAME", 49, NiaBloodWitchEarLModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLOODWITCH_NAME", 52, NiaBloodWitchEarRModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLOODWITCH_NAME", 40, NiaBloodWitchFrontHairModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLOODWITCH_NAME", 43, NiaBloodWitchTendrilLModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLOODWITCH_NAME", 46, NiaBloodWitchTendrilRModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLADE_NAME", 112, NiaBladeBeltLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLADE_NAME", 114, NiaBladeBeltRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLADE_NAME", 115, NiaBladeSkirtLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLADE_NAME", 120, NiaBladeSkirtRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLADE_NAME", 28, NiaBladeArmSleeveLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLADE_NAME", 88, NiaBladeArmSleeveRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLADE_NAME", 58, NiaBladeEarLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLADE_NAME", 61, NiaBladeEarRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLADE_NAME", 35, NiaBladeHairBackLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLADE_NAME", 42, NiaBladeHairBackRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLADE_NAME", 52, NiaBladeHairFrontLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLADE_NAME", 49, NiaBladeHairFrontMiddleModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLADE_NAME", 55, NiaBladeHairFrontRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLADE_NAME", 101, NiaBladeRibbonBackModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIABLADE_NAME", 102, NiaBladeRibbonFrontModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 112, NiaDevotedMarigoldBeltLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 114, NiaDevotedMarigoldBeltRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 115, NiaDevotedMarigoldSkirtLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 120, NiaDevotedMarigoldSkirtRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 28, NiaDevotedMarigoldArmSleeveLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 88, NiaDevotedMarigoldArmSleeveRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 58, NiaDevotedMarigoldEarLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 61, NiaDevotedMarigoldEarRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 35, NiaDevotedMarigoldHairBackLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 42, NiaDevotedMarigoldHairBackRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 52, NiaDevotedMarigoldHairFrontLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 49, NiaDevotedMarigoldHairFrontMiddleModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 55, NiaDevotedMarigoldHairFrontRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 101, NiaDevotedMarigoldRibbonBackModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", 102, NiaDevotedMarigoldRibbonFrontModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 112, NiaLoyalBellflowerBeltLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 114, NiaLoyalBellflowerBeltRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 115, NiaLoyalBellflowerSkirtLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 120, NiaLoyalBellflowerSkirtRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 28, NiaLoyalBellflowerArmSleeveLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 88, NiaLoyalBellflowerArmSleeveRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 58, NiaLoyalBellflowerEarLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 61, NiaLoyalBellflowerEarRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 35, NiaLoyalBellflowerHairBackLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 42, NiaLoyalBellflowerHairBackRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 52, NiaLoyalBellflowerHairFrontLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 49, NiaLoyalBellflowerHairFrontMiddleModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 55, NiaLoyalBellflowerHairFrontRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 101, NiaLoyalBellflowerRibbonBackModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", 102, NiaLoyalBellflowerRibbonFrontModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 112, NiaSincerePrimroseBeltLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 114, NiaSincerePrimroseBeltRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 115, NiaSincerePrimroseSkirtLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 120, NiaSincerePrimroseSkirtRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 28, NiaSincerePrimroseArmSleeveLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 88, NiaSincerePrimroseArmSleeveRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 58, NiaSincerePrimroseEarLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 61, NiaSincerePrimroseEarRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 35, NiaSincerePrimroseHairBackLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 42, NiaSincerePrimroseHairBackRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 52, NiaSincerePrimroseHairFrontLeftModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 49, NiaSincerePrimroseHairFrontMiddleModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 55, NiaSincerePrimroseHairFrontRightModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 101, NiaSincerePrimroseRibbonBackModification); _DynamicSkinManager.AddModification("MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", 102, NiaSincerePrimroseRibbonFrontModification); } private static void onSkinAdded(object sender, SkinAddedArgs e) { _DynamicSkinManager.AddSkinDef(e.skinDef); } } public delegate void VoidDelegate(); public class SkinAddedArgs : EventArgs { public SkinDef skinDef { get; } public GameObject bodyPrefab { get; } public SkinAddedArgs(SkinDef newSkinDef, GameObject newGameObject) { skinDef = newSkinDef; bodyPrefab = newGameObject; } } public static AssetBundle assetBundle; public static ConfigFile config; public static SkinDef[] skinDefsDriver = (SkinDef[])(object)new SkinDef[3]; public static SkinDef[] skinDefsBlade = (SkinDef[])(object)new SkinDef[4]; private static readonly List materialsWithRoRShader = new List(); private static DynamicSkinExtension _DynamicSkinExtension = new DynamicSkinExtension(); private static DynamicSkinManager _DynamicSkinManager = new DynamicSkinManager(); private static VoidDelegate BeforeStartDelegate; private static VoidDelegate AfterStartDelegate; private static VoidDelegate BeforeBodyCatalogDelegate; private static VoidDelegate AfterBodyCatalogDelegate; internal static NiaMercSkinPlugin Instance { get; private set; } internal static ManualLogSource InstanceLogger { get { NiaMercSkinPlugin instance = Instance; if (instance == null) { return null; } return ((BaseUnityPlugin)instance).Logger; } } private static event EventHandler MercBodyNiaDriverSkinAddedEvent; private static event EventHandler MercBodyNiaBloodWitchSkinAddedEvent; private static event EventHandler MercBodyNiaCandyStripeSkinAddedEvent; private static event EventHandler MercBodyNiaBladeSkinAddedEvent; private static event EventHandler MercBodyNiaDevotedMarigoldSkinAddedEvent; private static event EventHandler MercBodyNiaLoyalBellflowerSkinAddedEvent; private static event EventHandler MercBodyNiaSincerePrimroseSkinAddedEvent; private void Awake() { config = ((BaseUnityPlugin)this).Config; MwSkinEvents.CreateVoiceGroups(); } private void Start() { Instance = this; BeforeStart(); using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("NiaMercSkin.miyowiniamercskin")) { assetBundle = AssetBundle.LoadFromStream(stream); } ((ResourceAvailability)(ref BodyCatalog.availability)).CallWhenAvailable((Action)BodyCatalogInit); HookEndpointManager.Add((MethodBase)typeof(Language).GetMethod("LoadStrings"), (Delegate)new Action, Language>(LanguageLoadStrings)); ReplaceShaders(); Options.Init(); AfterStart(); } private void BeforeStart() { BeforeStartDelegate = (VoidDelegate)Delegate.Combine(BeforeStartDelegate, new VoidDelegate(_DynamicSkinExtension.BeforeStart)); BeforeStartDelegate?.Invoke(); } private void AfterStart() { AfterStartDelegate = (VoidDelegate)Delegate.Combine(AfterStartDelegate, new VoidDelegate(_DynamicSkinExtension.AfterStart)); AfterStartDelegate?.Invoke(); } private static void BeforeBodyCatalogInit() { BeforeBodyCatalogDelegate = (VoidDelegate)Delegate.Combine(BeforeBodyCatalogDelegate, new VoidDelegate(_DynamicSkinExtension.BeforeBodyCatalogInit)); BeforeBodyCatalogDelegate?.Invoke(); } private static void AfterBodyCatalogInit() { AfterBodyCatalogDelegate = (VoidDelegate)Delegate.Combine(AfterBodyCatalogDelegate, new VoidDelegate(_DynamicSkinExtension.AfterBodyCatalogInit)); AfterBodyCatalogDelegate?.Invoke(); } private static void ReplaceShaders() { LoadMaterialsWithReplacedShader("RoR2/Base/Shaders/HGStandard.shader", "Assets/Skins/NiaMerc/NiaDriver/Skin/matNiaDriver.mat", "Assets/Skins/NiaMerc/NiaDriver/Skin/matScimitar.mat", "Assets/Skins/NiaMerc/NiaDriver/Skin/matNiaBloodWitch.mat", "Assets/Skins/NiaMerc/NiaDriver/Skin/matNiaCandyStripe.mat", "Assets/Skins/NiaMerc/NiaBlade/Skin/BladeNiaMat.mat", "Assets/Skins/NiaMerc/NiaBlade/Skin/BladeNiaMatDM.mat", "Assets/Skins/NiaMerc/NiaBlade/Skin/BladeNiaMatLB.mat", "Assets/Skins/NiaMerc/NiaBlade/Skin/BladeNiaMatSP.mat"); } private static void LoadMaterialsWithReplacedShader(string shaderPath, params string[] materialPaths) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Unknown result type (might be due to invalid IL or missing references) Shader shader = Addressables.LoadAssetAsync((object)shaderPath).WaitForCompletion(); foreach (string text in materialPaths) { Material val = assetBundle.LoadAsset(text); val.shader = shader; materialsWithRoRShader.Add(val); } } private static void LanguageLoadStrings(Action orig, Language self) { orig(self); self.SetStringByToken("MIYOWI_SKIN_NIADRIVER_NAME", "Nia (Driver)"); self.SetStringByToken("MIYOWI_SKIN_NIABLOODWITCH_NAME", "Nia (Blood Witch)"); self.SetStringByToken("MIYOWI_SKIN_NIACANDYSTRIPE_NAME", "Nia (Candy Stripe)"); self.SetStringByToken("MIYOWI_SKIN_NIABLADE_NAME", "Nia (Blade)"); self.SetStringByToken("MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME", "Nia (Devoted Marigold)"); self.SetStringByToken("MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME", "Nia (Loyal Bellflower)"); self.SetStringByToken("MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME", "Nia (Sincere Primrose)"); } private static void BodyCatalogInit() { BeforeBodyCatalogInit(); AddMercBodyNiaDriverSkin(); AddMercBodyNiaBloodWitchSkin(); AddMercBodyNiaCandyStripeSkin(); AddMercBodyNiaBladeSkin(); AddMercBodyNiaDevotedMarigoldSkin(); AddMercBodyNiaLoyalBellflowerSkin(); AddMercBodyNiaSincerePrimroseSkin(); MwSkinEvents.InitDriver(skinDefsDriver); MwSkinEvents.InitBlade(skinDefsBlade); AfterBodyCatalogInit(); } private static void MercBodyNiaDriverSkinAdded(SkinDef skinDef, GameObject bodyPrefab) { NiaMercSkinPlugin.MercBodyNiaDriverSkinAddedEvent(Instance, new SkinAddedArgs(skinDef, bodyPrefab)); } private static void AddMercBodyNiaDriverSkin() { string text = "MercBody"; string text2 = "NiaDriver"; try { GameObject val = BodyCatalog.FindBodyPrefab(text); if (!Object.op_Implicit((Object)(object)val)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin because \"" + text + "\" doesn't exist")); return; } ModelLocator component = val.GetComponent(); if (!Object.op_Implicit((Object)(object)component)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\" because it doesn't have \"ModelLocator\" component")); return; } GameObject gameObject = ((Component)component.modelTransform).gameObject; ModelSkinController skinController = (Object.op_Implicit((Object)(object)gameObject) ? gameObject.GetComponent() : null); if (!Object.op_Implicit((Object)(object)skinController)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\" because it doesn't have \"ModelSkinController\" component")); return; } Renderer[] renderers = gameObject.GetComponentsInChildren(true); gameObject.GetComponentsInChildren(true); SkinDef skin = ScriptableObject.CreateInstance(); SkinDefParams skinParams = ScriptableObject.CreateInstance(); skin.skinDefParams = skinParams; TryCatchThrow("Icon", delegate { skin.icon = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Icons\\NiaDriverIcon.png"); }); ((Object)skin).name = text2; skin.nameToken = "MIYOWI_SKIN_NIADRIVER_NAME"; skin.rootObject = gameObject; TryCatchThrow("Base Skins", delegate { skin.baseSkins = (SkinDef[])(object)new SkinDef[1] { ThrowIfOutOfBounds(0, "Index 0 is out of bounds of skins array", skinController.skins, 0) }; }); TryCatchThrow("Unlockable Name", delegate { skin.unlockableDef = null; }); TryCatchThrow("Game Object Activations", delegate { skinParams.gameObjectActivations = Array.Empty(); }); TryCatchThrow("Renderer Infos", delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Unknown result type (might be due to invalid IL or missing references) skinParams.rendererInfos = (RendererInfo[])(object)new RendererInfo[2] { new RendererInfo { defaultMaterial = assetBundle.LoadAsset("Assets/Skins/NiaMerc/NiaDriver/Skin/matNiaDriver.mat"), defaultShadowCastingMode = (ShadowCastingMode)1, ignoreOverlays = false, renderer = ThrowIfNull(0, "There is no renderer with the name \"MercMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercMesh"))) }, new RendererInfo { defaultMaterial = assetBundle.LoadAsset("Assets/Skins/NiaMerc/NiaDriver/Skin/matScimitar.mat"), defaultShadowCastingMode = (ShadowCastingMode)1, ignoreOverlays = false, renderer = ThrowIfNull(1, "There is no renderer with the name \"MercSwordMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercSwordMesh"))) } }; }); TryCatchThrow("Mesh Replacements", delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) skinParams.meshReplacements = (MeshReplacement[])(object)new MeshReplacement[2] { new MeshReplacement { mesh = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Meshes\\NiaBody.mesh"), renderer = ThrowIfNull(0, "There is no renderer with the name \"MercMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercMesh"))) }, new MeshReplacement { mesh = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Meshes\\CatalystScimitar.mesh"), renderer = ThrowIfNull(1, "There is no renderer with the name \"MercSwordMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercSwordMesh"))) } }; }); TryCatchThrow("Light Infos", delegate { skinParams.lightReplacements = (LightInfo[])(object)new LightInfo[0]; }); TryCatchThrow("Minion Skin Replacements", delegate { skinParams.minionSkinReplacements = Array.Empty(); }); TryCatchThrow("Projectile Ghost Replacements", delegate { skinParams.projectileGhostReplacements = Array.Empty(); }); Array.Resize(ref skinController.skins, skinController.skins.Length + 1); skinController.skins[skinController.skins.Length - 1] = skin; skinDefsDriver[0] = skin; MercBodyNiaDriverSkinAdded(skin, val); } catch (FieldException ex) { if (ex.InnerException is ElementException ex2) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogWarning((object)$"Field causing issue: {ex.Message}, element: {ex2.Index}"); InstanceLogger.LogWarning((object)ex2.Message); InstanceLogger.LogError((object)ex.InnerException); } else { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogWarning((object)("Field causing issue: " + ex.Message)); InstanceLogger.LogError((object)ex.InnerException); } } catch (Exception ex3) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogError((object)ex3); } } private static void MercBodyNiaBloodWitchSkinAdded(SkinDef skinDef, GameObject bodyPrefab) { NiaMercSkinPlugin.MercBodyNiaBloodWitchSkinAddedEvent(Instance, new SkinAddedArgs(skinDef, bodyPrefab)); } private static void AddMercBodyNiaBloodWitchSkin() { string text = "MercBody"; string text2 = "NiaBloodWitch"; try { GameObject val = BodyCatalog.FindBodyPrefab(text); if (!Object.op_Implicit((Object)(object)val)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin because \"" + text + "\" doesn't exist")); return; } ModelLocator component = val.GetComponent(); if (!Object.op_Implicit((Object)(object)component)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\" because it doesn't have \"ModelLocator\" component")); return; } GameObject gameObject = ((Component)component.modelTransform).gameObject; ModelSkinController skinController = (Object.op_Implicit((Object)(object)gameObject) ? gameObject.GetComponent() : null); if (!Object.op_Implicit((Object)(object)skinController)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\" because it doesn't have \"ModelSkinController\" component")); return; } Renderer[] renderers = gameObject.GetComponentsInChildren(true); gameObject.GetComponentsInChildren(true); SkinDef skin = ScriptableObject.CreateInstance(); SkinDefParams skinParams = ScriptableObject.CreateInstance(); skin.skinDefParams = skinParams; TryCatchThrow("Icon", delegate { skin.icon = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Icons\\NiaBloodWitchIcon.png"); }); ((Object)skin).name = text2; skin.nameToken = "MIYOWI_SKIN_NIABLOODWITCH_NAME"; skin.rootObject = gameObject; TryCatchThrow("Base Skins", delegate { skin.baseSkins = (SkinDef[])(object)new SkinDef[1] { ThrowIfOutOfBounds(0, "Index 0 is out of bounds of skins array", skinController.skins, 0) }; }); TryCatchThrow("Unlockable Name", delegate { skin.unlockableDef = null; }); TryCatchThrow("Game Object Activations", delegate { skinParams.gameObjectActivations = Array.Empty(); }); TryCatchThrow("Renderer Infos", delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Unknown result type (might be due to invalid IL or missing references) skinParams.rendererInfos = (RendererInfo[])(object)new RendererInfo[2] { new RendererInfo { defaultMaterial = assetBundle.LoadAsset("Assets/Skins/NiaMerc/NiaDriver/Skin/matNiaBloodWitch.mat"), defaultShadowCastingMode = (ShadowCastingMode)1, ignoreOverlays = false, renderer = ThrowIfNull(0, "There is no renderer with the name \"MercMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercMesh"))) }, new RendererInfo { defaultMaterial = assetBundle.LoadAsset("Assets/Skins/NiaMerc/NiaDriver/Skin/matScimitar.mat"), defaultShadowCastingMode = (ShadowCastingMode)1, ignoreOverlays = false, renderer = ThrowIfNull(1, "There is no renderer with the name \"MercSwordMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercSwordMesh"))) } }; }); TryCatchThrow("Mesh Replacements", delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) skinParams.meshReplacements = (MeshReplacement[])(object)new MeshReplacement[2] { new MeshReplacement { mesh = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Meshes\\NiaBody.mesh"), renderer = ThrowIfNull(0, "There is no renderer with the name \"MercMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercMesh"))) }, new MeshReplacement { mesh = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Meshes\\CatalystScimitar.mesh"), renderer = ThrowIfNull(1, "There is no renderer with the name \"MercSwordMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercSwordMesh"))) } }; }); TryCatchThrow("Light Infos", delegate { skinParams.lightReplacements = (LightInfo[])(object)new LightInfo[0]; }); TryCatchThrow("Minion Skin Replacements", delegate { skinParams.minionSkinReplacements = Array.Empty(); }); TryCatchThrow("Projectile Ghost Replacements", delegate { skinParams.projectileGhostReplacements = Array.Empty(); }); Array.Resize(ref skinController.skins, skinController.skins.Length + 1); skinController.skins[skinController.skins.Length - 1] = skin; skinDefsDriver[1] = skin; MercBodyNiaBloodWitchSkinAdded(skin, val); } catch (FieldException ex) { if (ex.InnerException is ElementException ex2) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogWarning((object)$"Field causing issue: {ex.Message}, element: {ex2.Index}"); InstanceLogger.LogWarning((object)ex2.Message); InstanceLogger.LogError((object)ex.InnerException); } else { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogWarning((object)("Field causing issue: " + ex.Message)); InstanceLogger.LogError((object)ex.InnerException); } } catch (Exception ex3) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogError((object)ex3); } } private static void MercBodyNiaCandyStripeSkinAdded(SkinDef skinDef, GameObject bodyPrefab) { NiaMercSkinPlugin.MercBodyNiaCandyStripeSkinAddedEvent(Instance, new SkinAddedArgs(skinDef, bodyPrefab)); } private static void AddMercBodyNiaCandyStripeSkin() { string text = "MercBody"; string text2 = "NiaCandyStripe"; try { GameObject val = BodyCatalog.FindBodyPrefab(text); if (!Object.op_Implicit((Object)(object)val)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin because \"" + text + "\" doesn't exist")); return; } ModelLocator component = val.GetComponent(); if (!Object.op_Implicit((Object)(object)component)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\" because it doesn't have \"ModelLocator\" component")); return; } GameObject gameObject = ((Component)component.modelTransform).gameObject; ModelSkinController skinController = (Object.op_Implicit((Object)(object)gameObject) ? gameObject.GetComponent() : null); if (!Object.op_Implicit((Object)(object)skinController)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\" because it doesn't have \"ModelSkinController\" component")); return; } Renderer[] renderers = gameObject.GetComponentsInChildren(true); gameObject.GetComponentsInChildren(true); SkinDef skin = ScriptableObject.CreateInstance(); SkinDefParams skinParams = ScriptableObject.CreateInstance(); skin.skinDefParams = skinParams; TryCatchThrow("Icon", delegate { skin.icon = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Icons\\NiaCandyStripeIcon.png"); }); ((Object)skin).name = text2; skin.nameToken = "MIYOWI_SKIN_NIACANDYSTRIPE_NAME"; skin.rootObject = gameObject; TryCatchThrow("Base Skins", delegate { skin.baseSkins = (SkinDef[])(object)new SkinDef[1] { ThrowIfOutOfBounds(0, "Index 0 is out of bounds of skins array", skinController.skins, 0) }; }); TryCatchThrow("Unlockable Name", delegate { skin.unlockableDef = null; }); TryCatchThrow("Game Object Activations", delegate { skinParams.gameObjectActivations = Array.Empty(); }); TryCatchThrow("Renderer Infos", delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Unknown result type (might be due to invalid IL or missing references) skinParams.rendererInfos = (RendererInfo[])(object)new RendererInfo[2] { new RendererInfo { defaultMaterial = assetBundle.LoadAsset("Assets/Skins/NiaMerc/NiaDriver/Skin/matNiaCandyStripe.mat"), defaultShadowCastingMode = (ShadowCastingMode)1, ignoreOverlays = false, renderer = ThrowIfNull(0, "There is no renderer with the name \"MercMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercMesh"))) }, new RendererInfo { defaultMaterial = assetBundle.LoadAsset("Assets/Skins/NiaMerc/NiaDriver/Skin/matScimitar.mat"), defaultShadowCastingMode = (ShadowCastingMode)1, ignoreOverlays = false, renderer = ThrowIfNull(1, "There is no renderer with the name \"MercSwordMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercSwordMesh"))) } }; }); TryCatchThrow("Mesh Replacements", delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) skinParams.meshReplacements = (MeshReplacement[])(object)new MeshReplacement[2] { new MeshReplacement { mesh = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Meshes\\NiaBody.mesh"), renderer = ThrowIfNull(0, "There is no renderer with the name \"MercMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercMesh"))) }, new MeshReplacement { mesh = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Meshes\\CatalystScimitar.mesh"), renderer = ThrowIfNull(1, "There is no renderer with the name \"MercSwordMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercSwordMesh"))) } }; }); TryCatchThrow("Light Infos", delegate { skinParams.lightReplacements = (LightInfo[])(object)new LightInfo[0]; }); TryCatchThrow("Minion Skin Replacements", delegate { skinParams.minionSkinReplacements = Array.Empty(); }); TryCatchThrow("Projectile Ghost Replacements", delegate { skinParams.projectileGhostReplacements = Array.Empty(); }); Array.Resize(ref skinController.skins, skinController.skins.Length + 1); skinController.skins[skinController.skins.Length - 1] = skin; skinDefsDriver[2] = skin; MercBodyNiaCandyStripeSkinAdded(skin, val); } catch (FieldException ex) { if (ex.InnerException is ElementException ex2) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogWarning((object)$"Field causing issue: {ex.Message}, element: {ex2.Index}"); InstanceLogger.LogWarning((object)ex2.Message); InstanceLogger.LogError((object)ex.InnerException); } else { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogWarning((object)("Field causing issue: " + ex.Message)); InstanceLogger.LogError((object)ex.InnerException); } } catch (Exception ex3) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogError((object)ex3); } } private static void MercBodyNiaBladeSkinAdded(SkinDef skinDef, GameObject bodyPrefab) { NiaMercSkinPlugin.MercBodyNiaBladeSkinAddedEvent(Instance, new SkinAddedArgs(skinDef, bodyPrefab)); } private static void AddMercBodyNiaBladeSkin() { string text = "MercBody"; string text2 = "NiaBlade"; try { GameObject val = BodyCatalog.FindBodyPrefab(text); if (!Object.op_Implicit((Object)(object)val)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin because \"" + text + "\" doesn't exist")); return; } ModelLocator component = val.GetComponent(); if (!Object.op_Implicit((Object)(object)component)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\" because it doesn't have \"ModelLocator\" component")); return; } GameObject gameObject = ((Component)component.modelTransform).gameObject; ModelSkinController skinController = (Object.op_Implicit((Object)(object)gameObject) ? gameObject.GetComponent() : null); if (!Object.op_Implicit((Object)(object)skinController)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\" because it doesn't have \"ModelSkinController\" component")); return; } Renderer[] renderers = gameObject.GetComponentsInChildren(true); gameObject.GetComponentsInChildren(true); SkinDef skin = ScriptableObject.CreateInstance(); SkinDefParams skinParams = ScriptableObject.CreateInstance(); skin.skinDefParams = skinParams; TryCatchThrow("Icon", delegate { skin.icon = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Icons\\NiaBladeIcon.png"); }); ((Object)skin).name = text2; skin.nameToken = "MIYOWI_SKIN_NIABLADE_NAME"; skin.rootObject = gameObject; TryCatchThrow("Base Skins", delegate { skin.baseSkins = (SkinDef[])(object)new SkinDef[1] { ThrowIfOutOfBounds(0, "Index 0 is out of bounds of skins array", skinController.skins, 0) }; }); TryCatchThrow("Unlockable Name", delegate { skin.unlockableDef = null; }); TryCatchThrow("Game Object Activations", delegate { skinParams.gameObjectActivations = Array.Empty(); }); TryCatchThrow("Renderer Infos", delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Unknown result type (might be due to invalid IL or missing references) skinParams.rendererInfos = (RendererInfo[])(object)new RendererInfo[2] { new RendererInfo { defaultMaterial = assetBundle.LoadAsset("Assets/Skins/NiaMerc/NiaBlade/Skin/BladeNiaMat.mat"), defaultShadowCastingMode = (ShadowCastingMode)1, ignoreOverlays = false, renderer = ThrowIfNull(0, "There is no renderer with the name \"MercMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercMesh"))) }, new RendererInfo { defaultMaterial = assetBundle.LoadAsset("Assets/Skins/NiaMerc/NiaDriver/Skin/matScimitar.mat"), defaultShadowCastingMode = (ShadowCastingMode)1, ignoreOverlays = false, renderer = ThrowIfNull(1, "There is no renderer with the name \"MercSwordMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercSwordMesh"))) } }; }); TryCatchThrow("Mesh Replacements", delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) skinParams.meshReplacements = (MeshReplacement[])(object)new MeshReplacement[2] { new MeshReplacement { mesh = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Meshes\\NiaBladeBody.mesh"), renderer = ThrowIfNull(0, "There is no renderer with the name \"MercMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercMesh"))) }, new MeshReplacement { mesh = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Meshes\\CatalystScimitarBlade.mesh"), renderer = ThrowIfNull(1, "There is no renderer with the name \"MercSwordMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercSwordMesh"))) } }; }); TryCatchThrow("Light Infos", delegate { skinParams.lightReplacements = (LightInfo[])(object)new LightInfo[0]; }); TryCatchThrow("Minion Skin Replacements", delegate { skinParams.minionSkinReplacements = Array.Empty(); }); TryCatchThrow("Projectile Ghost Replacements", delegate { skinParams.projectileGhostReplacements = Array.Empty(); }); Array.Resize(ref skinController.skins, skinController.skins.Length + 1); skinController.skins[skinController.skins.Length - 1] = skin; skinDefsBlade[0] = skin; MercBodyNiaBladeSkinAdded(skin, val); } catch (FieldException ex) { if (ex.InnerException is ElementException ex2) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogWarning((object)$"Field causing issue: {ex.Message}, element: {ex2.Index}"); InstanceLogger.LogWarning((object)ex2.Message); InstanceLogger.LogError((object)ex.InnerException); } else { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogWarning((object)("Field causing issue: " + ex.Message)); InstanceLogger.LogError((object)ex.InnerException); } } catch (Exception ex3) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogError((object)ex3); } } private static void MercBodyNiaDevotedMarigoldSkinAdded(SkinDef skinDef, GameObject bodyPrefab) { NiaMercSkinPlugin.MercBodyNiaDevotedMarigoldSkinAddedEvent(Instance, new SkinAddedArgs(skinDef, bodyPrefab)); } private static void AddMercBodyNiaDevotedMarigoldSkin() { string text = "MercBody"; string text2 = "NiaDevotedMarigold"; try { GameObject val = BodyCatalog.FindBodyPrefab(text); if (!Object.op_Implicit((Object)(object)val)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin because \"" + text + "\" doesn't exist")); return; } ModelLocator component = val.GetComponent(); if (!Object.op_Implicit((Object)(object)component)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\" because it doesn't have \"ModelLocator\" component")); return; } GameObject gameObject = ((Component)component.modelTransform).gameObject; ModelSkinController skinController = (Object.op_Implicit((Object)(object)gameObject) ? gameObject.GetComponent() : null); if (!Object.op_Implicit((Object)(object)skinController)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\" because it doesn't have \"ModelSkinController\" component")); return; } Renderer[] renderers = gameObject.GetComponentsInChildren(true); gameObject.GetComponentsInChildren(true); SkinDef skin = ScriptableObject.CreateInstance(); SkinDefParams skinParams = ScriptableObject.CreateInstance(); skin.skinDefParams = skinParams; TryCatchThrow("Icon", delegate { skin.icon = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Icons\\NiaDevotedMarigoldIcon.png"); }); ((Object)skin).name = text2; skin.nameToken = "MIYOWI_SKIN_NIADEVOTEDMARIGOLD_NAME"; skin.rootObject = gameObject; TryCatchThrow("Base Skins", delegate { skin.baseSkins = (SkinDef[])(object)new SkinDef[1] { ThrowIfOutOfBounds(0, "Index 0 is out of bounds of skins array", skinController.skins, 0) }; }); TryCatchThrow("Unlockable Name", delegate { skin.unlockableDef = null; }); TryCatchThrow("Game Object Activations", delegate { skinParams.gameObjectActivations = Array.Empty(); }); TryCatchThrow("Renderer Infos", delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Unknown result type (might be due to invalid IL or missing references) skinParams.rendererInfos = (RendererInfo[])(object)new RendererInfo[2] { new RendererInfo { defaultMaterial = assetBundle.LoadAsset("Assets/Skins/NiaMerc/NiaBlade/Skin/BladeNiaMatDM.mat"), defaultShadowCastingMode = (ShadowCastingMode)1, ignoreOverlays = false, renderer = ThrowIfNull(0, "There is no renderer with the name \"MercMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercMesh"))) }, new RendererInfo { defaultMaterial = assetBundle.LoadAsset("Assets/Skins/NiaMerc/NiaDriver/Skin/matScimitar.mat"), defaultShadowCastingMode = (ShadowCastingMode)1, ignoreOverlays = false, renderer = ThrowIfNull(1, "There is no renderer with the name \"MercSwordMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercSwordMesh"))) } }; }); TryCatchThrow("Mesh Replacements", delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) skinParams.meshReplacements = (MeshReplacement[])(object)new MeshReplacement[2] { new MeshReplacement { mesh = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Meshes\\NiaBladeBody.mesh"), renderer = ThrowIfNull(0, "There is no renderer with the name \"MercMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercMesh"))) }, new MeshReplacement { mesh = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Meshes\\CatalystScimitarBlade.mesh"), renderer = ThrowIfNull(1, "There is no renderer with the name \"MercSwordMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercSwordMesh"))) } }; }); TryCatchThrow("Light Infos", delegate { skinParams.lightReplacements = (LightInfo[])(object)new LightInfo[0]; }); TryCatchThrow("Minion Skin Replacements", delegate { skinParams.minionSkinReplacements = Array.Empty(); }); TryCatchThrow("Projectile Ghost Replacements", delegate { skinParams.projectileGhostReplacements = Array.Empty(); }); Array.Resize(ref skinController.skins, skinController.skins.Length + 1); skinController.skins[skinController.skins.Length - 1] = skin; skinDefsBlade[1] = skin; MercBodyNiaDevotedMarigoldSkinAdded(skin, val); } catch (FieldException ex) { if (ex.InnerException is ElementException ex2) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogWarning((object)$"Field causing issue: {ex.Message}, element: {ex2.Index}"); InstanceLogger.LogWarning((object)ex2.Message); InstanceLogger.LogError((object)ex.InnerException); } else { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogWarning((object)("Field causing issue: " + ex.Message)); InstanceLogger.LogError((object)ex.InnerException); } } catch (Exception ex3) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogError((object)ex3); } } private static void MercBodyNiaLoyalBellflowerSkinAdded(SkinDef skinDef, GameObject bodyPrefab) { NiaMercSkinPlugin.MercBodyNiaLoyalBellflowerSkinAddedEvent(Instance, new SkinAddedArgs(skinDef, bodyPrefab)); } private static void AddMercBodyNiaLoyalBellflowerSkin() { string text = "MercBody"; string text2 = "NiaLoyalBellflower"; try { GameObject val = BodyCatalog.FindBodyPrefab(text); if (!Object.op_Implicit((Object)(object)val)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin because \"" + text + "\" doesn't exist")); return; } ModelLocator component = val.GetComponent(); if (!Object.op_Implicit((Object)(object)component)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\" because it doesn't have \"ModelLocator\" component")); return; } GameObject gameObject = ((Component)component.modelTransform).gameObject; ModelSkinController skinController = (Object.op_Implicit((Object)(object)gameObject) ? gameObject.GetComponent() : null); if (!Object.op_Implicit((Object)(object)skinController)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\" because it doesn't have \"ModelSkinController\" component")); return; } Renderer[] renderers = gameObject.GetComponentsInChildren(true); gameObject.GetComponentsInChildren(true); SkinDef skin = ScriptableObject.CreateInstance(); SkinDefParams skinParams = ScriptableObject.CreateInstance(); skin.skinDefParams = skinParams; TryCatchThrow("Icon", delegate { skin.icon = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Icons\\NiaLoyalBellflowerIcon.png"); }); ((Object)skin).name = text2; skin.nameToken = "MIYOWI_SKIN_NIALOYALBELLFLOWER_NAME"; skin.rootObject = gameObject; TryCatchThrow("Base Skins", delegate { skin.baseSkins = (SkinDef[])(object)new SkinDef[1] { ThrowIfOutOfBounds(0, "Index 0 is out of bounds of skins array", skinController.skins, 0) }; }); TryCatchThrow("Unlockable Name", delegate { skin.unlockableDef = null; }); TryCatchThrow("Game Object Activations", delegate { skinParams.gameObjectActivations = Array.Empty(); }); TryCatchThrow("Renderer Infos", delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Unknown result type (might be due to invalid IL or missing references) skinParams.rendererInfos = (RendererInfo[])(object)new RendererInfo[2] { new RendererInfo { defaultMaterial = assetBundle.LoadAsset("Assets/Skins/NiaMerc/NiaBlade/Skin/BladeNiaMatLB.mat"), defaultShadowCastingMode = (ShadowCastingMode)1, ignoreOverlays = false, renderer = ThrowIfNull(0, "There is no renderer with the name \"MercMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercMesh"))) }, new RendererInfo { defaultMaterial = assetBundle.LoadAsset("Assets/Skins/NiaMerc/NiaDriver/Skin/matScimitar.mat"), defaultShadowCastingMode = (ShadowCastingMode)1, ignoreOverlays = false, renderer = ThrowIfNull(1, "There is no renderer with the name \"MercSwordMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercSwordMesh"))) } }; }); TryCatchThrow("Mesh Replacements", delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) skinParams.meshReplacements = (MeshReplacement[])(object)new MeshReplacement[2] { new MeshReplacement { mesh = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Meshes\\NiaBladeBody.mesh"), renderer = ThrowIfNull(0, "There is no renderer with the name \"MercMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercMesh"))) }, new MeshReplacement { mesh = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Meshes\\CatalystScimitarBlade.mesh"), renderer = ThrowIfNull(1, "There is no renderer with the name \"MercSwordMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercSwordMesh"))) } }; }); TryCatchThrow("Light Infos", delegate { skinParams.lightReplacements = (LightInfo[])(object)new LightInfo[0]; }); TryCatchThrow("Minion Skin Replacements", delegate { skinParams.minionSkinReplacements = Array.Empty(); }); TryCatchThrow("Projectile Ghost Replacements", delegate { skinParams.projectileGhostReplacements = Array.Empty(); }); Array.Resize(ref skinController.skins, skinController.skins.Length + 1); skinController.skins[skinController.skins.Length - 1] = skin; skinDefsBlade[2] = skin; MercBodyNiaLoyalBellflowerSkinAdded(skin, val); } catch (FieldException ex) { if (ex.InnerException is ElementException ex2) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogWarning((object)$"Field causing issue: {ex.Message}, element: {ex2.Index}"); InstanceLogger.LogWarning((object)ex2.Message); InstanceLogger.LogError((object)ex.InnerException); } else { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogWarning((object)("Field causing issue: " + ex.Message)); InstanceLogger.LogError((object)ex.InnerException); } } catch (Exception ex3) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogError((object)ex3); } } private static void MercBodyNiaSincerePrimroseSkinAdded(SkinDef skinDef, GameObject bodyPrefab) { NiaMercSkinPlugin.MercBodyNiaSincerePrimroseSkinAddedEvent(Instance, new SkinAddedArgs(skinDef, bodyPrefab)); } private static void AddMercBodyNiaSincerePrimroseSkin() { string text = "MercBody"; string text2 = "NiaSincerePrimrose"; try { GameObject val = BodyCatalog.FindBodyPrefab(text); if (!Object.op_Implicit((Object)(object)val)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin because \"" + text + "\" doesn't exist")); return; } ModelLocator component = val.GetComponent(); if (!Object.op_Implicit((Object)(object)component)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\" because it doesn't have \"ModelLocator\" component")); return; } GameObject gameObject = ((Component)component.modelTransform).gameObject; ModelSkinController skinController = (Object.op_Implicit((Object)(object)gameObject) ? gameObject.GetComponent() : null); if (!Object.op_Implicit((Object)(object)skinController)) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\" because it doesn't have \"ModelSkinController\" component")); return; } Renderer[] renderers = gameObject.GetComponentsInChildren(true); gameObject.GetComponentsInChildren(true); SkinDef skin = ScriptableObject.CreateInstance(); SkinDefParams skinParams = ScriptableObject.CreateInstance(); skin.skinDefParams = skinParams; TryCatchThrow("Icon", delegate { skin.icon = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Icons\\NiaSincerePrimroseIcon.png"); }); ((Object)skin).name = text2; skin.nameToken = "MIYOWI_SKIN_NIASINCEREPRIMROSE_NAME"; skin.rootObject = gameObject; TryCatchThrow("Base Skins", delegate { skin.baseSkins = (SkinDef[])(object)new SkinDef[1] { ThrowIfOutOfBounds(0, "Index 0 is out of bounds of skins array", skinController.skins, 0) }; }); TryCatchThrow("Unlockable Name", delegate { skin.unlockableDef = null; }); TryCatchThrow("Game Object Activations", delegate { skinParams.gameObjectActivations = Array.Empty(); }); TryCatchThrow("Renderer Infos", delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Unknown result type (might be due to invalid IL or missing references) skinParams.rendererInfos = (RendererInfo[])(object)new RendererInfo[2] { new RendererInfo { defaultMaterial = assetBundle.LoadAsset("Assets/Skins/NiaMerc/NiaBlade/Skin/BladeNiaMatSP.mat"), defaultShadowCastingMode = (ShadowCastingMode)1, ignoreOverlays = false, renderer = ThrowIfNull(0, "There is no renderer with the name \"MercMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercMesh"))) }, new RendererInfo { defaultMaterial = assetBundle.LoadAsset("Assets/Skins/NiaMerc/NiaDriver/Skin/matScimitar.mat"), defaultShadowCastingMode = (ShadowCastingMode)1, ignoreOverlays = false, renderer = ThrowIfNull(1, "There is no renderer with the name \"MercSwordMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercSwordMesh"))) } }; }); TryCatchThrow("Mesh Replacements", delegate { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) skinParams.meshReplacements = (MeshReplacement[])(object)new MeshReplacement[2] { new MeshReplacement { mesh = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Meshes\\NiaBladeBody.mesh"), renderer = ThrowIfNull(0, "There is no renderer with the name \"MercMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercMesh"))) }, new MeshReplacement { mesh = assetBundle.LoadAsset("Assets\\SkinMods\\NiaMercSkin\\Meshes\\CatalystScimitarBlade.mesh"), renderer = ThrowIfNull(1, "There is no renderer with the name \"MercSwordMesh\"", ((IEnumerable)renderers).FirstOrDefault((Func)((Renderer r) => ((Object)r).name == "MercSwordMesh"))) } }; }); TryCatchThrow("Light Infos", delegate { skinParams.lightReplacements = (LightInfo[])(object)new LightInfo[0]; }); TryCatchThrow("Minion Skin Replacements", delegate { skinParams.minionSkinReplacements = Array.Empty(); }); TryCatchThrow("Projectile Ghost Replacements", delegate { skinParams.projectileGhostReplacements = Array.Empty(); }); Array.Resize(ref skinController.skins, skinController.skins.Length + 1); skinController.skins[skinController.skins.Length - 1] = skin; skinDefsBlade[3] = skin; MercBodyNiaSincerePrimroseSkinAdded(skin, val); } catch (FieldException ex) { if (ex.InnerException is ElementException ex2) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogWarning((object)$"Field causing issue: {ex.Message}, element: {ex2.Index}"); InstanceLogger.LogWarning((object)ex2.Message); InstanceLogger.LogError((object)ex.InnerException); } else { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogWarning((object)("Field causing issue: " + ex.Message)); InstanceLogger.LogError((object)ex.InnerException); } } catch (Exception ex3) { InstanceLogger.LogWarning((object)("Failed to add \"" + text2 + "\" skin to \"" + text + "\"")); InstanceLogger.LogError((object)ex3); } } private static T ThrowIfEquals(int index, string message, T value, T expected) where T : Enum { if (value.Equals(expected)) { throw new ElementException(index, message); } return value; } private static T ThrowIfOutOfBounds(int index, string message, T[] array, int elementIndex) where T : class { if (array == null || array.Length <= elementIndex) { throw new ElementException(index, message); } return array[elementIndex]; } private static T ThrowIfNull(int index, string message, T value) where T : class { if (value == null) { throw new ElementException(index, message); } return value; } private static void TryCatchThrow(string message, Action action) { try { action?.Invoke(); } catch (Exception innerException) { throw new FieldException(message, innerException); } } private static void TryAddComponent(GameObject obj) where T : Component { if (Object.op_Implicit((Object)(object)obj) && !Object.op_Implicit((Object)(object)obj.GetComponent())) { obj.AddComponent(); } } } } namespace RuneFoxMods { internal class Utils { public static void PrintBodyCatalog() { Debug.Log((object)"\nBodyCatalog"); foreach (GameObject allBodyPrefab in BodyCatalog.allBodyPrefabs) { Debug.Log((object)((Object)allBodyPrefab).name); } Debug.Log((object)"\n"); } public static void ReadChildren(GameObject parent, int tabs, bool includecomponents = true) { //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Unknown result type (might be due to invalid IL or missing references) string text = ""; for (int i = 0; i < tabs; i++) { text += " "; } for (int j = 0; j < parent.transform.childCount; j++) { Transform child = parent.transform.GetChild(j); if ((Object)(object)child == (Object)null) { break; } string text2 = ((Component)child).gameObject.activeInHierarchy.ToString(); string[] obj = new string[6] { text, ((Object)child).name, " ", text2, " ", null }; Vector3 position = ((Component)child).transform.position; obj[5] = ((object)(Vector3)(ref position)).ToString(); Debug.Log((object)string.Concat(obj)); if (includecomponents) { ReadComponents(((Component)child).gameObject, tabs + 1); Debug.Log((object)""); } ReadChildren(((Component)child).gameObject, tabs + 1, includecomponents); } } public static void readheiarchy(GameObject parent, bool includeComponents = true) { Debug.Log((object)((Object)parent).name); if (includeComponents) { ReadComponents(parent, 1); Debug.Log((object)""); } ReadChildren(parent, 1, includeComponents); } public static void ReadComponents(GameObject obj, int tabs) { string text = ""; for (int i = 0; i < tabs; i++) { text += " "; } Component[] components = obj.GetComponents(typeof(Component)); foreach (Component val in components) { string text2 = ""; Debug.Log((object)(text + "Comp: " + ((object)val).GetType().ToString() + " " + text2)); } } public static void PrintAllPaths(GameObject parent) { Debug.Log((object)((Object)parent).name); PrintAllPathsInner(parent, ((Object)parent).name); } private static void PrintAllPathsInner(GameObject parent, string parent_string) { int childCount = parent.transform.childCount; for (int i = 0; i < childCount; i++) { Transform child = parent.transform.GetChild(i); if (!((Object)child).name.EndsWith("_end")) { string text = parent_string + "/" + ((Object)child).name; Debug.Log((object)(" " + ((Object)child).name + "\t\t" + text)); PrintAllPathsInner(((Component)child).gameObject, text); continue; } break; } } public static void PrintDynamicBone(DynamicBone DB) { //IL_0168: Unknown result type (might be due to invalid IL or missing references) //IL_016d: Unknown result type (might be due to invalid IL or missing references) //IL_018b: Unknown result type (might be due to invalid IL or missing references) //IL_0190: Unknown result type (might be due to invalid IL or missing references) //IL_01ae: Unknown result type (might be due to invalid IL or missing references) //IL_01b3: Unknown result type (might be due to invalid IL or missing references) //IL_0266: Unknown result type (might be due to invalid IL or missing references) //IL_026b: Unknown result type (might be due to invalid IL or missing references) Debug.Log((object)("Root: " + (object)DB.m_Root)); Debug.Log((object)("Damping: " + DB.m_Damping)); Debug.Log((object)("Damping Dist: " + (object)DB.m_DampingDistrib)); Debug.Log((object)("Elasticity: " + DB.m_Elasticity)); Debug.Log((object)("Elasticity Dist: " + (object)DB.m_ElasticityDistrib)); Debug.Log((object)("Stiffness: " + DB.m_Stiffness)); Debug.Log((object)("Stiffness Dist: " + (object)DB.m_StiffnessDistrib)); Debug.Log((object)("Inert: " + DB.m_Inert)); Debug.Log((object)("Inert Dist: " + (object)DB.m_InertDistrib)); Debug.Log((object)("Radius: " + DB.m_Radius)); Debug.Log((object)("Radius Dist: " + (object)DB.m_RadiusDistrib)); Debug.Log((object)("End Length: " + DB.m_EndLength)); Vector3 val = DB.m_EndOffset; Debug.Log((object)("End Offset: " + ((object)(Vector3)(ref val)).ToString())); val = DB.m_Gravity; Debug.Log((object)("Gravity: " + ((object)(Vector3)(ref val)).ToString())); val = DB.m_Force; Debug.Log((object)("Force: " + ((object)(Vector3)(ref val)).ToString())); Debug.Log((object)("FreezeAxis: " + ((object)(FreezeAxis)(ref DB.m_FreezeAxis)).ToString())); Debug.Log((object)("Colliders: " + DB.m_Colliders.Count)); foreach (DynamicBoneCollider collider in DB.m_Colliders) { Debug.Log((object)("\t Parent: " + ((Object)((Component)collider).transform).name)); Debug.Log((object)("\t Direction: " + ((object)(Direction)(ref collider.m_Direction)).ToString())); val = collider.m_Center; Debug.Log((object)("\t Center " + ((object)(Vector3)(ref val)).ToString())); Debug.Log((object)("\t Bound " + ((object)(Bound)(ref collider.m_Bound)).ToString())); Debug.Log((object)("\t Radius " + collider.m_Radius)); Debug.Log((object)("\t Height " + collider.m_Height)); } Debug.Log((object)("Exclusions: " + DB.m_Exclusions.Count)); foreach (Transform exclusion in DB.m_Exclusions) { Debug.Log((object)("\t Transform: " + ((Object)exclusion).name)); } } public static ChildLocator GetChildLocator(GameObject body) { ChildLocator val = null; Transform child = body.transform.GetChild(0); if (Object.op_Implicit((Object)(object)child)) { Transform child2 = child.GetChild(0); if (Object.op_Implicit((Object)(object)child2)) { val = ((Component)child2).GetComponent(); if (Object.op_Implicit((Object)(object)val)) { Debug.Log((object)"Locator Found"); } } } return val; } public static Transform FindChildInTree(Transform Root, string name) { Queue queue = new Queue(); queue.Enqueue(Root); while (queue.Count != 0) { Transform val = queue.Dequeue(); if (((Object)val).name == name) { return val; } for (int i = 0; i < val.childCount; i++) { Transform child = val.GetChild(i); queue.Enqueue(child); } } return null; } public static string RemoveCloneNaming(string str) { return str.Remove(str.Length - 7); } } } namespace RuneFoxMods.DynamicSkins { public static class DynamicSkinHelpers { public static SkinnedMeshRenderer[] GetBaseSkinRenderers(GameObject modelObject) { SkinnedMeshRenderer[] componentsInChildren = modelObject.GetComponentsInChildren(true); List list = new List(); SkinnedMeshRenderer[] array = componentsInChildren; foreach (SkinnedMeshRenderer val in array) { if ((Object)(object)((Component)val).transform.parent == (Object)(object)modelObject.transform) { list.Add(val); } } return list.ToArray(); } public static Transform[] BoneArrayBuilder(Transform NewBoneRoot) { List list = new List(); BoneArrayBuilderHelper(NewBoneRoot, list); return list.ToArray(); } public static void BoneArrayBuilderHelper(Transform parent, List list) { if (!((Object)parent).name.EndsWith("_end")) { list.Add(parent); } for (int i = 0; i < parent.childCount; i++) { BoneArrayBuilderHelper(parent.GetChild(i), list); } } public static Transform GetArmature(GameObject obj) { return GetArmatureHelper(obj); } public static Transform GetArmatureHelper(GameObject obj) { if (((Object)obj).name.ToLower().Contains("armature")) { return obj.transform; } for (int i = 0; i < obj.transform.childCount; i++) { Transform armatureHelper = GetArmatureHelper(((Component)obj.transform.GetChild(i)).gameObject); if (Object.op_Implicit((Object)(object)armatureHelper)) { return armatureHelper; } } return null; } public static Transform GetTopParent(Transform obj) { Transform val = obj; while ((Object)(object)val.parent != (Object)null) { val = val.parent; } return val; } public static string GetPrevBoneInList(Transform targetBone, SkinnedMeshRenderer meshRenderer) { Transform[] bones = meshRenderer.bones; for (int i = 0; i <= bones.Length - 1; i++) { if (((Object)bones[i + 1]).name == ((Object)targetBone).name) { return ((Object)bones[i]).name; } } return null; } public static int GetBoneIndexInList(Transform targetBone, SkinnedMeshRenderer meshRenderer) { Transform[] bones = meshRenderer.bones; for (int i = 0; i <= bones.Length; i++) { if (((Object)bones[i]).name == ((Object)targetBone).name) { return i; } } return -1; } public static int GetPrevBoneIndexInList(Transform targetBone, SkinnedMeshRenderer meshRenderer) { Transform[] bones = meshRenderer.bones; for (int i = 0; i <= bones.Length - 1; i++) { if (((Object)bones[i + 1]).name == ((Object)targetBone).name) { return i; } } return -1; } } internal class DynamicSkinManager { internal Dictionary SkinDefs = new Dictionary(); private GameObject LastModelObject; internal Dictionary> ModificationList = new Dictionary>(); private Dictionary ModifiedObjects = new Dictionary(); internal ManualLogSource InstanceLogger; internal void AddModification(string skinNameToken, int boneIndex, Modification modification) { if (!ModificationList.TryGetValue(skinNameToken, out var value)) { value = new SortedList(); ModificationList.Add(skinNameToken, value); } value.Add(boneIndex, modification); } internal void AddSkinDef(SkinDef skinDef) { SkinDefs.Add(skinDef.nameToken, skinDef); } internal IEnumerator SkinDefApply(Func>, List>, int, IEnumerator> orig, SkinDef self, GameObject modelObject, List> loadedMaterials, List> loadedMeshes, int unloadType) { IEnumerator result = orig(self, modelObject, loadedMaterials, loadedMeshes, unloadType); RemoveInvalidModelObjects(); ModifiedObjects.TryGetValue(modelObject, out var value); try { if (!SkinDefs.TryGetValue(self.nameToken, out var _)) { if (value != null) { ClearSkinModifications(LastModelObject, value); } return result; } if (value == null) { AppliedModifications appliedModifications = new AppliedModifications(); ModifiedObjects.Add(modelObject, appliedModifications); ApplySkinModifications(self, modelObject, appliedModifications); } } catch (Exception ex) { InstanceLogger.LogWarning((object)"An error occured while adding accessories to a skin"); InstanceLogger.LogError((object)ex); } return result; } private void RemoveInvalidModelObjects() { foreach (GameObject item in ModifiedObjects.Keys.Where((GameObject el) => !Object.op_Implicit((Object)(object)el)).ToList()) { ModifiedObjects.Remove(item); } } private void ClearSkinModifications(GameObject modelObject, AppliedModifications modifications) { while (modifications.BaseModelModifications.Count != 0) { Modification modification = modifications.BaseModelModifications.Pop(); clearModification(modification, modelObject, modifications); } while (modifications.OtherModifications.Count != 0) { clearModification(modifications.OtherModifications[0], modelObject, modifications); } ModifiedObjects.Remove(modelObject); } private void ApplySkinModifications(SkinDef skindef, GameObject modelObject, AppliedModifications modifications) { CharacterModel component = modelObject.GetComponent(); LastModelObject = modelObject; if (!ModificationList.TryGetValue(skindef.nameToken, out var value)) { return; } foreach (KeyValuePair item in value) { ApplyModification(modelObject, component, item.Value, modifications); } } private static void ApplyModification(GameObject modelObject, CharacterModel characterModel, Modification modification, AppliedModifications modifications) { _ = modification.bodyname; string parentname = modification.parentname; Transform val = Utils.FindChildInTree(modelObject.transform, parentname); GameObject val2; if (modification.affectsbasemodel) { val2 = Object.Instantiate(modification.prefab, val, false); ((Object)val2).name = Utils.RemoveCloneNaming(((Object)val2).name); modification.instance = val2; modification.inst_armature = val2; ModificationApplyBones(modelObject, modification, modifications); } else { val2 = Object.Instantiate(modification.prefab, modelObject.transform, false); ((Object)val2).name = Utils.RemoveCloneNaming(((Object)val2).name); modification.instance = val2; Transform armature = DynamicSkinHelpers.GetArmature(val2); ((Component)armature).transform.SetParent(val, false); modification.inst_armature = ((Component)armature).gameObject; } modification.instance = val2; if (modification.dynamicBoneData != null) { ModificationApplyDynamicBones(modelObject, modification); } ModificationAddRenderers(val2, characterModel); modifications.OtherModifications.Add(modification); } private static void ModificationApplyBones(GameObject modelObject, Modification modification, AppliedModifications modifications) { SkinnedMeshRenderer[] baseSkinRenderers = DynamicSkinHelpers.GetBaseSkinRenderers(modelObject); List list = baseSkinRenderers[0].bones.ToList(); Transform[] array = DynamicSkinHelpers.BoneArrayBuilder(modification.instance.transform); list.InsertRange(modification.boneIndex, array); modification.boneCount = array.Length; SkinnedMeshRenderer[] array2 = baseSkinRenderers; for (int i = 0; i < array2.Length; i++) { array2[i].bones = list.ToArray(); } modifications.BaseModelModifications.Push(modification); } private static void ModificationApplyDynamicBones(GameObject modelObject, Modification modification) { //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_01a6: Unknown result type (might be due to invalid IL or missing references) //IL_01ab: Unknown result type (might be due to invalid IL or missing references) //IL_01b7: Unknown result type (might be due to invalid IL or missing references) //IL_01bc: Unknown result type (might be due to invalid IL or missing references) //IL_01c8: Unknown result type (might be due to invalid IL or missing references) //IL_01cd: Unknown result type (might be due to invalid IL or missing references) //IL_024e: Unknown result type (might be due to invalid IL or missing references) //IL_0253: Unknown result type (might be due to invalid IL or missing references) DynamicBone val = (modification.inst_dynamicBone = modification.instance.AddComponent()); List list = new List(); foreach (DynamicBoneColliderData collider in modification.dynamicBoneData.m_Colliders) { DynamicBoneCollider val2 = ((Component)Utils.FindChildInTree(modelObject.transform, collider.m_parent_name)).gameObject.AddComponent(); val2.m_Direction = collider.m_Direction; val2.m_Center = collider.m_Center; val2.m_Bound = collider.m_Bound; val2.m_Radius = collider.m_Radius; val2.m_Height = collider.m_Height; list.Add(val2); } modification.inst_DB_colliders = list; Transform root = (val.m_Root = Utils.FindChildInTree(modification.inst_armature.transform, modification.dynamicBoneData.m_Root)); val.m_Damping = modification.dynamicBoneData.m_Damping; val.m_DampingDistrib = modification.dynamicBoneData.m_DampingDistrib; val.m_Elasticity = modification.dynamicBoneData.m_Elasticity; val.m_ElasticityDistrib = modification.dynamicBoneData.m_ElasticityDistrib; val.m_Stiffness = modification.dynamicBoneData.m_Stiffness; val.m_StiffnessDistrib = modification.dynamicBoneData.m_StiffnessDistrib; val.m_Inert = modification.dynamicBoneData.m_Inert; val.m_InertDistrib = modification.dynamicBoneData.m_InertDistrib; val.m_Radius = modification.dynamicBoneData.m_Radius; val.m_RadiusDistrib = modification.dynamicBoneData.m_RadiusDistrib; val.m_EndLength = modification.dynamicBoneData.m_EndLength; val.m_EndOffset = modification.dynamicBoneData.m_EndOffset; val.m_Gravity = modification.dynamicBoneData.m_Gravity; val.m_Force = modification.dynamicBoneData.m_Force; val.m_Colliders = list; val.m_Exclusions = new List(); foreach (string exclusion in modification.dynamicBoneData.m_Exclusions) { Transform val3 = Utils.FindChildInTree(root, exclusion); if ((Object)(object)val3 != (Object)null) { val.m_Exclusions.Add(val3); } else { Debug.LogWarning((object)"Tried to exclude a transform that could not be found"); } } val.m_FreezeAxis = modification.dynamicBoneData.m_FreezeAxis; } private static void ModificationAddRenderers(GameObject newPart, CharacterModel characterModel) { //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0076: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) SkinnedMeshRenderer[] componentsInChildren = newPart.GetComponentsInChildren(true); Array.Resize(ref characterModel.baseRendererInfos, characterModel.baseRendererInfos.Length + componentsInChildren.Length); if (componentsInChildren.Length != 0) { int num = componentsInChildren.Length; SkinnedMeshRenderer[] array = componentsInChildren; foreach (SkinnedMeshRenderer val in array) { characterModel.baseRendererInfos[characterModel.baseRendererInfos.Length - num] = new RendererInfo { renderer = (Renderer)(object)componentsInChildren[^num], ignoreOverlays = false, defaultShadowCastingMode = (ShadowCastingMode)1, defaultMaterial = ((Renderer)val).sharedMaterial }; num--; } } } private void clearModification(Modification modification, GameObject modelObject, AppliedModifications modifications) { if (modification.inst_DB_colliders != null) { foreach (DynamicBoneCollider inst_DB_collider in modification.inst_DB_colliders) { Object.Destroy((Object)(object)inst_DB_collider); } } if (modification.affectsbasemodel) { SkinnedMeshRenderer[] baseSkinRenderers = DynamicSkinHelpers.GetBaseSkinRenderers(modelObject); List list = baseSkinRenderers[0].bones.ToList(); list.RemoveRange(modification.boneIndex, modification.boneCount); SkinnedMeshRenderer[] array = baseSkinRenderers; for (int i = 0; i < array.Length; i++) { array[i].bones = list.ToArray(); } } Object.Destroy((Object)(object)modifications.OtherModifications[0].inst_dynamicBone); Object.Destroy((Object)(object)modifications.OtherModifications[0].inst_armature); Object.Destroy((Object)(object)modifications.OtherModifications[0].instance); if (!modifications.OtherModifications.Remove(modification)) { InstanceLogger.LogError((object)"Skin Modification was not removed"); } } } internal class Modification { public string prefabpath; public string bodyname; public string parentname; public GameObject prefab; public bool affectsbasemodel; public DynamicBoneData dynamicBoneData; public string parentSkinToken; public int boneIndex; public int boneCount; public GameObject instance; public GameObject inst_armature; public DynamicBone inst_dynamicBone; public List inst_DB_colliders = new List(); public Modification(string PrefabPath, string ParentName, string BodyName, string ParentSkinToken, int BoneIndex, bool AffectsBaseModel, AssetBundle assetBundle) { bodyname = BodyName; prefabpath = PrefabPath; parentname = ParentName; parentSkinToken = ParentSkinToken; affectsbasemodel = AffectsBaseModel; boneIndex = BoneIndex; prefab = assetBundle.LoadAsset(prefabpath); if ((Object)(object)prefab == (Object)null) { Debug.LogWarning((object)("Asset at " + PrefabPath + " was not loaded")); } } } internal class AppliedModifications { public Stack BaseModelModifications = new Stack(); public List OtherModifications = new List(); } internal class DynamicBoneData { public string m_Root; public float m_Damping; public AnimationCurve m_DampingDistrib; public float m_Elasticity; public AnimationCurve m_ElasticityDistrib; public float m_Stiffness; public AnimationCurve m_StiffnessDistrib; public float m_Inert; public AnimationCurve m_InertDistrib; public float m_Radius; public AnimationCurve m_RadiusDistrib; public float m_EndLength; public Vector3 m_EndOffset; public Vector3 m_Gravity; public Vector3 m_Force; public List m_Colliders; public List m_Exclusions; public FreezeAxis m_FreezeAxis; public DynamicBoneData(string root, float damping, AnimationCurve damping_dist, float elasticity, AnimationCurve elasticity_dist, float stiffness, AnimationCurve stiffness_dist, float inert, AnimationCurve inert_dist, float radius, AnimationCurve radius_dist, float end_length, Vector3 end_offset, Vector3 gravity, Vector3 force, List colliders, List exclusions, FreezeAxis freeze_axis) { //IL_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_0076: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) m_Root = root; m_Damping = damping; m_DampingDistrib = damping_dist; m_Elasticity = elasticity; m_ElasticityDistrib = elasticity_dist; m_Stiffness = stiffness; m_StiffnessDistrib = stiffness_dist; m_Inert = inert; m_InertDistrib = inert_dist; m_Radius = radius; m_RadiusDistrib = radius_dist; m_EndLength = end_length; m_EndOffset = end_offset; m_Gravity = gravity; m_Force = force; m_Colliders = colliders; m_Exclusions = exclusions; m_FreezeAxis = freeze_axis; } } internal class DynamicBoneColliderData { public string m_parent_name; public Direction m_Direction; public Vector3 m_Center; public Bound m_Bound; public float m_Radius; public float m_Height; public DynamicBoneColliderData(string parent_name, Direction direction, Vector3 Center, Bound bound, float radius, float heaight) { //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Unknown result type (might be due to invalid IL or missing references) m_parent_name = parent_name; m_Direction = direction; m_Center = Center; m_Bound = bound; m_Radius = radius; m_Height = heaight; } } }