Decompiled source of RavenwoodDwarvenKingdoms v1.0.9
plugins/RavenwoodDwarven/RavenwoodDwarven.dll
Decompiled 3 months ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Diagnostics; 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("RavenwoodDwarven")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("MagicMike")] [assembly: AssemblyProduct("RavenwoodDwarven")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("e3243d22-4307-4008-ba36-9f326008cde5")] [assembly: AssemblyFileVersion("1.0.9")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.9.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 RavenwoodDwarven { public class AddDwarven { 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 gateOpenClose; public static EffectList addFuel; public static EffectList wallElevator; public static ItemDrop fuelWood; public static ItemDrop fuelResin; public static ItemDrop fuelCoal; public static void LoadPieces() { SetupGamePrefabs(); AddDwarvenTemple(); AddDwarvenTempleDoors(); AddBridgePillarBase(); AddBridgePillarMiddle(); AddBridgePillarTop(); AddBridgeArch(); AddBridgeDeck(); AddBridgeStairs(); AddBridgeStairsDouble(); AddBridgeStairsQuad(); AddRockWall(); AddRockWallGateway(); AddDragonStatue(); AddDragonStatueInverted(); AddDragonStatue2x(); AddDragonStatueInverted2x(); AddKnightStatue(); AddPostamentStatue(); AddSmallStatue(); AddStoneAnvil(); AddStoneObelisk(); AddStoneObelisk2(); AddStoneObelisk3(); AddStoneHead01(); AddStoneHead02(); AddStoneHead03(); AddDwarvenTowerLarge(); AddDwarvenTowerMedium(); AddDwarvenTowerWalkway(); AddDwarvenTowerCorner(); AddDwarvenTowerTjunction(); AddDwarvenTowerCross(); AddDwarvenWall(); AddDwarvenWallArch(); AddDwarvenWallElevator(); AddDwarvenPlinth(); AddDwarvenBrazier(); AddDwarvenPillar(); AddDwarvenBeam2m(); AddDwarvenBeam4m(); AddDwarvenBeam10m(); AddDwarvenBeam2mh(); AddDwarvenBeam4mh(); AddDwarvenBeam10mh(); AddDwarvenAxe(); AddDwarvenHammer(); AddDwarvenBarrel(); AddDwarvenBrazier02(); AddDwarvenBridgeTower(); AddDwarvenTowerBridge(); } public static void SetupGamePrefabs() { //IL_0098: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Expected O, but got Unknown //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00b6: Expected O, but got Unknown //IL_00c2: Unknown result type (might be due to invalid IL or missing references) //IL_00c9: Expected O, but got Unknown //IL_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Unknown result type (might be due to invalid IL or missing references) //IL_00e0: Expected O, but got Unknown //IL_00ec: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Expected O, but got Unknown //IL_00fd: Unknown result type (might be due to invalid IL or missing references) //IL_0102: Unknown result type (might be due to invalid IL or missing references) //IL_010a: Expected O, but got Unknown //IL_0116: Unknown result type (might be due to invalid IL or missing references) //IL_011d: Expected O, but got Unknown //IL_0127: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Expected O, but got Unknown //IL_0140: Unknown result type (might be due to invalid IL or missing references) //IL_0147: Expected O, but got Unknown //IL_0151: Unknown result type (might be due to invalid IL or missing references) //IL_0156: Unknown result type (might be due to invalid IL or missing references) //IL_015f: Expected O, but got Unknown //IL_016b: Unknown result type (might be due to invalid IL or missing references) //IL_0172: Expected O, but got Unknown //IL_017c: Unknown result type (might be due to invalid IL or missing references) //IL_0181: Unknown result type (might be due to invalid IL or missing references) //IL_018a: Expected O, but got Unknown //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_019d: Expected O, but got Unknown //IL_01a7: Unknown result type (might be due to invalid IL or missing references) //IL_01ac: Unknown result type (might be due to invalid IL or missing references) //IL_01b5: Expected O, but got Unknown //IL_01c1: Unknown result type (might be due to invalid IL or missing references) //IL_01c8: Expected O, but got Unknown //IL_01d2: Unknown result type (might be due to invalid IL or missing references) //IL_01d7: Unknown result type (might be due to invalid IL or missing references) //IL_01e0: Expected O, but got Unknown //IL_01ec: Unknown result type (might be due to invalid IL or missing references) //IL_01f3: Expected O, but got Unknown //IL_01fd: Unknown result type (might be due to invalid IL or missing references) //IL_0202: Unknown result type (might be due to invalid IL or missing references) //IL_020b: Expected O, but got Unknown //IL_0217: Unknown result type (might be due to invalid IL or missing references) //IL_021e: Expected O, but got Unknown //IL_0228: Unknown result type (might be due to invalid IL or missing references) //IL_022d: Unknown result type (might be due to invalid IL or missing references) //IL_0236: Expected O, but got Unknown //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_0249: Expected O, but got Unknown //IL_0253: Unknown result type (might be due to invalid IL or missing references) //IL_0258: Unknown result type (might be due to invalid IL or missing references) //IL_0261: Expected O, but got Unknown //IL_026d: Unknown result type (might be due to invalid IL or missing references) //IL_0274: Expected O, but got Unknown //IL_027e: Unknown result type (might be due to invalid IL or missing references) //IL_0283: Unknown result type (might be due to invalid IL or missing references) //IL_028c: Expected O, but got Unknown //IL_0298: Unknown result type (might be due to invalid IL or missing references) //IL_029f: Expected O, but got Unknown //IL_02a9: Unknown result type (might be due to invalid IL or missing references) //IL_02ae: Unknown result type (might be due to invalid IL or missing references) //IL_02b7: Expected O, but got Unknown //IL_02c3: Unknown result type (might be due to invalid IL or missing references) //IL_02ca: Expected O, but got Unknown //IL_02d4: Unknown result type (might be due to invalid IL or missing references) //IL_02d9: Unknown result type (might be due to invalid IL or missing references) //IL_02e2: Expected O, but got Unknown //IL_02e4: Unknown result type (might be due to invalid IL or missing references) //IL_02e9: Unknown result type (might be due to invalid IL or missing references) //IL_02f2: 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"); GameObject prefab8 = Cache.GetPrefab<GameObject>("vfx_walltorch_addFuel"); GameObject prefab9 = Cache.GetPrefab<GameObject>("sfx_FireAddFuel"); GameObject prefab10 = Cache.GetPrefab<GameObject>("sfx_door_open"); GameObject prefab11 = Cache.GetPrefab<GameObject>("sfx_door_close"); GameObject prefab12 = Cache.GetPrefab<GameObject>("sfx_temple_doors"); GameObject prefab13 = Cache.GetPrefab<GameObject>("sfx_elevator"); 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 = prefab10 } }; doorOpen = val; val = new EffectList(); val.m_effectPrefabs = (EffectData[])(object)new EffectData[1] { new EffectData { m_prefab = prefab11 } }; doorClose = val; val = new EffectList(); val.m_effectPrefabs = (EffectData[])(object)new EffectData[1] { new EffectData { m_prefab = prefab12 } }; gateOpenClose = val; val = new EffectList(); val.m_effectPrefabs = (EffectData[])(object)new EffectData[1] { new EffectData { m_prefab = prefab13 } }; wallElevator = val; val = new EffectList(); val.m_effectPrefabs = (EffectData[])(object)new EffectData[2] { new EffectData { m_prefab = prefab8 }, new EffectData { m_prefab = prefab9 } }; addFuel = val; fuelWood = Cache.GetPrefab<GameObject>("Wood").GetComponent<ItemDrop>(); fuelResin = Cache.GetPrefab<GameObject>("Resin").GetComponent<ItemDrop>(); fuelCoal = Cache.GetPrefab<GameObject>("Coal").GetComponent<ItemDrop>(); } public static void AddDwarvenTemple() { //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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Expected O, but got Unknown //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Expected O, but got Unknown //IL_00b2: Unknown result type (might be due to invalid IL or missing references) //IL_00b8: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_dwarven_temple"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 1000, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 2000, Recover = true }, new RequirementConfig { Item = "Iron", Amount = 100, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenTempleDoors() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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 = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_dwarven_temple_doors"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "FineWood", Amount = 10, Recover = true }, new RequirementConfig { Item = "Iron", Amount = 8, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 40, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildWood; Door component = val.GetComponent<Door>(); component.m_openEffects = gateOpenClose; component.m_closeEffects = gateOpenClose; PieceManager.Instance.AddPiece(val3); } public static void AddBridgePillarBase() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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: Expected O, but got Unknown //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Expected O, but got Unknown //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00b2: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_bridge_pillar_base"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 100, Recover = true }, new RequirementConfig { Item = "Iron", Amount = 10, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 10, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddBridgePillarMiddle() { //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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0077: 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: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_bridge_pillar_middle"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 150, Recover = true }, new RequirementConfig { Item = "Iron", Amount = 15, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 15, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddBridgePillarTop() { //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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0077: 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: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_bridge_pillar_top"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 200, Recover = true }, new RequirementConfig { Item = "Iron", Amount = 20, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 20, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddBridgeArch() { //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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0077: 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: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_bridge_arch"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 300, Recover = true }, new RequirementConfig { Item = "Iron", Amount = 30, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 30, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddBridgeDeck() { //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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0077: 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: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_bridge_deck"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 200, Recover = true }, new RequirementConfig { Item = "Iron", Amount = 20, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 20, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddBridgeStairs() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Expected O, but got Unknown //IL_00aa: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_bridge_stairs"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 50, Recover = true }, new RequirementConfig { Item = "Iron", Amount = 5, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 5, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddBridgeStairsDouble() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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: Expected O, but got Unknown //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Expected O, but got Unknown //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00b2: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_bridge_stairs_double"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 100, Recover = true }, new RequirementConfig { Item = "Iron", Amount = 10, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 10, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddBridgeStairsQuad() { //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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0077: 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: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_bridge_stairs_quad"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 200, Recover = true }, new RequirementConfig { Item = "Iron", Amount = 20, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 20, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddRockWall() { //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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_006b: Unknown result type (might be due to invalid IL or missing references) //IL_0071: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_rock_wall"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[1] { new RequirementConfig { Item = "Stone", Amount = 800, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddRockWallGateway() { //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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Expected O, but got Unknown //IL_0090: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_rock_gateway"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 800, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 400, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddDragonStatue() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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 = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_dragon_statue"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 40, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 4, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(val3); } public static void AddDragonStatueInverted() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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 = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_dragon_statue_inverted"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 40, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 4, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(val3); } public static void AddDragonStatue2x() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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: Expected O, but got Unknown //IL_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0090: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_dragon_statue_2x"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 100, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 10, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(val3); } public static void AddDragonStatueInverted2x() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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: Expected O, but got Unknown //IL_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0090: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_dragon_statue_inverted_2x"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 100, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 10, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(val3); } public static void AddKnightStatue() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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 = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_knight_statue"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 40, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 4, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(val3); } public static void AddPostamentStatue() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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 = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_postament_statue"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 40, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 4, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(val3); } public static void AddSmallStatue() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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 = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_small_statue"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 30, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 3, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(val3); } public static void AddStoneAnvil() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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 = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_stone_anvil"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 20, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(val3); } public static void AddStoneObelisk() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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 = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_stone_obelisk"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 40, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 4, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(val3); } public static void AddStoneObelisk2() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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 = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_stone_obelisk_02"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 40, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 4, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(val3); } public static void AddStoneObelisk3() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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 = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_stone_obelisk_03"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 20, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(val3); } public static void AddStoneHead01() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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 = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_stone_head_01"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 50, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 5, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(val3); } public static void AddStoneHead02() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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 = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_stone_head_02"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 20, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(val3); } public static void AddStoneHead03() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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 = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_stone_head_03"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 30, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 3, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenTowerLarge() { //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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0077: 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: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_dwarven_tower"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 500, Recover = true }, new RequirementConfig { Item = "Bronze", Amount = 50, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 50, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenTowerMedium() { //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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0077: 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: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_dwarven_tower_heads"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 500, Recover = true }, new RequirementConfig { Item = "Bronze", Amount = 50, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 50, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenTowerWalkway() { //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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0077: 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: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_dwarven_tower_walkway"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 500, Recover = true }, new RequirementConfig { Item = "Bronze", Amount = 50, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 50, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenTowerCorner() { //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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0077: 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: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_dwarven_tower_corner"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 500, Recover = true }, new RequirementConfig { Item = "Bronze", Amount = 50, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 50, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenTowerTjunction() { //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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0077: 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: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_dwarven_tower_tjunction"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 500, Recover = true }, new RequirementConfig { Item = "Bronze", Amount = 50, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 50, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenTowerCross() { //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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0077: 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: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_dwarven_tower_cross"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 500, Recover = true }, new RequirementConfig { Item = "Bronze", Amount = 50, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 50, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenWall() { //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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0077: 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: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_dwarven_wall"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 200, Recover = true }, new RequirementConfig { Item = "Bronze", Amount = 20, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 20, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenWallArch() { //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_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Expected O, but got Unknown //IL_0067: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_0077: 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: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Unknown result type (might be due to invalid IL or missing references) //IL_00a9: Expected O, but got Unknown //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00b5: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_dwarven_wall_arch"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 200, Recover = true }, new RequirementConfig { Item = "Bronze", Amount = 20, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 20, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenWallElevator() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Expected O, but got Unknown //IL_00aa: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_wall_elevator"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 50, Recover = true }, new RequirementConfig { Item = "Bronze", Amount = 5, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 5, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; Door component2 = val.GetComponent<Door>(); component2.m_openEffects = wallElevator; component2.m_closeEffects = wallElevator; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenPlinth() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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 = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_dwarven_plinth"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[2] { new RequirementConfig { Item = "Stone", Amount = 20, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenBrazier() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Expected O, but got Unknown //IL_00a6: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Unknown result type (might be due to invalid IL or missing references) //IL_00b6: Unknown result type (might be due to invalid IL or missing references) //IL_00bd: Unknown result type (might be due to invalid IL or missing references) //IL_00c5: Expected O, but got Unknown //IL_00cb: Unknown result type (might be due to invalid IL or missing references) //IL_00d1: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_dwarven_brazier"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "piece_stonecutter"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[4] { new RequirementConfig { Item = "Stone", Amount = 20, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 2, Recover = true }, new RequirementConfig { Item = "Bronze", Amount = 2, Recover = true }, new RequirementConfig { Item = "Wood", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, true, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; WearNTear component = val.GetComponent<WearNTear>(); component.m_destroyedEffect = breakStone; component.m_hitEffect = hitStone; Fireplace component2 = val.GetComponent<Fireplace>(); component2.m_fuelItem = fuelWood; component2.m_fuelAddedEffects = addFuel; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenBeam2m() { //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_0084: Unknown result type (might be due to invalid IL or missing references) //IL_0089: 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_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: Expected O, but got Unknown //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00af: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_stone_beam_2m"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "forge"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 2, Recover = true }, new RequirementConfig { Item = "Iron", Amount = 1, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 1, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenBeam4m() { //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_0084: Unknown result type (might be due to invalid IL or missing references) //IL_0089: 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_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: Expected O, but got Unknown //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00af: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_stone_beam_4m"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "forge"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 4, Recover = true }, new RequirementConfig { Item = "Iron", Amount = 2, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenBeam10m() { //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_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_0074: 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_009c: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Expected O, but got Unknown //IL_00aa: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_stone_beam_10m"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "forge"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 10, Recover = true }, new RequirementConfig { Item = "Iron", Amount = 5, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 5, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenBeam2mh() { //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_0084: Unknown result type (might be due to invalid IL or missing references) //IL_0089: 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_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: Expected O, but got Unknown //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00af: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_stone_beam_h2m"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "forge"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 2, Recover = true }, new RequirementConfig { Item = "Iron", Amount = 1, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 1, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenBeam4mh() { //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_0084: Unknown result type (might be due to invalid IL or missing references) //IL_0089: 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_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: Expected O, but got Unknown //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00af: Expected O, but got Unknown GameObject val = RavenwoodDwarvenPlugin.magicBundle.LoadAsset<GameObject>("rdk_stone_beam_h4m"); PieceConfig val2 = new PieceConfig(); val2.CraftingStation = "forge"; val2.PieceTable = "_HammerPieceTable"; val2.Category = "Ravenwood-Dwarven"; val2.Requirements = (RequirementConfig[])(object)new RequirementConfig[3] { new RequirementConfig { Item = "Stone", Amount = 4, Recover = true }, new RequirementConfig { Item = "Iron", Amount = 2, Recover = true }, new RequirementConfig { Item = "Coins", Amount = 2, Recover = true } }; CustomPiece val3 = new CustomPiece(val, false, val2); val.GetComponent<Piece>().m_placeEffect = buildStone; PieceManager.Instance.AddPiece(val3); } public static void AddDwarvenBeam10mh() { //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)