Decompiled source of RavenwoodPieces v1.1.7
plugins/RavenwoodPieces/RavenwoodPieces.dll
Decompiled 2 weeks ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Security.Permissions; using BepInEx; using HarmonyLib; using Jotunn; 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.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("RavenwoodPiecesPlugin")] [assembly: AssemblyDescription("https://discord.gg/zRucjV8rqc")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("MagicMike")] [assembly: AssemblyProduct("RavenwoodPiecesPlugin")] [assembly: AssemblyCopyright("Copyright © MagicMike 2025RavenwoodPiecesPlugin")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("e3243d22-4307-4008-ba36-9f326008cde5")] [assembly: AssemblyFileVersion("1.1.7")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.1.7.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 RavenwoodPieces { internal class GamePatches { [HarmonyPatch(typeof(EffectArea))] internal static class EffectAreaPatch { [HarmonyPostfix] [HarmonyPatch("Awake")] private static void AwakePostfix(EffectArea __instance) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Invalid comparison between Unknown and I4 if ((int)__instance.m_type == 32) { __instance.m_statusEffect = "NoMonstersStatus"; __instance.m_statusEffectHash = StringExtensionMethods.GetStableHashCode("NoMonstersStatus"); } } [HarmonyPrefix] [HarmonyPatch("CustomFixedUpdate")] private static void CustomFixedUpdatePrefex(EffectArea __instance, float deltaTime) { if (Object.op_Implicit((Object)(object)__instance)) { __instance.m_collidedWithCharacter = __instance.m_collidedWithCharacter.Where((Character x) => IsValidCollidedWithCharacter(x)).ToList(); } } private static bool IsValidCollidedWithCharacter(Character item) { if (!Object.op_Implicit((Object)(object)item) || item.GetSEMan() == null || !Object.op_Implicit((Object)(object)item.GetSEMan().m_nview) || !item.GetSEMan().m_nview.IsValid()) { return false; } return true; } } [HarmonyPatch(typeof(Player))] internal static class PlayerPatch { [HarmonyPostfix] [HarmonyPatch("UpdateEnvStatusEffects")] private static void UpdateEnvStatusEffectsPostFix(Player __instance) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) EffectArea val = EffectArea.IsPointInsideArea(((Component)__instance).transform.position, (Type)32, 1f); if (((Character)__instance).m_seman.HaveStatusEffect(StringExtensionMethods.GetStableHashCode("NoMonstersStatus")) && !Object.op_Implicit((Object)(object)val)) { ((Character)__instance).m_seman.RemoveStatusEffect(StringExtensionMethods.GetStableHashCode("NoMonstersStatus"), false); } } } } [BepInPlugin("MagicMike.RavenwoodPiecesPlugin", "RavenwoodPiecesPlugin", "1.1.7")] [BepInDependency(/*Could not decode attribute arguments.*/)] [NetworkCompatibility(/*Could not decode attribute arguments.*/)] public class RavenwoodPiecesPlugin : BaseUnityPlugin { internal const string PluginName = "RavenwoodPiecesPlugin"; internal const string PluginVersion = "1.1.7"; internal const string PluginAuthor = "MagicMike"; internal const string PluginGUID = "MagicMike.RavenwoodPiecesPlugin"; internal const string PluginCopy = "Copyright © MagicMike 2025RavenwoodPiecesPlugin"; public const string PluginLink = "https://discord.gg/zRucjV8rqc"; public static RavenwoodPiecesPlugin plugininstance; public static AssetBundle rwpieces; public static string piecesBundle = "ravenwoodpieces"; public static AssetBundle rwpiecesnew; public static string piecesBundleNew = "ravenwoodpiecesnew"; private Harmony harmony = new Harmony("MagicMike.RavenwoodPiecesPlugin"); public void Awake() { LoadAssetBundles(); PrefabManager.OnVanillaPrefabsAvailable += AddRWEffects; PrefabManager.OnVanillaPrefabsAvailable += AddRWPieces; harmony = Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), "MagicMike.RavenwoodPiecesPlugin"); Game.isModded = true; } public static void LoadAssetBundles() { rwpieces = AssetUtils.LoadAssetBundleFromResources(piecesBundle, Assembly.GetExecutingAssembly()); if ((Object)(object)rwpieces == (Object)null) { Logger.LogError((object)("Failed to load asset bundle with name: " + piecesBundle)); } rwpiecesnew = AssetUtils.LoadAssetBundleFromResources(piecesBundleNew, Assembly.GetExecutingAssembly()); if ((Object)(object)rwpiecesnew == (Object)null) { Logger.LogError((object)("Failed to load asset bundle with name: " + piecesBundleNew)); } } public static void AddRWEffects() { try { RW_StatusEffects.LoadStatusEffects(); } catch (Exception ex) { Logger.LogError((object)("Exception caught while adding Ravenwood Effects: " + ex.Message)); } finally { PrefabManager.OnVanillaPrefabsAvailable -= AddRWEffects; } } public static void AddRWPieces() { try { RW_Pieces.AddPieces(); } catch (Exception ex) { Logger.LogError((object)("Exception caught while adding Ravenwood Pieces: " + ex.Message)); } finally { PrefabManager.OnVanillaPrefabsAvailable -= AddRWPieces; } } } public class RW_Pieces { public static EffectList buildWood; public static EffectList breakWood; public static EffectList hitWood; public static EffectList buildStone; public static EffectList breakStone; public static EffectList hitStone; public static EffectList buildMetal; public static EffectList breakMetal; public static EffectList hitMetal; public static EffectList doorOpen; public static EffectList doorClose; public static EffectList addFuel; public static GameObject _gameObject; public static CustomPiece _customPiece; public static void AddPieces() { SetupGamePrefabs(); AddMonsterProtector10m(); AddMonsterProtector25m(); AddMonsterProtector50m(); AddMonsterProtector75m(); AddMonsterProtector100m(); AddDisplaycase(); AddStepladders(); AddDoubleDoors(); AddFloor1x1(); AddFloor2x2(); AddFloor4x4(); AddFloor8x8(); AddFloorCorner1x1(); AddFloorCorner2x2(); AddWall1x1(); AddWall2x2(); AddWall4x4(); AddWall8x8(); AddAsksvinSign(); AddLoxSign(); AddBlackBearSign(); AddBrownBearSign(); AddBoarSign(); AddRazorBackSign(); AddDarkhornSign(); AddProwlerSign(); AddFoxSign(); AddWolfSign(); AddChickenSign(); AddCastleWall(); AddCastleTower(); AddCastleGateway(); AddCastleFloor2x2(); AddCastleFloor4x4(); AddCastleFloor8x8(); AddLargeWall(); AddLargeWallCorner(); AddLargeWallCross(); AddLargeWallTjunction(); AddLargeWallStairs(); AddLargeWallStairsReverse(); AddLargeWallGateway(); AddLargeWallTower(); AddLargeWallEnd(); AddLargeWallGlass(); AddLargeWallGate(); AddLargeWallMarble(); AddLargeWallStairsMarble(); AddLargeWallStairsMarbleReverse(); AddLargeWallGatewayMarble(); AddLargeWallTowerMarble(); AddLargeWallCornerMarble(); AddLargeWallMarbleGlass(); AddLargeWallMossy(); AddLargeWallStairsMossy(); AddLargeWallStairsMossyReverse(); AddLargeWallGatewayMossy(); AddLargeWallTowerMossy(); AddLargeWallCornerMossy(); AddLargeWallIce(); AddLargeWallStairsIce(); AddLargeWallStairsIceReverse(); AddLargeWallGatewayIce(); AddLargeWallTowerIce(); AddLargeWallCornerIce(); AddLargeWallIceGlass(); AddLargeWallLava(); AddLargeWallStairsLava(); AddLargeWallStairsLavaReverse(); AddLargeWallGatewayLava(); AddLargeWallTowerLava(); AddLargeWallCornerLava(); AddOakTree(); AddAshwoodTree(); AddAncientTree(); AddFirTreeSmall(); AddFirTreeMedium(); AddFirTreeLarge(); AddFirTreeMassive(); AddPineTree(); AddWillowTree(); AddSakuraTree01(); AddSakuraTree02(); AddSakuraTree03(); AddSakuraTree04(); AddMapleTree01(); AddMapleTree02(); AddHedgeStraight(); AddHedgeAngle15(); AddHedgeAngle45(); AddHedgeAngle90(); AddHedgeArch(); AddHedgeHalfH(); AddHedgeHalfV(); AddHedgeQuater(); AddRoadStraight(); AddRoadAngled(); AddRoadCurved(); AddRoadSupport(); } public static void SetupGamePrefabs() { //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_0085: Expected O, but got Unknown //IL_008f: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Expected O, but got Unknown //IL_00a8: Unknown result type (might be due to invalid IL or missing references) //IL_00af: Expected O, but got Unknown //IL_00b9: Unknown result type (might be due to invalid IL or missing references) //IL_00be: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Expected O, but got Unknown //IL_00d2: Unknown result type (might be due to invalid IL or missing references) //IL_00d9: Expected O, but got Unknown //IL_00e3: Unknown result type (might be due to invalid IL or missing references) //IL_00e8: Unknown result type (might be due to invalid IL or missing references) //IL_00f0: Expected O, but got Unknown //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0103: Expected O, but got Unknown //IL_010d: Unknown result type (might be due to invalid IL or missing references) //IL_0112: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Expected O, but got Unknown //IL_0126: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Expected O, but got Unknown //IL_0137: Unknown result type (might be due to invalid IL or missing references) //IL_013c: Unknown result type (might be due to invalid IL or missing references) //IL_0145: Expected O, but got Unknown //IL_0151: Unknown result type (might be due to invalid IL or missing references) //IL_0158: Expected O, but got Unknown //IL_0162: Unknown result type (might be due to invalid IL or missing references) //IL_0167: Unknown result type (might be due to invalid IL or missing references) //IL_0170: Expected O, but got Unknown //IL_017c: Unknown result type (might be due to invalid IL or missing references) //IL_0183: Expected O, but got Unknown //IL_018d: Unknown result type (might be due to invalid IL or missing references) //IL_0192: Unknown result type (might be due to invalid IL or missing references) //IL_019b: Expected O, but got Unknown //IL_01a7: Unknown result type (might be due to invalid IL or missing references) //IL_01ae: Expected O, but got Unknown //IL_01b8: Unknown result type (might be due to invalid IL or missing references) //IL_01bd: Unknown result type (might be due to invalid IL or missing references) //IL_01c6: Expected O, but got Unknown //IL_01d2: Unknown result type (might be due to invalid IL or missing references) //IL_01d9: Expected O, but got Unknown //IL_01e3: Unknown result type (might be due to invalid IL or missing references) //IL_01e8: Unknown result type (might be due to invalid IL or missing references) //IL_01f1: Expected O, but got Unknown //IL_01fd: Unknown result type (might be due to invalid IL or missing references) //IL_0204: Expected O, but got Unknown //IL_020e: Unknown result type (might be due to invalid IL or missing references) //IL_0213: Unknown result type (might be due to invalid IL or missing references) //IL_021c: Expected O, but got Unknown //IL_0228: Unknown result type (might be due to invalid IL or missing references) //IL_022f: Expected O, but got Unknown //IL_0239: Unknown result type (might be due to invalid IL or missing references) //IL_023e: Unknown result type (might be due to invalid IL or missing references) //IL_0247: Expected O, but got Unknown GameObject prefab = Cache.GetPrefab<GameObject>("sfx_build_hammer_wood"); GameObject prefab2 = Cache.GetPrefab<GameObject>("sfx_wood_break"); GameObject prefab3 = Cache.GetPrefab<GameObject>("sfx_wood_hit"); GameObject prefab4 = Cache.GetPrefab<GameObject>("sfx_build_hammer_stone"); GameObject prefab5 = Cache.GetPrefab<GameObject>("sfx_rock_hit"); GameObject prefab6 = Cache.GetPrefab<GameObject>("sfx_build_hammer_metal"); GameObject prefab7 = Cache.GetPrefab<GameObject>("sfx_metal_blocked"); Cache.GetPrefab<GameObject>("vfx_walltorch_addFuel"); Cache.GetPrefab<GameObject>("sfx_FireAddFuel"); GameObject prefab8 = Cache.GetPrefab<GameObject>("sfx_door_open"); GameObject prefab9 = Cache.GetPrefab<GameObject>("sfx_door_close"); EffectList val = new EffectList(); val.m_effectPrefabs = (EffectData[])(object)new EffectData[1] { new EffectData { m_prefab = prefab } }; buildWood = val; val = new EffectList(); val.m_effectPrefabs = (EffectData[])(object)new EffectData[1] { new EffectData { m_prefab = prefab2 } }; breakWood = val; val = new EffectList(); val.m_effectPrefabs = (EffectData[])(object)new EffectData[1] { new EffectData { m_prefab = prefab3 } }; hitWood = val; val = new EffectList(); val.m_effectPrefabs = (EffectData[])(object)new EffectData[1] { new EffectData { m_prefab = prefab4 } }; buildStone = val; val = new EffectList(); val.m_effectPrefabs = (EffectData[])(object)new EffectData[1] { new EffectData { m_prefab = prefab5 } }; breakStone = val; val = new EffectList(); val.m_effectPrefabs = (EffectData[])(object)new EffectData[1] { new EffectData { m_prefab = prefab5 } }; hitStone = val; val = new EffectList(); val.m_effectPrefabs = (EffectData[])(object)new EffectData[1] { new EffectData { m_prefab = prefab6 } }; buildMetal = val; val = new EffectList(); val.m_effectPrefabs = (EffectData[])(object)new EffectData[1] { new EffectData { m_prefab = prefab7 } }; breakMetal = val; val = new EffectList(); val.m_effectPrefabs = (EffectData[])(object)new EffectData[1] { new EffectData { m_prefab = prefab7 } }; hitMetal = val; val = new EffectList(); val.m_effectPrefabs = (EffectData[])(object)new EffectData[1] { new EffectData { m_prefab = prefab8 } }; doorOpen = val; val = new EffectList(); val.m_effectPrefabs = (EffectData[])(object)new EffectData[1] { new EffectData { m_prefab = prefab9 } }; doorClose = val; } public static void AddMonsterProtector10m() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpiecesnew.LoadAsset<GameObject>("rp_monster_protector_red_new"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Wood", Amount = 2, Recover = true }, new RequirementConfig { Item = "Mushroom", Amount = 10, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; EffectArea component2 = ((Component)Utils.FindChild(val.transform, "nomonsters", (IterativeSearchType)0)).GetComponent<EffectArea>(); component2.m_statusEffect = "NoMonstersStatus"; component2.m_statusEffectHash = StringExtensionMethods.GetStableHashCode("NoMonstersStatus"); PieceManager.Instance.AddPiece(val3); } public static void AddMonsterProtector25m() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpiecesnew.LoadAsset<GameObject>("rp_monster_protector_yellow_new"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Wood", Amount = 2, Recover = true }, new RequirementConfig { Item = "MushroomYellow", Amount = 10, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; EffectArea component2 = ((Component)Utils.FindChild(val.transform, "nomonsters", (IterativeSearchType)0)).GetComponent<EffectArea>(); component2.m_statusEffect = "NoMonstersStatus"; component2.m_statusEffectHash = StringExtensionMethods.GetStableHashCode("NoMonstersStatus"); PieceManager.Instance.AddPiece(val3); } public static void AddMonsterProtector50m() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpiecesnew.LoadAsset<GameObject>("rp_monster_protector_blue_new"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Wood", Amount = 2, Recover = true }, new RequirementConfig { Item = "MushroomBlue", Amount = 10, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; EffectArea component2 = ((Component)Utils.FindChild(val.transform, "nomonsters", (IterativeSearchType)0)).GetComponent<EffectArea>(); component2.m_statusEffect = "NoMonstersStatus"; component2.m_statusEffectHash = StringExtensionMethods.GetStableHashCode("NoMonstersStatus"); PieceManager.Instance.AddPiece(val3); } public static void AddMonsterProtector75m() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Expected O, but got Unknown //IL_0085: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Expected O, but got Unknown //IL_00ab: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpiecesnew.LoadAsset<GameObject>("rp_monster_protector_green_new"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Wood", Amount = 2, Recover = true }, new RequirementConfig { Item = "MushroomBlue", Amount = 10, Recover = true }, new RequirementConfig { Item = "MushroomYellow", Amount = 10, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; EffectArea component2 = ((Component)Utils.FindChild(val.transform, "nomonsters", (IterativeSearchType)0)).GetComponent<EffectArea>(); component2.m_statusEffect = "NoMonstersStatus"; component2.m_statusEffectHash = StringExtensionMethods.GetStableHashCode("NoMonstersStatus"); PieceManager.Instance.AddPiece(val3); } public static void AddMonsterProtector100m() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007b: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Expected O, but got Unknown //IL_0085: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Expected O, but got Unknown //IL_00ab: Unknown result type (might be due to invalid IL or missing references) //IL_00b1: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpiecesnew.LoadAsset<GameObject>("rp_monster_protector_purple_new"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Wood", Amount = 2, Recover = true }, new RequirementConfig { Item = "MushroomBlue", Amount = 10, Recover = true }, new RequirementConfig { Item = "Mushroom", Amount = 10, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; EffectArea component2 = ((Component)Utils.FindChild(val.transform, "nomonsters", (IterativeSearchType)0)).GetComponent<EffectArea>(); component2.m_statusEffect = "NoMonstersStatus"; component2.m_statusEffectHash = StringExtensionMethods.GetStableHashCode("NoMonstersStatus"); PieceManager.Instance.AddPiece(val3); } public static void AddDisplaycase() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Expected O, but got Unknown //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_006e: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_displaycase"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "RoundLog", Amount = 10, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddStepladders() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("rp_stepladder"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Wood", Amount = 6, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddDoubleDoors() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Expected O, but got Unknown //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_006e: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("rp_double_doors"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Wood", Amount = 12, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddFloor1x1() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("rp_wood_floor_1x1"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Wood", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddFloor2x2() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("rp_wood_floor_2x2"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Wood", Amount = 4, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddFloor4x4() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("rp_wood_floor_4x4"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Wood", Amount = 8, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddFloor8x8() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Expected O, but got Unknown //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_006e: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("rp_wood_floor_8x8"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Wood", Amount = 16, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddFloorCorner1x1() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("rp_wood_angle_floor_1x1"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Wood", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddFloorCorner2x2() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("rp_wood_angle_floor_2x2"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Wood", Amount = 4, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddWall1x1() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("rp_wood_wall_1x1"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Wood", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddWall2x2() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("rp_wood_wall_2x2"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Wood", Amount = 4, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddWall4x4() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("rp_wood_wall_4x4"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Wood", Amount = 8, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddWall8x8() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Expected O, but got Unknown //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_006e: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("rp_wood_wall_8x8"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Wood", Amount = 16, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddAsksvinSign() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Expected O, but got Unknown //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_asksvin_sign"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "RoundLog", Amount = 2, Recover = true }, new RequirementConfig { Item = "FineWood", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddLoxSign() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Expected O, but got Unknown //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_lox_sign"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "RoundLog", Amount = 2, Recover = true }, new RequirementConfig { Item = "FineWood", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddBlackBearSign() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Expected O, but got Unknown //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_black_bear_sign"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "RoundLog", Amount = 2, Recover = true }, new RequirementConfig { Item = "FineWood", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddBrownBearSign() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Expected O, but got Unknown //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_brown_bear_sign"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "RoundLog", Amount = 2, Recover = true }, new RequirementConfig { Item = "FineWood", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddBoarSign() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Expected O, but got Unknown //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_boar_sign"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "RoundLog", Amount = 2, Recover = true }, new RequirementConfig { Item = "FineWood", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddRazorBackSign() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Expected O, but got Unknown //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_razorback_sign"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "RoundLog", Amount = 2, Recover = true }, new RequirementConfig { Item = "FineWood", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddDarkhornSign() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Expected O, but got Unknown //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_darkhorn_sign"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "RoundLog", Amount = 2, Recover = true }, new RequirementConfig { Item = "FineWood", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddProwlerSign() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Expected O, but got Unknown //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_prowler_sign"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "RoundLog", Amount = 2, Recover = true }, new RequirementConfig { Item = "FineWood", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddFoxSign() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Expected O, but got Unknown //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_fox_sign"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "RoundLog", Amount = 2, Recover = true }, new RequirementConfig { Item = "FineWood", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddWolfSign() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Expected O, but got Unknown //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_wolf_sign"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "RoundLog", Amount = 2, Recover = true }, new RequirementConfig { Item = "FineWood", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddChickenSign() { //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Expected O, but got Unknown //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Expected O, but got Unknown //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Expected O, but got Unknown GameObject val = RavenwoodPiecesPlugin.rwpiecesnew.LoadAsset<GameObject>("mm_chicken_sign"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_workbench"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Pieces"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "RoundLog", Amount = 2, Recover = true }, new RequirementConfig { Item = "FineWood", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakWood; component.m_hitEffect = hitWood; PieceManager.Instance.AddPiece(val3); } public static void AddCastleWall() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Expected O, but got Unknown //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_castle_wall"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 100, Recover = true } }; _customPiece = new CustomPiece(gameObject, true, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddCastleTower() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Expected O, but got Unknown //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_castle_tower"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 60, Recover = true } }; _customPiece = new CustomPiece(gameObject, true, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddCastleGateway() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Expected O, but got Unknown //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_007a: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_castle_gateway"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 80, Recover = true } }; _customPiece = new CustomPiece(gameObject, true, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddCastleFloor2x2() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Expected O, but got Unknown //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_castle_floor_2x2"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 2, Recover = true } }; _customPiece = new CustomPiece(gameObject, true, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = _gameObject.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddCastleFloor4x4() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Expected O, but got Unknown //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_castle_floor"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 4, Recover = true } }; _customPiece = new CustomPiece(gameObject, true, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = _gameObject.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddCastleFloor8x8() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Expected O, but got Unknown //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_castle_floor_8x8"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 8, Recover = true } }; _customPiece = new CustomPiece(gameObject, true, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = _gameObject.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWall() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 300, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallCorner() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_corner"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 300, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallCross() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_cross"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 500, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallTjunction() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_tjunction"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 400, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallStairs() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_stairs"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 400, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallStairsReverse() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_stairs_reverse"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 400, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallGateway() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_gateway"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 300, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallTower() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_tower"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 400, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallEnd() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_end"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 200, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallGlass() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_glass"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 300, Recover = true }, new RequirementConfig { Item = "Crystal", Amount = 20, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallGate() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Expected O, but got Unknown //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Unknown result type (might be due to invalid IL or missing references) //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_gate"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "forge"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Wood", Amount = 100, Recover = true }, new RequirementConfig { Item = "Iron", Amount = 10, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildWood; Door component = _gameObject.GetComponent<Door>(); component.m_openEffects = doorOpen; component.m_closeEffects = doorClose; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallMarble() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_marble"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 300, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallStairsMarble() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_marble_stairs"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 400, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallStairsMarbleReverse() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_marble_stairs_reverse"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 400, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallGatewayMarble() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_marble_gateway"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 300, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallTowerMarble() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_marble_tower"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 400, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallCornerMarble() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_marble_corner"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 300, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallMarbleGlass() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Unknown result type (might be due to invalid IL or missing references) //IL_0087: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Expected O, but got Unknown //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_marble_glass"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingStation = "piece_stonecutter"; val.PieceTable = "_HammerPieceTable"; val.Category = "Ravenwood-Pieces"; val.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 300, Recover = true }, new RequirementConfig { Item = "Crystal", Amount = 20, Recover = true } }; _customPiece = new CustomPiece(gameObject, false, val); _gameObject.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(_customPiece); } public static void AddLargeWallMossy() { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown _gameObject = RavenwoodPiecesPlugin.rwpieces.LoadAsset<GameObject>("mm_large_wall_mossy"); GameObject gameObject = _gameObject; PieceConfig val = new PieceConfig(); val.CraftingSt