Decompiled source of RtDItems v0.7.9
RtDItems.dll
Decompiled 6 days ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using Jotunn.Configs; using Jotunn.Entities; using Jotunn.Managers; using Jotunn.Utils; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("RtDItems")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("RtDItems")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("c51234fb-4f13-4c53-94c3-42288d985284")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace RtDItems { [BepInPlugin("Soloredis.RtDItems", "RtDItems", "0.7.9")] [NetworkCompatibility(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] public class RtDItems : BaseUnityPlugin { public const string PluginGUID = "Soloredis.RtDItems"; public const string PluginName = "RtDItems"; public const string PluginVersion = "0.7.9"; public static bool isModded = true; private CustomLocalization Localization; public AssetBundle MyAssets; public ConfigEntry<bool> LoggingEnable; public PieceConfig Piece1A; public PieceConfig Piece2A; public PieceConfig Piece3A; public PieceConfig Piece4A; public PieceConfig Piece5A; public PieceConfig Piece1B; public PieceConfig Piece2B; public PieceConfig Piece3B; public PieceConfig Piece4B; public PieceConfig Piece5B; public ItemConfig MeadowsAtgeirA; public ItemConfig MeadowsAtgeirB; public ItemConfig MeadowsAxe1HA; public ItemConfig MeadowsAxe1HB; public ItemConfig MeadowsAxe2HA; public ItemConfig MeadowsAxe2HB; public ItemConfig MeadowwsBowA; public ItemConfig MeadowwsBowB; public ItemConfig MeadowsClubA; public ItemConfig MeadowsClubB; public ItemConfig MeadowsDaggerA; public ItemConfig MeadowsDaggerB; public ItemConfig MeadowsDefenderA; public ItemConfig MeadowsDefenderB; public ItemConfig MeadowsSpearA; public ItemConfig MeadowsSpearB; public ItemConfig MeadowsSword1HA; public ItemConfig MeadowsSword1HB; public ItemConfig MeadowsSword2HA; public ItemConfig MeadowsSword2HB; public ItemConfig BlackForestAtgeirA; public ItemConfig BlackForestAtgeirB; public ItemConfig BlackForestAxe1HA; public ItemConfig BlackForestAxe1HB; public ItemConfig BlackForestAxe2HA; public ItemConfig BlackForestAxe2HB; public ItemConfig BlackForestBowA; public ItemConfig BlackForestBowB; public ItemConfig BlackForestClubA; public ItemConfig BlackForestClubB; public ItemConfig BlackForestDaggerA; public ItemConfig BlackForestDaggerB; public ItemConfig BlackForestDefenderA; public ItemConfig BlackForestDefenderB; public ItemConfig BlackForestSledgeA; public ItemConfig BlackForestSledgeB; public ItemConfig BlackForestSpearA; public ItemConfig BlackForestSpearB; public ItemConfig BlackForestSword1HA; public ItemConfig BlackForestSword1HB; public ItemConfig BlackForestSword2HA; public ItemConfig BlackForestSword2HB; public ItemConfig OdinsFistA; public ItemConfig OdinsFistB; public ItemConfig OdinsDefenderA; public ItemConfig OdinsDefenderB; public ItemConfig BlackForestArcherChestA; public ItemConfig BlackForestArcherChestB; public ItemConfig BlackForestArcherHelmetA; public ItemConfig BlackForestArcherHelmetB; public ItemConfig BlackForestArcherLegsA; public ItemConfig BlackForestArcherLegsB; public ItemConfig BlackForestMonkChestA; public ItemConfig BlackForestMonkChestB; public ItemConfig BlackForestMonkHelmetA; public ItemConfig BlackForestMonkHelmetB; public ItemConfig BlackForestMonkLegsA; public ItemConfig BlackForestMonkLegsB; public ItemConfig BlackForestMonkCapeA; public ItemConfig BlackForestMonkCapeB; public ItemConfig BlackForestArcherCapeA; public ItemConfig BlackForestArcherCapeB; public ItemConfig SwampAtgeirA; public ItemConfig SwampAtgeirB; public ItemConfig SwampAxe1HA; public ItemConfig SwampAxe1HB; public ItemConfig SwampAxe2HA; public ItemConfig SwampAxe2HB; public ItemConfig SwampBowA; public ItemConfig SwampBowB; public ItemConfig SwampClubA; public ItemConfig SwampClubB; public ItemConfig SwampDaggerA; public ItemConfig SwampDaggerB; public ItemConfig SwampDefenderA; public ItemConfig SwampDefenderB; public ItemConfig SwampSledgeA; public ItemConfig SwampSledgeB; public ItemConfig SwampSpearA; public ItemConfig SwampSpearB; public ItemConfig SwampSword1HA; public ItemConfig SwampSword1HB; public ItemConfig SwampSword2HA; public ItemConfig SwampSword2HB; public ItemConfig SwampAssassinChestA; public ItemConfig SwampAssassinChestB; public ItemConfig SwampAssassinHelmetA; public ItemConfig SwampAssassinHelmetB; public ItemConfig SwampAssassinLegsA; public ItemConfig SwampAssassinLegsB; public ItemConfig SwampMonkChestA; public ItemConfig SwampMonkChestB; public ItemConfig SwampMonkHelmetA; public ItemConfig SwampMonkHelmetB; public ItemConfig SwampMonkLegsA; public ItemConfig SwampMonkLegsB; public ItemConfig SwampMonkCapeA; public ItemConfig SwampMonkCapeB; public ItemConfig SwampAssassinCapeA; public ItemConfig SwampAssassinCapeB; public ItemConfig MountainAtgeirA; public ItemConfig MountainAtgeirB; public ItemConfig MountainAxe1HA; public ItemConfig MountainAxe1HB; public ItemConfig MountainAxe2HA; public ItemConfig MountainAxe2HB; public ItemConfig MountainBowA; public ItemConfig MountainBowB; public ItemConfig MountainClubA; public ItemConfig MountainClubB; public ItemConfig MountainDaggerA; public ItemConfig MountainDaggerB; public ItemConfig MountainDefenderA; public ItemConfig MountainDefenderB; public ItemConfig MountainSledgeA; public ItemConfig MountainSledgeB; public ItemConfig MountainSpearA; public ItemConfig MountainSpearB; public ItemConfig MountainSword1HA; public ItemConfig MountainSword1HB; public ItemConfig MountainSword2HA; public ItemConfig MountainSword2HB; public ItemConfig MountainArcherChestA; public ItemConfig MountainArcherChestB; public ItemConfig MountainArcherHelmetA; public ItemConfig MountainArcherHelmetB; public ItemConfig MountainArcherLegsA; public ItemConfig MountainArcherLegsB; public ItemConfig MountainAssassinChestA; public ItemConfig MountainAssassinChestB; public ItemConfig MountainAssassinHelmetA; public ItemConfig MountainAssassinHelmetB; public ItemConfig MountainAssassinLegsA; public ItemConfig MountainAssassinLegsB; public ItemConfig MountainMonkChestA; public ItemConfig MountainMonkChestB; public ItemConfig MountainMonkHelmetA; public ItemConfig MountainMonkHelmetB; public ItemConfig MountainMonkLegsA; public ItemConfig MountainMonkLegsB; public ItemConfig MountainMonkCapeA; public ItemConfig MountainMonkCapeB; public ItemConfig MountainHybridCapeA; public ItemConfig MountainHybridCapeB; public ItemConfig PlainsAtgeirA; public ItemConfig PlainsAtgeirB; public ItemConfig PlainsAxe1HA; public ItemConfig PlainsAxe1HB; public ItemConfig PlainsAxe2HA; public ItemConfig PlainsAxe2HB; public ItemConfig PlainsBowA; public ItemConfig PlainsBowB; public ItemConfig PlainsClubA; public ItemConfig PlainsClubB; public ItemConfig PlainsDaggerA; public ItemConfig PlainsDaggerB; public ItemConfig PlainsDefenderA; public ItemConfig PlainsDefenderB; public ItemConfig PlainsSledgeA; public ItemConfig PlainsSledgeB; public ItemConfig PlainsSpearA; public ItemConfig PlainsSpearB; public ItemConfig PlainsSword1HA; public ItemConfig PlainsSword1HB; public ItemConfig PlainsSword2HA; public ItemConfig PlainsSword2HB; public ItemConfig PlainsArcherChestA; public ItemConfig PlainsArcherChestB; public ItemConfig PlainsArcherHelmetA; public ItemConfig PlainsArcherHelmetB; public ItemConfig PlainsArcherLegsA; public ItemConfig PlainsArcherLegsB; public ItemConfig PlainsAssassinChestA; public ItemConfig PlainsAssassinChestB; public ItemConfig PlainsAssassinHelmetA; public ItemConfig PlainsAssassinHelmetB; public ItemConfig PlainsAssassinLegsA; public ItemConfig PlainsAssassinLegsB; public ItemConfig PlainsMonkChestA; public ItemConfig PlainsMonkChestB; public ItemConfig PlainsMonkHelmetA; public ItemConfig PlainsMonkHelmetB; public ItemConfig PlainsMonkLegsA; public ItemConfig PlainsMonkLegsB; public ItemConfig PlainsMonkCapeA; public ItemConfig PlainsMonkCapeB; public ItemConfig PlainsArcherCapeA; public ItemConfig PlainsArcherCapeB; public ItemConfig PlainsAssassinCapeA; public ItemConfig PlainsAssassinCapeB; public ItemConfig MistlandsAtgeirA; public ItemConfig MistlandsAtgeirB; public ItemConfig MistlandsAxe1HA; public ItemConfig MistlandsAxe1HB; public ItemConfig MistlandsAxe2HA; public ItemConfig MistlandsAxe2HB; public ItemConfig MistlandsBowA; public ItemConfig MistlandsBowB; public ItemConfig MistlandsClubA; public ItemConfig MistlandsClubB; public ItemConfig MistlandsDaggerA; public ItemConfig MistlandsDaggerB; public ItemConfig MistlandsDefenderA; public ItemConfig MistlandsDefenderB; public ItemConfig MistlandsSledgeA; public ItemConfig MistlandsSledgeB; public ItemConfig MistlandsSpearA; public ItemConfig MistlandsSpearB; public ItemConfig MistlandsSword1HA; public ItemConfig MistlandsSword1HB; public ItemConfig MistlandsSword2HA; public ItemConfig MistlandsSword2HB; public ItemConfig MistlandsArcherChestA; public ItemConfig MistlandsArcherChestB; public ItemConfig MistlandsArcherHelmetA; public ItemConfig MistlandsArcherHelmetB; public ItemConfig MistlandsArcherLegsA; public ItemConfig MistlandsArcherLegsB; public ItemConfig MistlandsAssassinChestA; public ItemConfig MistlandsAssassinChestB; public ItemConfig MistlandsAssassinHelmetA; public ItemConfig MistlandsAssassinHelmetB; public ItemConfig MistlandsAssassinLegsA; public ItemConfig MistlandsAssassinLegsB; public ItemConfig MistlandsMonkChestA; public ItemConfig MistlandsMonkChestB; public ItemConfig MistlandsMonkHelmetA; public ItemConfig MistlandsMonkHelmetB; public ItemConfig MistlandsMonkLegsA; public ItemConfig MistlandsMonkLegsB; public ItemConfig MistlandsMonkCapeA; public ItemConfig MistlandsMonkCapeB; public ItemConfig MistlandsArcherCapeA; public ItemConfig MistlandsArcherCapeB; public ItemConfig MistlandsAssassinCapeA; public ItemConfig MistlandsAssassinCapeB; public ItemConfig AshLandsAtgeirA; public ItemConfig AshLandsAtgeirB; public ItemConfig AshLandsAxe1HA; public ItemConfig AshLandsAxe1HB; public ItemConfig AshLandsAxe2HA; public ItemConfig AshLandsAxe2HB; public ItemConfig AshLandsBowA; public ItemConfig AshLandsBowB; public ItemConfig AshLandsShieldBowA; public ItemConfig AshLandsShieldBowB; public ItemConfig AshLandsClubA; public ItemConfig AshLandsClubB; public ItemConfig AshLandsDaggerA; public ItemConfig AshLandsDaggerB; public ItemConfig AshLandsDefenderA; public ItemConfig AshLandsDefenderB; public ItemConfig AshLandsSledgeA; public ItemConfig AshLandsSledgeB; public ItemConfig AshLandsSpearA; public ItemConfig AshLandsSpearB; public ItemConfig AshLandsSword1HA; public ItemConfig AshLandsSword1HB; public ItemConfig AshLandsSword2HA; public ItemConfig AshLandsSword2HB; public ItemConfig AshLandsShieldA; public ItemConfig AshLandsShieldB; public ItemConfig AxeFlametalA; public ItemConfig AxeFlametalB; public ItemConfig PickAxeFlametalA; public ItemConfig PickAxeFlametalB; public ItemConfig AshLandsArcherChestA; public ItemConfig AshLandsArcherChestB; public ItemConfig AshLandsArcherHelmetA; public ItemConfig AshLandsArcherHelmetB; public ItemConfig AshLandsArcherLegsA; public ItemConfig AshLandsArcherLegsB; public ItemConfig AshLandsAssassinChestA; public ItemConfig AshLandsAssassinChestB; public ItemConfig AshLandsAssassinHelmetA; public ItemConfig AshLandsAssassinHelmetB; public ItemConfig AshLandsAssassinLegsA; public ItemConfig AshLandsAssassinLegsB; public ItemConfig AshLandsMonkChestA; public ItemConfig AshLandsMonkChestB; public ItemConfig AshLandsMonkHelmetA; public ItemConfig AshLandsMonkHelmetB; public ItemConfig AshLandsMonkLegsA; public ItemConfig AshLandsMonkLegsB; public ItemConfig AshLandsMonkCapeA; public ItemConfig AshLandsMonkCapeB; public ItemConfig AshLandsArcherCapeA; public ItemConfig AshLandsArcherCapeB; public ItemConfig AshLandsAssassinCapeA; public ItemConfig AshLandsAssassinCapeB; public ItemConfig AshLandsHybridCapeA; public ItemConfig AshLandsHybridCapeB; public ItemConfig AshLandsWarriorChestA; public ItemConfig AshLandsWarriorChestB; public ItemConfig AshLandsWarriorHelmetA; public ItemConfig AshLandsWarriorHelmetB; public ItemConfig AshLandsWarriorLegsA; public ItemConfig AshLandsWarriorLegsB; public ItemConfig DeepNorthAtgeirA; public ItemConfig DeepNorthAtgeirB; public ItemConfig DeepNorthAxe1H1A; public ItemConfig DeepNorthAxe1H1B; public ItemConfig DeepNorthAxe1H2A; public ItemConfig DeepNorthAxe1H2B; public ItemConfig DeepNorthAxe2H1A; public ItemConfig DeepNorthAxe2H1B; public ItemConfig DeepNorthAxe2H2A; public ItemConfig DeepNorthAxe2H2B; public ItemConfig DeepNorthBowA; public ItemConfig DeepNorthBowB; public ItemConfig DeepNorthShieldBowA; public ItemConfig DeepNorthShieldBowB; public ItemConfig DeepNorthClubA; public ItemConfig DeepNorthClubB; public ItemConfig DeepNorthDaggerA; public ItemConfig DeepNorthDaggerB; public ItemConfig DeepNorthDefenderA; public ItemConfig DeepNorthDefenderB; public ItemConfig DeepNorthSledge1A; public ItemConfig DeepNorthSledge1B; public ItemConfig DeepNorthSledge2A; public ItemConfig DeepNorthSledge2B; public ItemConfig DeepNorthSpearA; public ItemConfig DeepNorthSpearB; public ItemConfig DeepNorthSword1H1A; public ItemConfig DeepNorthSword1H1B; public ItemConfig DeepNorthSword1H2A; public ItemConfig DeepNorthSword1H2B; public ItemConfig DeepNorthSword2H1A; public ItemConfig DeepNorthSword2H1B; public ItemConfig DeepNorthSword2H2A; public ItemConfig DeepNorthSword2H2B; public ItemConfig DeepNorthArcherChestA; public ItemConfig DeepNorthArcherChestB; public ItemConfig DeepNorthArcherHelmetA; public ItemConfig DeepNorthArcherHelmetB; public ItemConfig DeepNorthArcherLegsA; public ItemConfig DeepNorthArcherLegsB; public ItemConfig DeepNorthAssassinChestA; public ItemConfig DeepNorthAssassinChestB; public ItemConfig DeepNorthAssassinHelmetA; public ItemConfig DeepNorthAssassinHelmetB; public ItemConfig DeepNorthAssassinLegsA; public ItemConfig DeepNorthAssassinLegsB; public ItemConfig DeepNorthMonkChestA; public ItemConfig DeepNorthMonkChestB; public ItemConfig DeepNorthMonkHelmetA; public ItemConfig DeepNorthMonkHelmetB; public ItemConfig DeepNorthMonkLegsA; public ItemConfig DeepNorthMonkLegsB; public ItemConfig DeepNorthMonkCapeA; public ItemConfig DeepNorthMonkCapeB; public ItemConfig DeepNorthHybridCapeA; public ItemConfig DeepNorthHybridCapeB; public ItemConfig DeepNorthWarriorChestA; public ItemConfig DeepNorthWarriorChestB; public ItemConfig DeepNorthWarriorHelmetA; public ItemConfig DeepNorthWarriorHelmetB; public ItemConfig DeepNorthWarriorLegsA; public ItemConfig DeepNorthWarriorLegsB; public ItemConfig DeepNorthShieldA; public ItemConfig DeepNorthShieldB; public ItemConfig OceanBeltA; public ItemConfig OceanBeltB; public ItemConfig SearFareCapeA; public ItemConfig SearFareCapeB; public ItemConfig SeaScaleShieldA; public ItemConfig SeaScaleShieldB; public ItemConfig SeaShardSpearA; public ItemConfig SeaShardSpearB; public ItemConfig SeaShardStaffA; public ItemConfig SeaShardStaffB; public ItemConfig SeaShardWandA; public ItemConfig SeaShardWandB; public string[] PrefabList; public string[] SFXList; public string[] CustomStatusEffectList; public string[] AttackStatusEffectList; public string[] SummonList; private void Awake() { CreateConfigs(); LoadBundle(); Addlocalizations(); AddSEStatsEffects(); AddPrefabs(); AddSummons(); AddSFX(); AddAttackEffects(); PrefabManager.OnPrefabsRegistered += FixSFX2; PrefabManager.OnPrefabsRegistered += AddPieces; PrefabManager.OnVanillaPrefabsAvailable += ModifyItems; if (LoggingEnable.Value) { ((BaseUnityPlugin)this).Logger.LogWarning((object)"Logging is enabled in the config."); } PrefabManager.OnPrefabsRegistered += AddRecipes; PrefabManager.OnPrefabsRegistered += AddRecipesOcean; } private void LoadBundle() { try { MyAssets = AssetUtils.LoadAssetBundleFromResources("itemsproject", Assembly.GetExecutingAssembly()); } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while loading bundle: {arg}"); } } public void CreateConfigs() { //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_003d: Expected O, but got Unknown //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown try { ((BaseUnityPlugin)this).Config.SaveOnConfigSet = true; LoggingEnable = ((BaseUnityPlugin)this).Config.Bind<bool>("Logging", "Enable", false, new ConfigDescription("Enables logging.", (AcceptableValueBase)null, new object[1] { (object)new ConfigurationManagerAttributes { IsAdminOnly = false } })); } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"Exception caught while adding configuration values: {arg}"); } } private void AddRecipesOcean() { //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Expected O, but got Unknown //IL_015c: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Expected O, but got Unknown //IL_0260: Unknown result type (might be due to invalid IL or missing references) //IL_0267: Expected O, but got Unknown //IL_0366: Unknown result type (might be due to invalid IL or missing references) //IL_036d: Expected O, but got Unknown //IL_046c: Unknown result type (might be due to invalid IL or missing references) //IL_0473: Expected O, but got Unknown //IL_0572: Unknown result type (might be due to invalid IL or missing references) //IL_0579: Expected O, but got Unknown try { GameObject val = MyAssets.LoadAsset<GameObject>("OceanBelt_RtD"); if ((Object)(object)val != (Object)null) { GameObject prefab = Cache.GetPrefab<GameObject>("ElectrumBar_RtD"); ItemConfig val2 = ((!Object.op_Implicit((Object)(object)prefab)) ? OceanBeltB : OceanBeltA); CustomItem val3 = new CustomItem(val, true, val2); ItemManager.Instance.AddItem(val3); if (LoggingEnable.Value) { ManualLogSource logger = ((BaseUnityPlugin)this).Logger; string text = "Added: "; GameObject val4 = val; logger.LogMessage((object)(text + (((Object)(object)val4 != (Object)null) ? ((object)val4).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger2 = ((BaseUnityPlugin)this).Logger; string text2 = "Failed to add: "; GameObject val5 = val; logger2.LogMessage((object)(text2 + (((Object)(object)val5 != (Object)null) ? ((object)val5).ToString() : null) + " to the Item Table")); } GameObject val6 = MyAssets.LoadAsset<GameObject>("SeaFareCape_RtD"); if ((Object)(object)val6 != (Object)null) { GameObject prefab2 = Cache.GetPrefab<GameObject>("ElectrumBar_RtD"); ItemConfig val7 = ((!Object.op_Implicit((Object)(object)prefab2)) ? SearFareCapeB : SearFareCapeA); CustomItem val8 = new CustomItem(val6, true, val7); ItemManager.Instance.AddItem(val8); if (LoggingEnable.Value) { ManualLogSource logger3 = ((BaseUnityPlugin)this).Logger; string text3 = "Added: "; GameObject val9 = val6; logger3.LogMessage((object)(text3 + (((Object)(object)val9 != (Object)null) ? ((object)val9).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger4 = ((BaseUnityPlugin)this).Logger; string text4 = "Failed to add: "; GameObject val10 = val6; logger4.LogMessage((object)(text4 + (((Object)(object)val10 != (Object)null) ? ((object)val10).ToString() : null) + " to the Item Table")); } GameObject val11 = MyAssets.LoadAsset<GameObject>("SeaScaleShield_RtD"); if ((Object)(object)val11 != (Object)null) { GameObject prefab3 = Cache.GetPrefab<GameObject>("ElectrumBar_RtD"); ItemConfig val12 = ((!Object.op_Implicit((Object)(object)prefab3)) ? SeaScaleShieldB : SeaScaleShieldA); CustomItem val13 = new CustomItem(val11, true, val12); ItemManager.Instance.AddItem(val13); if (LoggingEnable.Value) { ManualLogSource logger5 = ((BaseUnityPlugin)this).Logger; string text5 = "Added: "; GameObject val14 = val11; logger5.LogMessage((object)(text5 + (((Object)(object)val14 != (Object)null) ? ((object)val14).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger6 = ((BaseUnityPlugin)this).Logger; string text6 = "Failed to add: "; GameObject val15 = val11; logger6.LogMessage((object)(text6 + (((Object)(object)val15 != (Object)null) ? ((object)val15).ToString() : null) + " to the Item Table")); } GameObject val16 = MyAssets.LoadAsset<GameObject>("SeaShardSpear_RtD"); if ((Object)(object)val16 != (Object)null) { GameObject prefab4 = Cache.GetPrefab<GameObject>("ElectrumBar_RtD"); ItemConfig val17 = ((!Object.op_Implicit((Object)(object)prefab4)) ? SeaShardSpearB : SeaShardSpearA); CustomItem val18 = new CustomItem(val16, true, val17); ItemManager.Instance.AddItem(val18); if (LoggingEnable.Value) { ManualLogSource logger7 = ((BaseUnityPlugin)this).Logger; string text7 = "Added: "; GameObject val19 = val16; logger7.LogMessage((object)(text7 + (((Object)(object)val19 != (Object)null) ? ((object)val19).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger8 = ((BaseUnityPlugin)this).Logger; string text8 = "Failed to add: "; GameObject val20 = val16; logger8.LogMessage((object)(text8 + (((Object)(object)val20 != (Object)null) ? ((object)val20).ToString() : null) + " to the Item Table")); } GameObject val21 = MyAssets.LoadAsset<GameObject>("SeaShardStaff_RtD"); if ((Object)(object)val21 != (Object)null) { GameObject prefab5 = Cache.GetPrefab<GameObject>("ElectrumBar_RtD"); ItemConfig val22 = ((!Object.op_Implicit((Object)(object)prefab5)) ? SeaShardStaffB : SeaShardStaffA); CustomItem val23 = new CustomItem(val21, true, val22); ItemManager.Instance.AddItem(val23); if (LoggingEnable.Value) { ManualLogSource logger9 = ((BaseUnityPlugin)this).Logger; string text9 = "Added: "; GameObject val24 = val21; logger9.LogMessage((object)(text9 + (((Object)(object)val24 != (Object)null) ? ((object)val24).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger10 = ((BaseUnityPlugin)this).Logger; string text10 = "Failed to add: "; GameObject val25 = val21; logger10.LogMessage((object)(text10 + (((Object)(object)val25 != (Object)null) ? ((object)val25).ToString() : null) + " to the Item Table")); } GameObject val26 = MyAssets.LoadAsset<GameObject>("SeaShardWand_RtD"); if ((Object)(object)val26 != (Object)null) { GameObject prefab6 = Cache.GetPrefab<GameObject>("ElectrumBar_RtD"); ItemConfig val27 = ((!Object.op_Implicit((Object)(object)prefab6)) ? SeaShardWandB : SeaShardWandA); CustomItem val28 = new CustomItem(val26, true, val27); ItemManager.Instance.AddItem(val28); if (LoggingEnable.Value) { ManualLogSource logger11 = ((BaseUnityPlugin)this).Logger; string text11 = "Added: "; GameObject val29 = val26; logger11.LogMessage((object)(text11 + (((Object)(object)val29 != (Object)null) ? ((object)val29).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger12 = ((BaseUnityPlugin)this).Logger; string text12 = "Failed to add: "; GameObject val30 = val26; logger12.LogMessage((object)(text12 + (((Object)(object)val30 != (Object)null) ? ((object)val30).ToString() : null) + " to the Item Table")); } } catch (Exception arg) { ((BaseUnityPlugin)this).Logger.LogWarning((object)$"A pixel was found in the matrix: {arg}"); } finally { PrefabManager.OnPrefabsRegistered -= AddRecipesOcean; } } private void AddRecipes() { //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Expected O, but got Unknown //IL_0204: Unknown result type (might be due to invalid IL or missing references) //IL_020d: Expected O, but got Unknown //IL_0384: Unknown result type (might be due to invalid IL or missing references) //IL_038d: Expected O, but got Unknown //IL_0506: Unknown result type (might be due to invalid IL or missing references) //IL_050f: Expected O, but got Unknown //IL_0688: Unknown result type (might be due to invalid IL or missing references) //IL_0691: Expected O, but got Unknown //IL_080a: Unknown result type (might be due to invalid IL or missing references) //IL_0813: Expected O, but got Unknown //IL_098c: Unknown result type (might be due to invalid IL or missing references) //IL_0995: Expected O, but got Unknown //IL_0b0e: Unknown result type (might be due to invalid IL or missing references) //IL_0b17: Expected O, but got Unknown //IL_0c90: Unknown result type (might be due to invalid IL or missing references) //IL_0c99: Expected O, but got Unknown //IL_0e12: Unknown result type (might be due to invalid IL or missing references) //IL_0e1b: Expected O, but got Unknown //IL_0f94: Unknown result type (might be due to invalid IL or missing references) //IL_0f9d: Expected O, but got Unknown //IL_1116: Unknown result type (might be due to invalid IL or missing references) //IL_111f: Expected O, but got Unknown //IL_1298: Unknown result type (might be due to invalid IL or missing references) //IL_12a1: Expected O, but got Unknown //IL_141a: Unknown result type (might be due to invalid IL or missing references) //IL_1423: Expected O, but got Unknown //IL_159c: Unknown result type (might be due to invalid IL or missing references) //IL_15a5: Expected O, but got Unknown //IL_171e: Unknown result type (might be due to invalid IL or missing references) //IL_1727: Expected O, but got Unknown //IL_18a0: Unknown result type (might be due to invalid IL or missing references) //IL_18a9: Expected O, but got Unknown //IL_1a22: Unknown result type (might be due to invalid IL or missing references) //IL_1a2b: Expected O, but got Unknown //IL_1ba4: Unknown result type (might be due to invalid IL or missing references) //IL_1bad: Expected O, but got Unknown //IL_1d26: Unknown result type (might be due to invalid IL or missing references) //IL_1d2f: Expected O, but got Unknown //IL_1ea8: Unknown result type (might be due to invalid IL or missing references) //IL_1eb1: Expected O, but got Unknown //IL_202a: Unknown result type (might be due to invalid IL or missing references) //IL_2033: Expected O, but got Unknown //IL_21ac: Unknown result type (might be due to invalid IL or missing references) //IL_21b5: Expected O, but got Unknown //IL_232e: Unknown result type (might be due to invalid IL or missing references) //IL_2337: Expected O, but got Unknown //IL_24b0: Unknown result type (might be due to invalid IL or missing references) //IL_24b9: Expected O, but got Unknown //IL_2632: Unknown result type (might be due to invalid IL or missing references) //IL_263b: Expected O, but got Unknown //IL_27b4: Unknown result type (might be due to invalid IL or missing references) //IL_27bd: Expected O, but got Unknown //IL_2936: Unknown result type (might be due to invalid IL or missing references) //IL_293f: Expected O, but got Unknown //IL_2ab8: Unknown result type (might be due to invalid IL or missing references) //IL_2ac1: Expected O, but got Unknown //IL_2c3a: Unknown result type (might be due to invalid IL or missing references) //IL_2c43: Expected O, but got Unknown //IL_2dbc: Unknown result type (might be due to invalid IL or missing references) //IL_2dc5: Expected O, but got Unknown //IL_2f3e: Unknown result type (might be due to invalid IL or missing references) //IL_2f47: Expected O, but got Unknown //IL_30c0: Unknown result type (might be due to invalid IL or missing references) //IL_30c9: Expected O, but got Unknown //IL_3242: Unknown result type (might be due to invalid IL or missing references) //IL_324b: Expected O, but got Unknown //IL_33c4: Unknown result type (might be due to invalid IL or missing references) //IL_33cd: Expected O, but got Unknown //IL_3546: Unknown result type (might be due to invalid IL or missing references) //IL_354f: Expected O, but got Unknown //IL_36c8: Unknown result type (might be due to invalid IL or missing references) //IL_36d1: Expected O, but got Unknown //IL_384a: Unknown result type (might be due to invalid IL or missing references) //IL_3853: Expected O, but got Unknown //IL_39cc: Unknown result type (might be due to invalid IL or missing references) //IL_39d5: Expected O, but got Unknown //IL_3b4e: Unknown result type (might be due to invalid IL or missing references) //IL_3b57: Expected O, but got Unknown //IL_3cd0: Unknown result type (might be due to invalid IL or missing references) //IL_3cd9: Expected O, but got Unknown //IL_3e52: Unknown result type (might be due to invalid IL or missing references) //IL_3e5b: Expected O, but got Unknown //IL_3fd4: Unknown result type (might be due to invalid IL or missing references) //IL_3fdd: Expected O, but got Unknown //IL_4156: Unknown result type (might be due to invalid IL or missing references) //IL_415f: Expected O, but got Unknown //IL_42d8: Unknown result type (might be due to invalid IL or missing references) //IL_42e1: Expected O, but got Unknown //IL_445a: Unknown result type (might be due to invalid IL or missing references) //IL_4463: Expected O, but got Unknown //IL_45dc: Unknown result type (might be due to invalid IL or missing references) //IL_45e5: Expected O, but got Unknown //IL_475e: Unknown result type (might be due to invalid IL or missing references) //IL_4767: Expected O, but got Unknown //IL_48e0: Unknown result type (might be due to invalid IL or missing references) //IL_48e9: Expected O, but got Unknown //IL_4a62: Unknown result type (might be due to invalid IL or missing references) //IL_4a6b: Expected O, but got Unknown //IL_4be4: Unknown result type (might be due to invalid IL or missing references) //IL_4bed: Expected O, but got Unknown //IL_4d66: Unknown result type (might be due to invalid IL or missing references) //IL_4d6f: Expected O, but got Unknown //IL_4ee8: Unknown result type (might be due to invalid IL or missing references) //IL_4ef1: Expected O, but got Unknown //IL_506a: Unknown result type (might be due to invalid IL or missing references) //IL_5073: Expected O, but got Unknown //IL_51ec: Unknown result type (might be due to invalid IL or missing references) //IL_51f5: Expected O, but got Unknown //IL_536e: Unknown result type (might be due to invalid IL or missing references) //IL_5377: Expected O, but got Unknown //IL_54f0: Unknown result type (might be due to invalid IL or missing references) //IL_54f9: Expected O, but got Unknown //IL_5672: Unknown result type (might be due to invalid IL or missing references) //IL_567b: Expected O, but got Unknown //IL_57f4: Unknown result type (might be due to invalid IL or missing references) //IL_57fd: Expected O, but got Unknown //IL_5976: Unknown result type (might be due to invalid IL or missing references) //IL_597f: Expected O, but got Unknown //IL_5af8: Unknown result type (might be due to invalid IL or missing references) //IL_5b01: Expected O, but got Unknown //IL_5c7a: Unknown result type (might be due to invalid IL or missing references) //IL_5c83: Expected O, but got Unknown //IL_5dfc: Unknown result type (might be due to invalid IL or missing references) //IL_5e05: Expected O, but got Unknown //IL_5f7e: Unknown result type (might be due to invalid IL or missing references) //IL_5f87: Expected O, but got Unknown //IL_6100: Unknown result type (might be due to invalid IL or missing references) //IL_6109: Expected O, but got Unknown //IL_6282: Unknown result type (might be due to invalid IL or missing references) //IL_628b: Expected O, but got Unknown //IL_6404: Unknown result type (might be due to invalid IL or missing references) //IL_640d: Expected O, but got Unknown //IL_6586: Unknown result type (might be due to invalid IL or missing references) //IL_658f: Expected O, but got Unknown //IL_6708: Unknown result type (might be due to invalid IL or missing references) //IL_6711: Expected O, but got Unknown //IL_688a: Unknown result type (might be due to invalid IL or missing references) //IL_6893: Expected O, but got Unknown //IL_6a0c: Unknown result type (might be due to invalid IL or missing references) //IL_6a15: Expected O, but got Unknown //IL_6b8e: Unknown result type (might be due to invalid IL or missing references) //IL_6b97: Expected O, but got Unknown //IL_6d10: Unknown result type (might be due to invalid IL or missing references) //IL_6d19: Expected O, but got Unknown //IL_6e92: Unknown result type (might be due to invalid IL or missing references) //IL_6e9b: Expected O, but got Unknown //IL_7014: Unknown result type (might be due to invalid IL or missing references) //IL_701d: Expected O, but got Unknown //IL_7196: Unknown result type (might be due to invalid IL or missing references) //IL_719f: Expected O, but got Unknown //IL_7318: Unknown result type (might be due to invalid IL or missing references) //IL_7321: Expected O, but got Unknown //IL_749a: Unknown result type (might be due to invalid IL or missing references) //IL_74a3: Expected O, but got Unknown //IL_761c: Unknown result type (might be due to invalid IL or missing references) //IL_7625: Expected O, but got Unknown //IL_779e: Unknown result type (might be due to invalid IL or missing references) //IL_77a7: Expected O, but got Unknown //IL_7920: Unknown result type (might be due to invalid IL or missing references) //IL_7929: Expected O, but got Unknown //IL_7aa2: Unknown result type (might be due to invalid IL or missing references) //IL_7aab: Expected O, but got Unknown //IL_7c24: Unknown result type (might be due to invalid IL or missing references) //IL_7c2d: Expected O, but got Unknown //IL_7da6: Unknown result type (might be due to invalid IL or missing references) //IL_7daf: Expected O, but got Unknown //IL_7f28: Unknown result type (might be due to invalid IL or missing references) //IL_7f31: Expected O, but got Unknown //IL_80aa: Unknown result type (might be due to invalid IL or missing references) //IL_80b3: Expected O, but got Unknown //IL_822c: Unknown result type (might be due to invalid IL or missing references) //IL_8235: Expected O, but got Unknown //IL_83ae: Unknown result type (might be due to invalid IL or missing references) //IL_83b7: Expected O, but got Unknown //IL_8530: Unknown result type (might be due to invalid IL or missing references) //IL_8539: Expected O, but got Unknown //IL_86b2: Unknown result type (might be due to invalid IL or missing references) //IL_86bb: Expected O, but got Unknown //IL_8834: Unknown result type (might be due to invalid IL or missing references) //IL_883d: Expected O, but got Unknown //IL_89b6: Unknown result type (might be due to invalid IL or missing references) //IL_89bf: Expected O, but got Unknown //IL_8b38: Unknown result type (might be due to invalid IL or missing references) //IL_8b41: Expected O, but got Unknown //IL_8cba: Unknown result type (might be due to invalid IL or missing references) //IL_8cc3: Expected O, but got Unknown //IL_8e3c: Unknown result type (might be due to invalid IL or missing references) //IL_8e45: Expected O, but got Unknown //IL_8fbe: Unknown result type (might be due to invalid IL or missing references) //IL_8fc7: Expected O, but got Unknown //IL_9140: Unknown result type (might be due to invalid IL or missing references) //IL_9149: Expected O, but got Unknown //IL_92c2: Unknown result type (might be due to invalid IL or missing references) //IL_92cb: Expected O, but got Unknown //IL_9444: Unknown result type (might be due to invalid IL or missing references) //IL_944d: Expected O, but got Unknown //IL_95c6: Unknown result type (might be due to invalid IL or missing references) //IL_95cf: Expected O, but got Unknown //IL_9748: Unknown result type (might be due to invalid IL or missing references) //IL_9751: Expected O, but got Unknown //IL_98ca: Unknown result type (might be due to invalid IL or missing references) //IL_98d3: Expected O, but got Unknown //IL_9a4c: Unknown result type (might be due to invalid IL or missing references) //IL_9a55: Expected O, but got Unknown //IL_9bce: Unknown result type (might be due to invalid IL or missing references) //IL_9bd7: Expected O, but got Unknown //IL_9d50: Unknown result type (might be due to invalid IL or missing references) //IL_9d59: Expected O, but got Unknown //IL_9ed2: Unknown result type (might be due to invalid IL or missing references) //IL_9edb: Expected O, but got Unknown //IL_a054: Unknown result type (might be due to invalid IL or missing references) //IL_a05d: Expected O, but got Unknown //IL_a1d6: Unknown result type (might be due to invalid IL or missing references) //IL_a1df: Expected O, but got Unknown //IL_a358: Unknown result type (might be due to invalid IL or missing references) //IL_a361: Expected O, but got Unknown //IL_a4da: Unknown result type (might be due to invalid IL or missing references) //IL_a4e3: Expected O, but got Unknown //IL_a65c: Unknown result type (might be due to invalid IL or missing references) //IL_a665: Expected O, but got Unknown //IL_a7de: Unknown result type (might be due to invalid IL or missing references) //IL_a7e7: Expected O, but got Unknown //IL_a960: Unknown result type (might be due to invalid IL or missing references) //IL_a969: Expected O, but got Unknown //IL_aae2: Unknown result type (might be due to invalid IL or missing references) //IL_aaeb: Expected O, but got Unknown //IL_ac64: Unknown result type (might be due to invalid IL or missing references) //IL_ac6d: Expected O, but got Unknown //IL_ade6: Unknown result type (might be due to invalid IL or missing references) //IL_adef: Expected O, but got Unknown //IL_af68: Unknown result type (might be due to invalid IL or missing references) //IL_af71: Expected O, but got Unknown //IL_b0ea: Unknown result type (might be due to invalid IL or missing references) //IL_b0f3: Expected O, but got Unknown //IL_b26c: Unknown result type (might be due to invalid IL or missing references) //IL_b275: Expected O, but got Unknown //IL_b3ee: Unknown result type (might be due to invalid IL or missing references) //IL_b3f7: Expected O, but got Unknown //IL_b570: Unknown result type (might be due to invalid IL or missing references) //IL_b579: Expected O, but got Unknown //IL_b6f2: Unknown result type (might be due to invalid IL or missing references) //IL_b6fb: Expected O, but got Unknown //IL_b874: Unknown result type (might be due to invalid IL or missing references) //IL_b87d: Expected O, but got Unknown //IL_b9f6: Unknown result type (might be due to invalid IL or missing references) //IL_b9ff: Expected O, but got Unknown //IL_bb78: Unknown result type (might be due to invalid IL or missing references) //IL_bb81: Expected O, but got Unknown //IL_bcfa: Unknown result type (might be due to invalid IL or missing references) //IL_bd03: Expected O, but got Unknown //IL_be7c: Unknown result type (might be due to invalid IL or missing references) //IL_be85: Expected O, but got Unknown //IL_c006: Unknown result type (might be due to invalid IL or missing references) //IL_c00f: Expected O, but got Unknown //IL_c19c: Unknown result type (might be due to invalid IL or missing references) //IL_c1a5: Expected O, but got Unknown //IL_c33a: Unknown result type (might be due to invalid IL or missing references) //IL_c343: Expected O, but got Unknown //IL_c4d8: Unknown result type (might be due to invalid IL or missing references) //IL_c4e1: Expected O, but got Unknown //IL_c676: Unknown result type (might be due to invalid IL or missing references) //IL_c67f: Expected O, but got Unknown //IL_c814: Unknown result type (might be due to invalid IL or missing references) //IL_c81d: Expected O, but got Unknown //IL_c9b2: Unknown result type (might be due to invalid IL or missing references) //IL_c9bb: Expected O, but got Unknown //IL_cb50: Unknown result type (might be due to invalid IL or missing references) //IL_cb59: Expected O, but got Unknown //IL_ccee: Unknown result type (might be due to invalid IL or missing references) //IL_ccf7: Expected O, but got Unknown //IL_ce8c: Unknown result type (might be due to invalid IL or missing references) //IL_ce95: Expected O, but got Unknown //IL_d02a: Unknown result type (might be due to invalid IL or missing references) //IL_d033: Expected O, but got Unknown //IL_d1c8: Unknown result type (might be due to invalid IL or missing references) //IL_d1d1: Expected O, but got Unknown //IL_d366: Unknown result type (might be due to invalid IL or missing references) //IL_d36f: Expected O, but got Unknown //IL_d504: Unknown result type (might be due to invalid IL or missing references) //IL_d50d: Expected O, but got Unknown //IL_d6a2: Unknown result type (might be due to invalid IL or missing references) //IL_d6ab: Expected O, but got Unknown //IL_d840: Unknown result type (might be due to invalid IL or missing references) //IL_d849: Expected O, but got Unknown //IL_d9de: Unknown result type (might be due to invalid IL or missing references) //IL_d9e7: Expected O, but got Unknown //IL_db7c: Unknown result type (might be due to invalid IL or missing references) //IL_db85: Expected O, but got Unknown //IL_dd1a: Unknown result type (might be due to invalid IL or missing references) //IL_dd23: Expected O, but got Unknown //IL_deb8: Unknown result type (might be due to invalid IL or missing references) //IL_dec1: Expected O, but got Unknown //IL_e056: Unknown result type (might be due to invalid IL or missing references) //IL_e05f: Expected O, but got Unknown //IL_e1f4: Unknown result type (might be due to invalid IL or missing references) //IL_e1fd: Expected O, but got Unknown //IL_e392: Unknown result type (might be due to invalid IL or missing references) //IL_e39b: Expected O, but got Unknown //IL_e530: Unknown result type (might be due to invalid IL or missing references) //IL_e539: Expected O, but got Unknown //IL_e6ce: Unknown result type (might be due to invalid IL or missing references) //IL_e6d7: Expected O, but got Unknown //IL_e86c: Unknown result type (might be due to invalid IL or missing references) //IL_e875: Expected O, but got Unknown //IL_ea0a: Unknown result type (might be due to invalid IL or missing references) //IL_ea13: Expected O, but got Unknown //IL_eba8: Unknown result type (might be due to invalid IL or missing references) //IL_ebb1: Expected O, but got Unknown //IL_ed46: Unknown result type (might be due to invalid IL or missing references) //IL_ed4f: Expected O, but got Unknown //IL_eee4: Unknown result type (might be due to invalid IL or missing references) //IL_eeed: Expected O, but got Unknown //IL_f082: Unknown result type (might be due to invalid IL or missing references) //IL_f08b: Expected O, but got Unknown //IL_f220: Unknown result type (might be due to invalid IL or missing references) //IL_f229: Expected O, but got Unknown //IL_f3be: Unknown result type (might be due to invalid IL or missing references) //IL_f3c7: Expected O, but got Unknown //IL_f55c: Unknown result type (might be due to invalid IL or missing references) //IL_f565: Expected O, but got Unknown //IL_f6fa: Unknown result type (might be due to invalid IL or missing references) //IL_f703: Expected O, but got Unknown //IL_f898: Unknown result type (might be due to invalid IL or missing references) //IL_f8a1: Expected O, but got Unknown //IL_fa36: Unknown result type (might be due to invalid IL or missing references) //IL_fa3f: Expected O, but got Unknown //IL_fbd4: Unknown result type (might be due to invalid IL or missing references) //IL_fbdd: Expected O, but got Unknown //IL_fd72: Unknown result type (might be due to invalid IL or missing references) //IL_fd7b: Expected O, but got Unknown //IL_ff10: Unknown result type (might be due to invalid IL or missing references) //IL_ff19: Expected O, but got Unknown //IL_100ae: Unknown result type (might be due to invalid IL or missing references) //IL_100b7: Expected O, but got Unknown //IL_1024c: Unknown result type (might be due to invalid IL or missing references) //IL_10255: Expected O, but got Unknown //IL_103ea: Unknown result type (might be due to invalid IL or missing references) //IL_103f3: Expected O, but got Unknown //IL_10588: Unknown result type (might be due to invalid IL or missing references) //IL_10591: Expected O, but got Unknown //IL_10726: Unknown result type (might be due to invalid IL or missing references) //IL_1072f: Expected O, but got Unknown //IL_108c4: Unknown result type (might be due to invalid IL or missing references) //IL_108cd: Expected O, but got Unknown //IL_10a62: Unknown result type (might be due to invalid IL or missing references) //IL_10a6b: Expected O, but got Unknown //IL_10c00: Unknown result type (might be due to invalid IL or missing references) //IL_10c09: Expected O, but got Unknown //IL_10d9e: Unknown result type (might be due to invalid IL or missing references) //IL_10da7: Expected O, but got Unknown //IL_10f3c: Unknown result type (might be due to invalid IL or missing references) //IL_10f45: Expected O, but got Unknown //IL_110da: Unknown result type (might be due to invalid IL or missing references) //IL_110e3: Expected O, but got Unknown //IL_11278: Unknown result type (might be due to invalid IL or missing references) //IL_11281: Expected O, but got Unknown try { GameObject val = MyAssets.LoadAsset<GameObject>("MeadowsAtgeir_RtD"); if ((Object)(object)val != (Object)null) { GameObject prefab = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val2 = ((!Object.op_Implicit((Object)(object)prefab)) ? MeadowsAtgeirB : MeadowsAtgeirA); CustomItem val3 = new CustomItem(val, true, val2); ItemManager.Instance.AddItem(val3); if (LoggingEnable.Value) { ManualLogSource logger = ((BaseUnityPlugin)this).Logger; string text = "Added: "; GameObject val4 = val; logger.LogMessage((object)(text + (((Object)(object)val4 != (Object)null) ? ((object)val4).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger2 = ((BaseUnityPlugin)this).Logger; string text2 = "Failed to add: "; GameObject val5 = val; logger2.LogMessage((object)(text2 + (((Object)(object)val5 != (Object)null) ? ((object)val5).ToString() : null) + " to the Item Table")); } GameObject val6 = MyAssets.LoadAsset<GameObject>("MeadowsAxe1H_RtD"); if ((Object)(object)val6 != (Object)null) { GameObject prefab2 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val7 = ((!Object.op_Implicit((Object)(object)prefab2)) ? MeadowsAxe1HB : MeadowsAxe1HA); CustomItem val8 = new CustomItem(val6, true, val7); ItemManager.Instance.AddItem(val8); if (LoggingEnable.Value) { ManualLogSource logger3 = ((BaseUnityPlugin)this).Logger; string text3 = "Added: "; GameObject val9 = val6; logger3.LogMessage((object)(text3 + (((Object)(object)val9 != (Object)null) ? ((object)val9).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger4 = ((BaseUnityPlugin)this).Logger; string text4 = "Failed to add: "; GameObject val10 = val6; logger4.LogMessage((object)(text4 + (((Object)(object)val10 != (Object)null) ? ((object)val10).ToString() : null) + " to the Item Table")); } GameObject val11 = MyAssets.LoadAsset<GameObject>("MeadowsAxe2H_RtD"); if ((Object)(object)val11 != (Object)null) { GameObject prefab3 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val12 = ((!Object.op_Implicit((Object)(object)prefab3)) ? MeadowsAxe2HB : MeadowsAxe2HA); CustomItem val13 = new CustomItem(val11, true, val12); ItemManager.Instance.AddItem(val13); if (LoggingEnable.Value) { ManualLogSource logger5 = ((BaseUnityPlugin)this).Logger; string text5 = "Added: "; GameObject val14 = val11; logger5.LogMessage((object)(text5 + (((Object)(object)val14 != (Object)null) ? ((object)val14).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger6 = ((BaseUnityPlugin)this).Logger; string text6 = "Failed to add: "; GameObject val15 = val11; logger6.LogMessage((object)(text6 + (((Object)(object)val15 != (Object)null) ? ((object)val15).ToString() : null) + " to the Item Table")); } GameObject val16 = MyAssets.LoadAsset<GameObject>("MeadowsBow_RtD"); if ((Object)(object)val16 != (Object)null) { GameObject prefab4 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val17 = ((!Object.op_Implicit((Object)(object)prefab4)) ? MeadowwsBowB : MeadowwsBowA); CustomItem val18 = new CustomItem(val16, true, val17); ItemManager.Instance.AddItem(val18); if (LoggingEnable.Value) { ManualLogSource logger7 = ((BaseUnityPlugin)this).Logger; string text7 = "Added: "; GameObject val19 = val16; logger7.LogMessage((object)(text7 + (((Object)(object)val19 != (Object)null) ? ((object)val19).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger8 = ((BaseUnityPlugin)this).Logger; string text8 = "Failed to add: "; GameObject val20 = val16; logger8.LogMessage((object)(text8 + (((Object)(object)val20 != (Object)null) ? ((object)val20).ToString() : null) + " to the Item Table")); } GameObject val21 = MyAssets.LoadAsset<GameObject>("MeadowsClub_RtD"); if ((Object)(object)val21 != (Object)null) { GameObject prefab5 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val22 = ((!Object.op_Implicit((Object)(object)prefab5)) ? MeadowsClubB : MeadowsClubA); CustomItem val23 = new CustomItem(val21, true, val22); ItemManager.Instance.AddItem(val23); if (LoggingEnable.Value) { ManualLogSource logger9 = ((BaseUnityPlugin)this).Logger; string text9 = "Added: "; GameObject val24 = val21; logger9.LogMessage((object)(text9 + (((Object)(object)val24 != (Object)null) ? ((object)val24).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger10 = ((BaseUnityPlugin)this).Logger; string text10 = "Failed to add: "; GameObject val25 = val21; logger10.LogMessage((object)(text10 + (((Object)(object)val25 != (Object)null) ? ((object)val25).ToString() : null) + " to the Item Table")); } GameObject val26 = MyAssets.LoadAsset<GameObject>("MeadowsDagger_RtD"); if ((Object)(object)val26 != (Object)null) { GameObject prefab6 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val27 = ((!Object.op_Implicit((Object)(object)prefab6)) ? MeadowsDaggerB : MeadowsDaggerA); CustomItem val28 = new CustomItem(val26, true, val27); ItemManager.Instance.AddItem(val28); if (LoggingEnable.Value) { ManualLogSource logger11 = ((BaseUnityPlugin)this).Logger; string text11 = "Added: "; GameObject val29 = val26; logger11.LogMessage((object)(text11 + (((Object)(object)val29 != (Object)null) ? ((object)val29).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger12 = ((BaseUnityPlugin)this).Logger; string text12 = "Failed to add: "; GameObject val30 = val26; logger12.LogMessage((object)(text12 + (((Object)(object)val30 != (Object)null) ? ((object)val30).ToString() : null) + " to the Item Table")); } GameObject val31 = MyAssets.LoadAsset<GameObject>("MeadowsDefender_RtD"); if ((Object)(object)val31 != (Object)null) { GameObject prefab7 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val32 = ((!Object.op_Implicit((Object)(object)prefab7)) ? MeadowsDefenderB : MeadowsDefenderA); CustomItem val33 = new CustomItem(val31, true, val32); ItemManager.Instance.AddItem(val33); if (LoggingEnable.Value) { ManualLogSource logger13 = ((BaseUnityPlugin)this).Logger; string text13 = "Added: "; GameObject val34 = val31; logger13.LogMessage((object)(text13 + (((Object)(object)val34 != (Object)null) ? ((object)val34).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger14 = ((BaseUnityPlugin)this).Logger; string text14 = "Failed to add: "; GameObject val35 = val31; logger14.LogMessage((object)(text14 + (((Object)(object)val35 != (Object)null) ? ((object)val35).ToString() : null) + " to the Item Table")); } GameObject val36 = MyAssets.LoadAsset<GameObject>("MeadowsSpear_RtD"); if ((Object)(object)val36 != (Object)null) { GameObject prefab8 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val37 = ((!Object.op_Implicit((Object)(object)prefab8)) ? MeadowsSpearB : MeadowsSpearA); CustomItem val38 = new CustomItem(val36, true, val37); ItemManager.Instance.AddItem(val38); if (LoggingEnable.Value) { ManualLogSource logger15 = ((BaseUnityPlugin)this).Logger; string text15 = "Added: "; GameObject val39 = val36; logger15.LogMessage((object)(text15 + (((Object)(object)val39 != (Object)null) ? ((object)val39).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger16 = ((BaseUnityPlugin)this).Logger; string text16 = "Failed to add: "; GameObject val40 = val36; logger16.LogMessage((object)(text16 + (((Object)(object)val40 != (Object)null) ? ((object)val40).ToString() : null) + " to the Item Table")); } GameObject val41 = MyAssets.LoadAsset<GameObject>("MeadowsSword1H_RtD"); if ((Object)(object)val41 != (Object)null) { GameObject prefab9 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val42 = ((!Object.op_Implicit((Object)(object)prefab9)) ? MeadowsSword1HB : MeadowsSword1HA); CustomItem val43 = new CustomItem(val41, true, val42); ItemManager.Instance.AddItem(val43); if (LoggingEnable.Value) { ManualLogSource logger17 = ((BaseUnityPlugin)this).Logger; string text17 = "Added: "; GameObject val44 = val41; logger17.LogMessage((object)(text17 + (((Object)(object)val44 != (Object)null) ? ((object)val44).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger18 = ((BaseUnityPlugin)this).Logger; string text18 = "Failed to add: "; GameObject val45 = val41; logger18.LogMessage((object)(text18 + (((Object)(object)val45 != (Object)null) ? ((object)val45).ToString() : null) + " to the Item Table")); } GameObject val46 = MyAssets.LoadAsset<GameObject>("MeadowsSword2H_RtD"); if ((Object)(object)val46 != (Object)null) { GameObject prefab10 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val47 = ((!Object.op_Implicit((Object)(object)prefab10)) ? MeadowsSword2HB : MeadowsSword2HA); CustomItem val48 = new CustomItem(val46, true, val47); ItemManager.Instance.AddItem(val48); if (LoggingEnable.Value) { ManualLogSource logger19 = ((BaseUnityPlugin)this).Logger; string text19 = "Added: "; GameObject val49 = val46; logger19.LogMessage((object)(text19 + (((Object)(object)val49 != (Object)null) ? ((object)val49).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger20 = ((BaseUnityPlugin)this).Logger; string text20 = "Failed to add: "; GameObject val50 = val46; logger20.LogMessage((object)(text20 + (((Object)(object)val50 != (Object)null) ? ((object)val50).ToString() : null) + " to the Item Table")); } GameObject val51 = MyAssets.LoadAsset<GameObject>("BlackForestAtgeir_RtD"); if ((Object)(object)val51 != (Object)null) { GameObject prefab11 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val52 = ((!Object.op_Implicit((Object)(object)prefab11)) ? BlackForestAtgeirB : BlackForestAtgeirA); CustomItem val53 = new CustomItem(val51, true, val52); ItemManager.Instance.AddItem(val53); if (LoggingEnable.Value) { ManualLogSource logger21 = ((BaseUnityPlugin)this).Logger; string text21 = "Added: "; GameObject val54 = val51; logger21.LogMessage((object)(text21 + (((Object)(object)val54 != (Object)null) ? ((object)val54).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger22 = ((BaseUnityPlugin)this).Logger; string text22 = "Failed to add: "; GameObject val55 = val51; logger22.LogMessage((object)(text22 + (((Object)(object)val55 != (Object)null) ? ((object)val55).ToString() : null) + " to the Item Table")); } GameObject val56 = MyAssets.LoadAsset<GameObject>("BlackForestAxe1H_RtD"); if ((Object)(object)val56 != (Object)null) { GameObject prefab12 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val57 = ((!Object.op_Implicit((Object)(object)prefab12)) ? BlackForestAxe1HB : BlackForestAxe1HA); CustomItem val58 = new CustomItem(val56, true, val57); ItemManager.Instance.AddItem(val58); if (LoggingEnable.Value) { ManualLogSource logger23 = ((BaseUnityPlugin)this).Logger; string text23 = "Added: "; GameObject val59 = val56; logger23.LogMessage((object)(text23 + (((Object)(object)val59 != (Object)null) ? ((object)val59).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger24 = ((BaseUnityPlugin)this).Logger; string text24 = "Failed to add: "; GameObject val60 = val56; logger24.LogMessage((object)(text24 + (((Object)(object)val60 != (Object)null) ? ((object)val60).ToString() : null) + " to the Item Table")); } GameObject val61 = MyAssets.LoadAsset<GameObject>("BlackForestAxe2H_RtD"); if ((Object)(object)val61 != (Object)null) { GameObject prefab13 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val62 = ((!Object.op_Implicit((Object)(object)prefab13)) ? BlackForestAxe2HB : BlackForestAxe2HA); CustomItem val63 = new CustomItem(val61, true, val62); ItemManager.Instance.AddItem(val63); if (LoggingEnable.Value) { ManualLogSource logger25 = ((BaseUnityPlugin)this).Logger; string text25 = "Added: "; GameObject val64 = val61; logger25.LogMessage((object)(text25 + (((Object)(object)val64 != (Object)null) ? ((object)val64).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger26 = ((BaseUnityPlugin)this).Logger; string text26 = "Failed to add: "; GameObject val65 = val61; logger26.LogMessage((object)(text26 + (((Object)(object)val65 != (Object)null) ? ((object)val65).ToString() : null) + " to the Item Table")); } GameObject val66 = MyAssets.LoadAsset<GameObject>("BlackForestBow_RtD"); if ((Object)(object)val66 != (Object)null) { GameObject prefab14 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val67 = ((!Object.op_Implicit((Object)(object)prefab14)) ? BlackForestBowB : BlackForestBowA); CustomItem val68 = new CustomItem(val66, true, val67); ItemManager.Instance.AddItem(val68); if (LoggingEnable.Value) { ManualLogSource logger27 = ((BaseUnityPlugin)this).Logger; string text27 = "Added: "; GameObject val69 = val66; logger27.LogMessage((object)(text27 + (((Object)(object)val69 != (Object)null) ? ((object)val69).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger28 = ((BaseUnityPlugin)this).Logger; string text28 = "Failed to add: "; GameObject val70 = val66; logger28.LogMessage((object)(text28 + (((Object)(object)val70 != (Object)null) ? ((object)val70).ToString() : null) + " to the Item Table")); } GameObject val71 = MyAssets.LoadAsset<GameObject>("BlackForestClub_RtD"); if ((Object)(object)val71 != (Object)null) { GameObject prefab15 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val72 = ((!Object.op_Implicit((Object)(object)prefab15)) ? BlackForestClubB : BlackForestClubA); CustomItem val73 = new CustomItem(val71, true, val72); ItemManager.Instance.AddItem(val73); if (LoggingEnable.Value) { ManualLogSource logger29 = ((BaseUnityPlugin)this).Logger; string text29 = "Added: "; GameObject val74 = val71; logger29.LogMessage((object)(text29 + (((Object)(object)val74 != (Object)null) ? ((object)val74).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger30 = ((BaseUnityPlugin)this).Logger; string text30 = "Failed to add: "; GameObject val75 = val71; logger30.LogMessage((object)(text30 + (((Object)(object)val75 != (Object)null) ? ((object)val75).ToString() : null) + " to the Item Table")); } GameObject val76 = MyAssets.LoadAsset<GameObject>("BlackForestDagger_RtD"); if ((Object)(object)val76 != (Object)null) { GameObject prefab16 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val77 = ((!Object.op_Implicit((Object)(object)prefab16)) ? BlackForestDaggerB : BlackForestDaggerA); CustomItem val78 = new CustomItem(val76, true, val77); ItemManager.Instance.AddItem(val78); if (LoggingEnable.Value) { ManualLogSource logger31 = ((BaseUnityPlugin)this).Logger; string text31 = "Added: "; GameObject val79 = val76; logger31.LogMessage((object)(text31 + (((Object)(object)val79 != (Object)null) ? ((object)val79).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger32 = ((BaseUnityPlugin)this).Logger; string text32 = "Failed to add: "; GameObject val80 = val76; logger32.LogMessage((object)(text32 + (((Object)(object)val80 != (Object)null) ? ((object)val80).ToString() : null) + " to the Item Table")); } GameObject val81 = MyAssets.LoadAsset<GameObject>("BlackForestDefender_RtD"); if ((Object)(object)val81 != (Object)null) { GameObject prefab17 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val82 = ((!Object.op_Implicit((Object)(object)prefab17)) ? BlackForestDefenderB : BlackForestDefenderA); CustomItem val83 = new CustomItem(val81, true, val82); ItemManager.Instance.AddItem(val83); if (LoggingEnable.Value) { ManualLogSource logger33 = ((BaseUnityPlugin)this).Logger; string text33 = "Added: "; GameObject val84 = val81; logger33.LogMessage((object)(text33 + (((Object)(object)val84 != (Object)null) ? ((object)val84).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger34 = ((BaseUnityPlugin)this).Logger; string text34 = "Failed to add: "; GameObject val85 = val81; logger34.LogMessage((object)(text34 + (((Object)(object)val85 != (Object)null) ? ((object)val85).ToString() : null) + " to the Item Table")); } GameObject val86 = MyAssets.LoadAsset<GameObject>("BlackForestSpear_RtD"); if ((Object)(object)val86 != (Object)null) { GameObject prefab18 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val87 = ((!Object.op_Implicit((Object)(object)prefab18)) ? BlackForestSpearB : BlackForestSpearA); CustomItem val88 = new CustomItem(val86, true, val87); ItemManager.Instance.AddItem(val88); if (LoggingEnable.Value) { ManualLogSource logger35 = ((BaseUnityPlugin)this).Logger; string text35 = "Added: "; GameObject val89 = val86; logger35.LogMessage((object)(text35 + (((Object)(object)val89 != (Object)null) ? ((object)val89).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger36 = ((BaseUnityPlugin)this).Logger; string text36 = "Failed to add: "; GameObject val90 = val86; logger36.LogMessage((object)(text36 + (((Object)(object)val90 != (Object)null) ? ((object)val90).ToString() : null) + " to the Item Table")); } GameObject val91 = MyAssets.LoadAsset<GameObject>("BlackForestSledge_RtD"); if ((Object)(object)val91 != (Object)null) { GameObject prefab19 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val92 = ((!Object.op_Implicit((Object)(object)prefab19)) ? BlackForestSledgeB : BlackForestSledgeA); CustomItem val93 = new CustomItem(val91, true, val92); ItemManager.Instance.AddItem(val93); if (LoggingEnable.Value) { ManualLogSource logger37 = ((BaseUnityPlugin)this).Logger; string text37 = "Added: "; GameObject val94 = val91; logger37.LogMessage((object)(text37 + (((Object)(object)val94 != (Object)null) ? ((object)val94).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger38 = ((BaseUnityPlugin)this).Logger; string text38 = "Failed to add: "; GameObject val95 = val91; logger38.LogMessage((object)(text38 + (((Object)(object)val95 != (Object)null) ? ((object)val95).ToString() : null) + " to the Item Table")); } GameObject val96 = MyAssets.LoadAsset<GameObject>("BlackForestSword1H_RtD"); if ((Object)(object)val96 != (Object)null) { GameObject prefab20 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val97 = ((!Object.op_Implicit((Object)(object)prefab20)) ? BlackForestSword1HB : BlackForestSword1HA); CustomItem val98 = new CustomItem(val96, true, val97); ItemManager.Instance.AddItem(val98); if (LoggingEnable.Value) { ManualLogSource logger39 = ((BaseUnityPlugin)this).Logger; string text39 = "Added: "; GameObject val99 = val96; logger39.LogMessage((object)(text39 + (((Object)(object)val99 != (Object)null) ? ((object)val99).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger40 = ((BaseUnityPlugin)this).Logger; string text40 = "Failed to add: "; GameObject val100 = val96; logger40.LogMessage((object)(text40 + (((Object)(object)val100 != (Object)null) ? ((object)val100).ToString() : null) + " to the Item Table")); } GameObject val101 = MyAssets.LoadAsset<GameObject>("BlackForestSword2H_RtD"); if ((Object)(object)val101 != (Object)null) { GameObject prefab21 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val102 = ((!Object.op_Implicit((Object)(object)prefab21)) ? BlackForestSword2HB : BlackForestSword2HA); CustomItem val103 = new CustomItem(val101, true, val102); ItemManager.Instance.AddItem(val103); if (LoggingEnable.Value) { ManualLogSource logger41 = ((BaseUnityPlugin)this).Logger; string text41 = "Added: "; GameObject val104 = val101; logger41.LogMessage((object)(text41 + (((Object)(object)val104 != (Object)null) ? ((object)val104).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger42 = ((BaseUnityPlugin)this).Logger; string text42 = "Failed to add: "; GameObject val105 = val101; logger42.LogMessage((object)(text42 + (((Object)(object)val105 != (Object)null) ? ((object)val105).ToString() : null) + " to the Item Table")); } GameObject val106 = MyAssets.LoadAsset<GameObject>("BlackForestArcherChest_RtD"); if ((Object)(object)val106 != (Object)null) { GameObject prefab22 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val107 = ((!Object.op_Implicit((Object)(object)prefab22)) ? BlackForestArcherChestB : BlackForestArcherChestA); CustomItem val108 = new CustomItem(val106, true, val107); ItemManager.Instance.AddItem(val108); if (LoggingEnable.Value) { ManualLogSource logger43 = ((BaseUnityPlugin)this).Logger; string text43 = "Added: "; GameObject val109 = val106; logger43.LogMessage((object)(text43 + (((Object)(object)val109 != (Object)null) ? ((object)val109).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger44 = ((BaseUnityPlugin)this).Logger; string text44 = "Failed to add: "; GameObject val110 = val106; logger44.LogMessage((object)(text44 + (((Object)(object)val110 != (Object)null) ? ((object)val110).ToString() : null) + " to the Item Table")); } GameObject val111 = MyAssets.LoadAsset<GameObject>("BlackForestArcherHelmet_RtD"); if ((Object)(object)val111 != (Object)null) { GameObject prefab23 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val112 = ((!Object.op_Implicit((Object)(object)prefab23)) ? BlackForestArcherHelmetB : BlackForestArcherHelmetA); CustomItem val113 = new CustomItem(val111, true, val112); ItemManager.Instance.AddItem(val113); if (LoggingEnable.Value) { ManualLogSource logger45 = ((BaseUnityPlugin)this).Logger; string text45 = "Added: "; GameObject val114 = val111; logger45.LogMessage((object)(text45 + (((Object)(object)val114 != (Object)null) ? ((object)val114).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger46 = ((BaseUnityPlugin)this).Logger; string text46 = "Failed to add: "; GameObject val115 = val111; logger46.LogMessage((object)(text46 + (((Object)(object)val115 != (Object)null) ? ((object)val115).ToString() : null) + " to the Item Table")); } GameObject val116 = MyAssets.LoadAsset<GameObject>("BlackForestArcherLegs_RtD"); if ((Object)(object)val116 != (Object)null) { GameObject prefab24 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val117 = ((!Object.op_Implicit((Object)(object)prefab24)) ? BlackForestArcherLegsB : BlackForestArcherLegsA); CustomItem val118 = new CustomItem(val116, true, val117); ItemManager.Instance.AddItem(val118); if (LoggingEnable.Value) { ManualLogSource logger47 = ((BaseUnityPlugin)this).Logger; string text47 = "Added: "; GameObject val119 = val116; logger47.LogMessage((object)(text47 + (((Object)(object)val119 != (Object)null) ? ((object)val119).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger48 = ((BaseUnityPlugin)this).Logger; string text48 = "Failed to add: "; GameObject val120 = val116; logger48.LogMessage((object)(text48 + (((Object)(object)val120 != (Object)null) ? ((object)val120).ToString() : null) + " to the Item Table")); } GameObject val121 = MyAssets.LoadAsset<GameObject>("BlackForestMonkChest_RtD"); if ((Object)(object)val121 != (Object)null) { GameObject prefab25 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val122 = ((!Object.op_Implicit((Object)(object)prefab25)) ? BlackForestMonkChestB : BlackForestMonkChestA); CustomItem val123 = new CustomItem(val121, true, val122); ItemManager.Instance.AddItem(val123); if (LoggingEnable.Value) { ManualLogSource logger49 = ((BaseUnityPlugin)this).Logger; string text49 = "Added: "; GameObject val124 = val121; logger49.LogMessage((object)(text49 + (((Object)(object)val124 != (Object)null) ? ((object)val124).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger50 = ((BaseUnityPlugin)this).Logger; string text50 = "Failed to add: "; GameObject val125 = val121; logger50.LogMessage((object)(text50 + (((Object)(object)val125 != (Object)null) ? ((object)val125).ToString() : null) + " to the Item Table")); } GameObject val126 = MyAssets.LoadAsset<GameObject>("BlackForestMonkHelmet_RtD"); if ((Object)(object)val126 != (Object)null) { GameObject prefab26 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val127 = ((!Object.op_Implicit((Object)(object)prefab26)) ? BlackForestMonkHelmetB : BlackForestMonkHelmetA); CustomItem val128 = new CustomItem(val126, true, val127); ItemManager.Instance.AddItem(val128); if (LoggingEnable.Value) { ManualLogSource logger51 = ((BaseUnityPlugin)this).Logger; string text51 = "Added: "; GameObject val129 = val126; logger51.LogMessage((object)(text51 + (((Object)(object)val129 != (Object)null) ? ((object)val129).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger52 = ((BaseUnityPlugin)this).Logger; string text52 = "Failed to add: "; GameObject val130 = val126; logger52.LogMessage((object)(text52 + (((Object)(object)val130 != (Object)null) ? ((object)val130).ToString() : null) + " to the Item Table")); } GameObject val131 = MyAssets.LoadAsset<GameObject>("BlackForestMonkLegs_RtD"); if ((Object)(object)val131 != (Object)null) { GameObject prefab27 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val132 = ((!Object.op_Implicit((Object)(object)prefab27)) ? BlackForestMonkLegsB : BlackForestMonkLegsA); CustomItem val133 = new CustomItem(val131, true, val132); ItemManager.Instance.AddItem(val133); if (LoggingEnable.Value) { ManualLogSource logger53 = ((BaseUnityPlugin)this).Logger; string text53 = "Added: "; GameObject val134 = val131; logger53.LogMessage((object)(text53 + (((Object)(object)val134 != (Object)null) ? ((object)val134).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger54 = ((BaseUnityPlugin)this).Logger; string text54 = "Failed to add: "; GameObject val135 = val131; logger54.LogMessage((object)(text54 + (((Object)(object)val135 != (Object)null) ? ((object)val135).ToString() : null) + " to the Item Table")); } GameObject val136 = MyAssets.LoadAsset<GameObject>("BlackForestMonkCape_RtD"); if ((Object)(object)val136 != (Object)null) { GameObject prefab28 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val137 = ((!Object.op_Implicit((Object)(object)prefab28)) ? BlackForestMonkCapeB : BlackForestMonkCapeA); CustomItem val138 = new CustomItem(val136, true, val137); ItemManager.Instance.AddItem(val138); if (LoggingEnable.Value) { ManualLogSource logger55 = ((BaseUnityPlugin)this).Logger; string text55 = "Added: "; GameObject val139 = val136; logger55.LogMessage((object)(text55 + (((Object)(object)val139 != (Object)null) ? ((object)val139).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger56 = ((BaseUnityPlugin)this).Logger; string text56 = "Failed to add: "; GameObject val140 = val136; logger56.LogMessage((object)(text56 + (((Object)(object)val140 != (Object)null) ? ((object)val140).ToString() : null) + " to the Item Table")); } GameObject val141 = MyAssets.LoadAsset<GameObject>("BlackForestHardLeatherCape_RtD"); if ((Object)(object)val141 != (Object)null) { GameObject prefab29 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val142 = ((!Object.op_Implicit((Object)(object)prefab29)) ? BlackForestArcherCapeB : BlackForestArcherCapeA); CustomItem val143 = new CustomItem(val141, true, val142); ItemManager.Instance.AddItem(val143); if (LoggingEnable.Value) { ManualLogSource logger57 = ((BaseUnityPlugin)this).Logger; string text57 = "Added: "; GameObject val144 = val141; logger57.LogMessage((object)(text57 + (((Object)(object)val144 != (Object)null) ? ((object)val144).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger58 = ((BaseUnityPlugin)this).Logger; string text58 = "Failed to add: "; GameObject val145 = val141; logger58.LogMessage((object)(text58 + (((Object)(object)val145 != (Object)null) ? ((object)val145).ToString() : null) + " to the Item Table")); } GameObject val146 = MyAssets.LoadAsset<GameObject>("SwampAtgeir_RtD"); if ((Object)(object)val146 != (Object)null) { GameObject prefab30 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val147 = ((!Object.op_Implicit((Object)(object)prefab30)) ? SwampAtgeirB : SwampAtgeirA); CustomItem val148 = new CustomItem(val146, true, val147); ItemManager.Instance.AddItem(val148); if (LoggingEnable.Value) { ManualLogSource logger59 = ((BaseUnityPlugin)this).Logger; string text59 = "Added: "; GameObject val149 = val146; logger59.LogMessage((object)(text59 + (((Object)(object)val149 != (Object)null) ? ((object)val149).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger60 = ((BaseUnityPlugin)this).Logger; string text60 = "Failed to add: "; GameObject val150 = val146; logger60.LogMessage((object)(text60 + (((Object)(object)val150 != (Object)null) ? ((object)val150).ToString() : null) + " to the Item Table")); } GameObject val151 = MyAssets.LoadAsset<GameObject>("SwampAxe1H_RtD"); if ((Object)(object)val151 != (Object)null) { GameObject prefab31 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val152 = ((!Object.op_Implicit((Object)(object)prefab31)) ? SwampAxe1HB : SwampAxe1HA); CustomItem val153 = new CustomItem(val151, true, val152); ItemManager.Instance.AddItem(val153); if (LoggingEnable.Value) { ManualLogSource logger61 = ((BaseUnityPlugin)this).Logger; string text61 = "Added: "; GameObject val154 = val151; logger61.LogMessage((object)(text61 + (((Object)(object)val154 != (Object)null) ? ((object)val154).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger62 = ((BaseUnityPlugin)this).Logger; string text62 = "Failed to add: "; GameObject val155 = val151; logger62.LogMessage((object)(text62 + (((Object)(object)val155 != (Object)null) ? ((object)val155).ToString() : null) + " to the Item Table")); } GameObject val156 = MyAssets.LoadAsset<GameObject>("SwampAxe2H_RtD"); if ((Object)(object)val156 != (Object)null) { GameObject prefab32 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val157 = ((!Object.op_Implicit((Object)(object)prefab32)) ? SwampAxe2HB : SwampAxe2HA); CustomItem val158 = new CustomItem(val156, true, val157); ItemManager.Instance.AddItem(val158); if (LoggingEnable.Value) { ManualLogSource logger63 = ((BaseUnityPlugin)this).Logger; string text63 = "Added: "; GameObject val159 = val156; logger63.LogMessage((object)(text63 + (((Object)(object)val159 != (Object)null) ? ((object)val159).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger64 = ((BaseUnityPlugin)this).Logger; string text64 = "Failed to add: "; GameObject val160 = val156; logger64.LogMessage((object)(text64 + (((Object)(object)val160 != (Object)null) ? ((object)val160).ToString() : null) + " to the Item Table")); } GameObject val161 = MyAssets.LoadAsset<GameObject>("SwampBow_RtD"); if ((Object)(object)val161 != (Object)null) { GameObject prefab33 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val162 = ((!Object.op_Implicit((Object)(object)prefab33)) ? SwampBowB : SwampBowA); CustomItem val163 = new CustomItem(val161, true, val162); ItemManager.Instance.AddItem(val163); if (LoggingEnable.Value) { ManualLogSource logger65 = ((BaseUnityPlugin)this).Logger; string text65 = "Added: "; GameObject val164 = val161; logger65.LogMessage((object)(text65 + (((Object)(object)val164 != (Object)null) ? ((object)val164).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger66 = ((BaseUnityPlugin)this).Logger; string text66 = "Failed to add: "; GameObject val165 = val161; logger66.LogMessage((object)(text66 + (((Object)(object)val165 != (Object)null) ? ((object)val165).ToString() : null) + " to the Item Table")); } GameObject val166 = MyAssets.LoadAsset<GameObject>("SwampClub_RtD"); if ((Object)(object)val166 != (Object)null) { GameObject prefab34 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val167 = ((!Object.op_Implicit((Object)(object)prefab34)) ? SwampClubB : SwampClubA); CustomItem val168 = new CustomItem(val166, true, val167); ItemManager.Instance.AddItem(val168); if (LoggingEnable.Value) { ManualLogSource logger67 = ((BaseUnityPlugin)this).Logger; string text67 = "Added: "; GameObject val169 = val166; logger67.LogMessage((object)(text67 + (((Object)(object)val169 != (Object)null) ? ((object)val169).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger68 = ((BaseUnityPlugin)this).Logger; string text68 = "Failed to add: "; GameObject val170 = val166; logger68.LogMessage((object)(text68 + (((Object)(object)val170 != (Object)null) ? ((object)val170).ToString() : null) + " to the Item Table")); } GameObject val171 = MyAssets.LoadAsset<GameObject>("SwampDagger_RtD"); if ((Object)(object)val171 != (Object)null) { GameObject prefab35 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val172 = ((!Object.op_Implicit((Object)(object)prefab35)) ? SwampDaggerB : SwampDaggerA); CustomItem val173 = new CustomItem(val171, true, val172); ItemManager.Instance.AddItem(val173); if (LoggingEnable.Value) { ManualLogSource logger69 = ((BaseUnityPlugin)this).Logger; string text69 = "Added: "; GameObject val174 = val171; logger69.LogMessage((object)(text69 + (((Object)(object)val174 != (Object)null) ? ((object)val174).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger70 = ((BaseUnityPlugin)this).Logger; string text70 = "Failed to add: "; GameObject val175 = val171; logger70.LogMessage((object)(text70 + (((Object)(object)val175 != (Object)null) ? ((object)val175).ToString() : null) + " to the Item Table")); } GameObject val176 = MyAssets.LoadAsset<GameObject>("SwampDefender_RtD"); if ((Object)(object)val176 != (Object)null) { GameObject prefab36 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val177 = ((!Object.op_Implicit((Object)(object)prefab36)) ? SwampDefenderB : SwampDefenderA); CustomItem val178 = new CustomItem(val176, true, val177); ItemManager.Instance.AddItem(val178); if (LoggingEnable.Value) { ManualLogSource logger71 = ((BaseUnityPlugin)this).Logger; string text71 = "Added: "; GameObject val179 = val176; logger71.LogMessage((object)(text71 + (((Object)(object)val179 != (Object)null) ? ((object)val179).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger72 = ((BaseUnityPlugin)this).Logger; string text72 = "Failed to add: "; GameObject val180 = val176; logger72.LogMessage((object)(text72 + (((Object)(object)val180 != (Object)null) ? ((object)val180).ToString() : null) + " to the Item Table")); } GameObject val181 = MyAssets.LoadAsset<GameObject>("SwampSledge_RtD"); if ((Object)(object)val181 != (Object)null) { GameObject prefab37 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val182 = ((!Object.op_Implicit((Object)(object)prefab37)) ? SwampSledgeB : SwampSledgeA); CustomItem val183 = new CustomItem(val181, true, val182); ItemManager.Instance.AddItem(val183); if (LoggingEnable.Value) { ManualLogSource logger73 = ((BaseUnityPlugin)this).Logger; string text73 = "Added: "; GameObject val184 = val181; logger73.LogMessage((object)(text73 + (((Object)(object)val184 != (Object)null) ? ((object)val184).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger74 = ((BaseUnityPlugin)this).Logger; string text74 = "Failed to add: "; GameObject val185 = val181; logger74.LogMessage((object)(text74 + (((Object)(object)val185 != (Object)null) ? ((object)val185).ToString() : null) + " to the Item Table")); } GameObject val186 = MyAssets.LoadAsset<GameObject>("SwampSpear_RtD"); if ((Object)(object)val186 != (Object)null) { GameObject prefab38 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val187 = ((!Object.op_Implicit((Object)(object)prefab38)) ? SwampSpearB : SwampSpearA); CustomItem val188 = new CustomItem(val186, true, val187); ItemManager.Instance.AddItem(val188); if (LoggingEnable.Value) { ManualLogSource logger75 = ((BaseUnityPlugin)this).Logger; string text75 = "Added: "; GameObject val189 = val186; logger75.LogMessage((object)(text75 + (((Object)(object)val189 != (Object)null) ? ((object)val189).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger76 = ((BaseUnityPlugin)this).Logger; string text76 = "Failed to add: "; GameObject val190 = val186; logger76.LogMessage((object)(text76 + (((Object)(object)val190 != (Object)null) ? ((object)val190).ToString() : null) + " to the Item Table")); } GameObject val191 = MyAssets.LoadAsset<GameObject>("SwampSword1H_RtD"); if ((Object)(object)val191 != (Object)null) { GameObject prefab39 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val192 = ((!Object.op_Implicit((Object)(object)prefab39)) ? SwampSword1HB : SwampSword1HA); CustomItem val193 = new CustomItem(val191, true, val192); ItemManager.Instance.AddItem(val193); if (LoggingEnable.Value) { ManualLogSource logger77 = ((BaseUnityPlugin)this).Logger; string text77 = "Added: "; GameObject val194 = val191; logger77.LogMessage((object)(text77 + (((Object)(object)val194 != (Object)null) ? ((object)val194).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger78 = ((BaseUnityPlugin)this).Logger; string text78 = "Failed to add: "; GameObject val195 = val191; logger78.LogMessage((object)(text78 + (((Object)(object)val195 != (Object)null) ? ((object)val195).ToString() : null) + " to the Item Table")); } GameObject val196 = MyAssets.LoadAsset<GameObject>("SwampSword2H_RtD"); if ((Object)(object)val196 != (Object)null) { GameObject prefab40 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val197 = ((!Object.op_Implicit((Object)(object)prefab40)) ? SwampSword2HB : SwampSword2HA); CustomItem val198 = new CustomItem(val196, true, val197); ItemManager.Instance.AddItem(val198); if (LoggingEnable.Value) { ManualLogSource logger79 = ((BaseUnityPlugin)this).Logger; string text79 = "Added: "; GameObject val199 = val196; logger79.LogMessage((object)(text79 + (((Object)(object)val199 != (Object)null) ? ((object)val199).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger80 = ((BaseUnityPlugin)this).Logger; string text80 = "Failed to add: "; GameObject val200 = val196; logger80.LogMessage((object)(text80 + (((Object)(object)val200 != (Object)null) ? ((object)val200).ToString() : null) + " to the Item Table")); } GameObject val201 = MyAssets.LoadAsset<GameObject>("SwampAssassinChest_RtD"); if ((Object)(object)val201 != (Object)null) { GameObject prefab41 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val202 = ((!Object.op_Implicit((Object)(object)prefab41)) ? SwampAssassinChestB : SwampAssassinChestA); CustomItem val203 = new CustomItem(val201, true, val202); ItemManager.Instance.AddItem(val203); if (LoggingEnable.Value) { ManualLogSource logger81 = ((BaseUnityPlugin)this).Logger; string text81 = "Added: "; GameObject val204 = val201; logger81.LogMessage((object)(text81 + (((Object)(object)val204 != (Object)null) ? ((object)val204).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger82 = ((BaseUnityPlugin)this).Logger; string text82 = "Failed to add: "; GameObject val205 = val201; logger82.LogMessage((object)(text82 + (((Object)(object)val205 != (Object)null) ? ((object)val205).ToString() : null) + " to the Item Table")); } GameObject val206 = MyAssets.LoadAsset<GameObject>("SwampAssassinHelmet_RtD"); if ((Object)(object)val206 != (Object)null) { GameObject prefab42 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val207 = ((!Object.op_Implicit((Object)(object)prefab42)) ? SwampAssassinHelmetB : SwampAssassinHelmetA); CustomItem val208 = new CustomItem(val206, true, val207); ItemManager.Instance.AddItem(val208); if (LoggingEnable.Value) { ManualLogSource logger83 = ((BaseUnityPlugin)this).Logger; string text83 = "Added: "; GameObject val209 = val206; logger83.LogMessage((object)(text83 + (((Object)(object)val209 != (Object)null) ? ((object)val209).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger84 = ((BaseUnityPlugin)this).Logger; string text84 = "Failed to add: "; GameObject val210 = val206; logger84.LogMessage((object)(text84 + (((Object)(object)val210 != (Object)null) ? ((object)val210).ToString() : null) + " to the Item Table")); } GameObject val211 = MyAssets.LoadAsset<GameObject>("SwampAssassinLegs_RtD"); if ((Object)(object)val211 != (Object)null) { GameObject prefab43 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val212 = ((!Object.op_Implicit((Object)(object)prefab43)) ? SwampAssassinLegsB : SwampAssassinLegsA); CustomItem val213 = new CustomItem(val211, true, val212); ItemManager.Instance.AddItem(val213); if (LoggingEnable.Value) { ManualLogSource logger85 = ((BaseUnityPlugin)this).Logger; string text85 = "Added: "; GameObject val214 = val211; logger85.LogMessage((object)(text85 + (((Object)(object)val214 != (Object)null) ? ((object)val214).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger86 = ((BaseUnityPlugin)this).Logger; string text86 = "Failed to add: "; GameObject val215 = val211; logger86.LogMessage((object)(text86 + (((Object)(object)val215 != (Object)null) ? ((object)val215).ToString() : null) + " to the Item Table")); } GameObject val216 = MyAssets.LoadAsset<GameObject>("SwampMonkChest_RtD"); if ((Object)(object)val216 != (Object)null) { GameObject prefab44 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val217 = ((!Object.op_Implicit((Object)(object)prefab44)) ? SwampMonkChestB : SwampMonkChestA); CustomItem val218 = new CustomItem(val216, true, val217); ItemManager.Instance.AddItem(val218); if (LoggingEnable.Value) { ManualLogSource logger87 = ((BaseUnityPlugin)this).Logger; string text87 = "Added: "; GameObject val219 = val216; logger87.LogMessage((object)(text87 + (((Object)(object)val219 != (Object)null) ? ((object)val219).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger88 = ((BaseUnityPlugin)this).Logger; string text88 = "Failed to add: "; GameObject val220 = val216; logger88.LogMessage((object)(text88 + (((Object)(object)val220 != (Object)null) ? ((object)val220).ToString() : null) + " to the Item Table")); } GameObject val221 = MyAssets.LoadAsset<GameObject>("SwampMonkHelmet_RtD"); if ((Object)(object)val221 != (Object)null) { GameObject prefab45 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val222 = ((!Object.op_Implicit((Object)(object)prefab45)) ? SwampMonkHelmetB : SwampMonkHelmetA); CustomItem val223 = new CustomItem(val221, true, val222); ItemManager.Instance.AddItem(val223); if (LoggingEnable.Value) { ManualLogSource logger89 = ((BaseUnityPlugin)this).Logger; string text89 = "Added: "; GameObject val224 = val221; logger89.LogMessage((object)(text89 + (((Object)(object)val224 != (Object)null) ? ((object)val224).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger90 = ((BaseUnityPlugin)this).Logger; string text90 = "Failed to add: "; GameObject val225 = val221; logger90.LogMessage((object)(text90 + (((Object)(object)val225 != (Object)null) ? ((object)val225).ToString() : null) + " to the Item Table")); } GameObject val226 = MyAssets.LoadAsset<GameObject>("SwampMonkLegs_RtD"); if ((Object)(object)val226 != (Object)null) { GameObject prefab46 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val227 = ((!Object.op_Implicit((Object)(object)prefab46)) ? SwampMonkLegsB : SwampMonkLegsA); CustomItem val228 = new CustomItem(val226, true, val227); ItemManager.Instance.AddItem(val228); if (LoggingEnable.Value) { ManualLogSource logger91 = ((BaseUnityPlugin)this).Logger; string text91 = "Added: "; GameObject val229 = val226; logger91.LogMessage((object)(text91 + (((Object)(object)val229 != (Object)null) ? ((object)val229).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger92 = ((BaseUnityPlugin)this).Logger; string text92 = "Failed to add: "; GameObject val230 = val226; logger92.LogMessage((object)(text92 + (((Object)(object)val230 != (Object)null) ? ((object)val230).ToString() : null) + " to the Item Table")); } GameObject val231 = MyAssets.LoadAsset<GameObject>("SwampMonkCape_RtD"); if ((Object)(object)val231 != (Object)null) { GameObject prefab47 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val232 = ((!Object.op_Implicit((Object)(object)prefab47)) ? SwampMonkCapeB : SwampMonkCapeA); CustomItem val233 = new CustomItem(val231, true, val232); ItemManager.Instance.AddItem(val233); if (LoggingEnable.Value) { ManualLogSource logger93 = ((BaseUnityPlugin)this).Logger; string text93 = "Added: "; GameObject val234 = val231; logger93.LogMessage((object)(text93 + (((Object)(object)val234 != (Object)null) ? ((object)val234).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger94 = ((BaseUnityPlugin)this).Logger; string text94 = "Failed to add: "; GameObject val235 = val231; logger94.LogMessage((object)(text94 + (((Object)(object)val235 != (Object)null) ? ((object)val235).ToString() : null) + " to the Item Table")); } GameObject val236 = MyAssets.LoadAsset<GameObject>("SwampAssassinCape_RtD"); if ((Object)(object)val236 != (Object)null) { GameObject prefab48 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val237 = ((!Object.op_Implicit((Object)(object)prefab48)) ? SwampAssassinCapeB : SwampAssassinCapeA); CustomItem val238 = new CustomItem(val236, true, val237); ItemManager.Instance.AddItem(val238); if (LoggingEnable.Value) { ManualLogSource logger95 = ((BaseUnityPlugin)this).Logger; string text95 = "Added: "; GameObject val239 = val236; logger95.LogMessage((object)(text95 + (((Object)(object)val239 != (Object)null) ? ((object)val239).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger96 = ((BaseUnityPlugin)this).Logger; string text96 = "Failed to add: "; GameObject val240 = val236; logger96.LogMessage((object)(text96 + (((Object)(object)val240 != (Object)null) ? ((object)val240).ToString() : null) + " to the Item Table")); } GameObject val241 = MyAssets.LoadAsset<GameObject>("MountainAtgeir_RtD"); if ((Object)(object)val241 != (Object)null) { GameObject prefab49 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val242 = ((!Object.op_Implicit((Object)(object)prefab49)) ? MountainAtgeirB : MountainAtgeirA); CustomItem val243 = new CustomItem(val241, true, val242); ItemManager.Instance.AddItem(val243); if (LoggingEnable.Value) { ManualLogSource logger97 = ((BaseUnityPlugin)this).Logger; string text97 = "Added: "; GameObject val244 = val241; logger97.LogMessage((object)(text97 + (((Object)(object)val244 != (Object)null) ? ((object)val244).ToString() : null) + " to the Prefab database")); } } else { ManualLogSource logger98 = ((BaseUnityPlugin)this).Logger; string text98 = "Failed to add: "; GameObject val245 = val241; logger98.LogMessage((object)(text98 + (((Object)(object)val245 != (Object)null) ? ((object)val245).ToString() : null) + " to the Item Table")); } GameObject val246 = MyAssets.LoadAsset<GameObject>("MountainAxe1H_RtD"); if ((Object)(object)val246 != (Object)null) { GameObject prefab50 = Cache.GetPrefab<GameObject>("SpiritEssense_RtD"); ItemConfig val247 = ((!Object.op_Implicit((Object)(object)prefab50)) ? MountainAxe1HB : MountainAxe1HA); CustomItem val248 = new CustomItem(val246, true, val247); ItemManager.Instance.AddItem(val248); if (LoggingEnable.Value) { ManualLogSource logger99 = ((BaseUnityPlugin)this).Logger; string text99 = "Added: "; GameObject val24