Decompiled source of OdinsKingdom v1.3.5
OdinsKingdom.dll
Decompiled 5 days ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.IO.Compression; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Reflection.Emit; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using System.Text; using System.Text.RegularExpressions; using BepInEx; using BepInEx.Bootstrap; using BepInEx.Configuration; using HarmonyLib; using ItemManager; using JetBrains.Annotations; using LocalizationManager; using Microsoft.CodeAnalysis; using PieceManager; using ServerSync; using TMPro; using UnityEngine; using UnityEngine.UI; using YamlDotNet.Core; using YamlDotNet.Core.Events; using YamlDotNet.Core.Tokens; using YamlDotNet.Helpers; using YamlDotNet.Serialization; using YamlDotNet.Serialization.Converters; using YamlDotNet.Serialization.EventEmitters; using YamlDotNet.Serialization.NamingConventions; using YamlDotNet.Serialization.NodeDeserializers; using YamlDotNet.Serialization.NodeTypeResolvers; using YamlDotNet.Serialization.ObjectFactories; using YamlDotNet.Serialization.ObjectGraphTraversalStrategies; using YamlDotNet.Serialization.ObjectGraphVisitors; using YamlDotNet.Serialization.Schemas; using YamlDotNet.Serialization.TypeInspectors; using YamlDotNet.Serialization.TypeResolvers; using YamlDotNet.Serialization.Utilities; using YamlDotNet.Serialization.ValueDeserializers; [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: Guid("504E7E7A-066A-43C2-A491-2AF7FAE3FCBE")] [assembly: ComVisible(false)] [assembly: AssemblyTrademark("")] [assembly: AssemblyCopyright("Copyright © 2021")] [assembly: AssemblyProduct("OdinsKingdom")] [assembly: AssemblyCompany("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyDescription("")] [assembly: AssemblyTitle("OdinsKingdom")] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: CompilationRelaxations(8)] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace OdinsKingdom { [BepInPlugin("odinplus.plugins.odinskingdom", "OdinsKingdom", "1.3.5")] public class OdinsKingdom : BaseUnityPlugin { private enum Toggle { On = 1, Off = 0 } private const string ModName = "OdinsKingdom"; private const string ModVersion = "1.3.5"; private const string ModGUID = "odinplus.plugins.odinskingdom"; private static readonly ConfigSync configSync = new ConfigSync("OdinsKingdom") { DisplayName = "OdinsKingdom", CurrentVersion = "1.3.5", MinimumRequiredVersion = "1.3.5" }; public void Awake() { //IL_891b: Unknown result type (might be due to invalid IL or missing references) //IL_8924: Expected O, but got Unknown Localizer.Load(); Item item = new Item("gbcastles", "GB_Parchment_Tool"); item.Crafting.Add(ItemManager.CraftingTable.Workbench, 1); item.RequiredItems.Add("FineWood", 10); item.CraftAmount = 1; PrefabManager.RegisterPrefab("gbcastles", "GB_Repair_Scroll"); Item item2 = new Item("gbcastles", "GB_Gold_Cup"); item2.Crafting.Add("GB_Odins_Book", 1); item2.RequiredItems.Add("BlackMetal", 1); item2.CraftAmount = 1; Item item3 = new Item("gbcastles", "GB_Silver_Cup"); item3.Crafting.Add("GB_Odins_Book", 1); item3.RequiredItems.Add("Silver", 1); item3.CraftAmount = 1; Item item4 = new Item("gbcastles", "GB_Bronze_Cup"); item4.Crafting.Add("GB_Odins_Book", 1); item4.RequiredItems.Add("Bronze", 1); item4.CraftAmount = 1; BuildPiece buildPiece = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Odins_Book"); buildPiece.Tool.Add("GB_Parchment_Tool"); buildPiece.RequiredItems.Add("LeatherScraps", 6, recover: true); buildPiece.RequiredItems.Add("Coal", 4, recover: true); buildPiece.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece.Category.Set("Deco"); BuildPiece buildPiece2 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wall_Shield_1"); buildPiece2.Tool.Add("GB_Parchment_Tool"); buildPiece2.RequiredItems.Add("IronScrap", 1, recover: true); buildPiece2.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece2.Category.Set("Deco"); BuildPiece buildPiece3 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wall_Shield_2"); buildPiece3.Tool.Add("GB_Parchment_Tool"); buildPiece3.RequiredItems.Add("IronScrap", 1, recover: true); buildPiece3.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece3.Category.Set("Deco"); BuildPiece buildPiece4 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wall_Shield_3"); buildPiece4.Tool.Add("GB_Parchment_Tool"); buildPiece4.RequiredItems.Add("IronScrap", 1, recover: true); buildPiece4.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece4.Category.Set("Deco"); BuildPiece buildPiece5 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wall_Shield_4"); buildPiece5.Tool.Add("GB_Parchment_Tool"); buildPiece5.RequiredItems.Add("IronScrap", 1, recover: true); buildPiece5.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece5.Category.Set("Deco"); BuildPiece buildPiece6 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Large_Gate"); buildPiece6.Tool.Add("GB_Parchment_Tool"); buildPiece6.RequiredItems.Add("Stone", 10, recover: true); buildPiece6.RequiredItems.Add("Iron", 1, recover: true); buildPiece6.RequiredItems.Add("IronNails", 10, recover: true); buildPiece6.RequiredItems.Add("Wood", 10, recover: true); buildPiece6.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece6.Category.Set("Stone Building"); WearNTear component = buildPiece6.Prefab.GetComponent<WearNTear>(); component.m_ashDamageImmune = false; component.m_ashDamageResist = false; component.m_burnable = false; BuildPiece buildPiece7 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Large_Gate_Bridge"); buildPiece7.Tool.Add("GB_Parchment_Tool"); buildPiece7.RequiredItems.Add("Chain", 2, recover: true); buildPiece7.RequiredItems.Add("Iron", 1, recover: true); buildPiece7.RequiredItems.Add("Stone", 10, recover: true); buildPiece7.RequiredItems.Add("Wood", 6, recover: true); buildPiece7.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece7.Category.Set("Stone Building"); WearNTear component2 = buildPiece7.Prefab.GetComponent<WearNTear>(); component2.m_ashDamageImmune = false; component2.m_ashDamageResist = false; component2.m_burnable = false; BuildPiece buildPiece8 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Large_Portcullis"); buildPiece8.Tool.Add("GB_Parchment_Tool"); buildPiece8.RequiredItems.Add("Stone", 20, recover: true); buildPiece8.RequiredItems.Add("Iron", 5, recover: true); buildPiece8.RequiredItems.Add("Chain", 2, recover: true); buildPiece8.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece8.Category.Set("Stone Building"); WearNTear component3 = buildPiece8.Prefab.GetComponent<WearNTear>(); component3.m_ashDamageImmune = false; component3.m_ashDamageResist = false; component3.m_burnable = false; BuildPiece buildPiece9 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_StoneWindow"); buildPiece9.Tool.Add("GB_Parchment_Tool"); buildPiece9.RequiredItems.Add("Stone", 5, recover: true); buildPiece9.RequiredItems.Add("Crystal", 5, recover: true); buildPiece9.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece9.Category.Set("Stone Building"); WearNTear component4 = buildPiece9.Prefab.GetComponent<WearNTear>(); component4.m_ashDamageImmune = false; component4.m_ashDamageResist = false; component4.m_burnable = false; BuildPiece buildPiece10 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_StoneWindow_OdinPlus"); buildPiece10.Tool.Add("GB_Parchment_Tool"); buildPiece10.RequiredItems.Add("Stone", 5, recover: true); buildPiece10.RequiredItems.Add("Crystal", 5, recover: true); buildPiece10.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece10.Category.Set("Stone Building"); WearNTear component5 = buildPiece10.Prefab.GetComponent<WearNTear>(); component5.m_ashDamageImmune = false; component5.m_ashDamageResist = false; component5.m_burnable = false; BuildPiece buildPiece11 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Large_Window_OdinPlus"); buildPiece11.Tool.Add("GB_Parchment_Tool"); buildPiece11.RequiredItems.Add("Stone", 10, recover: true); buildPiece11.RequiredItems.Add("Crystal", 10, recover: true); buildPiece11.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece11.Category.Set("Stone Building"); WearNTear component6 = buildPiece10.Prefab.GetComponent<WearNTear>(); component6.m_ashDamageImmune = false; component6.m_ashDamageResist = false; component6.m_burnable = false; BuildPiece buildPiece12 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Large_Window"); buildPiece12.Tool.Add("GB_Parchment_Tool"); buildPiece12.RequiredItems.Add("Stone", 10, recover: true); buildPiece12.RequiredItems.Add("Crystal", 10, recover: true); buildPiece12.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece12.Category.Set("Stone Building"); WearNTear component7 = buildPiece12.Prefab.GetComponent<WearNTear>(); component7.m_ashDamageImmune = false; component7.m_ashDamageResist = false; component7.m_burnable = false; BuildPiece buildPiece13 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Archway_Wall"); buildPiece13.Tool.Add("GB_Parchment_Tool"); buildPiece13.RequiredItems.Add("Stone", 6, recover: true); buildPiece13.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece13.Category.Set("Stone Building"); WearNTear component8 = buildPiece13.Prefab.GetComponent<WearNTear>(); component8.m_ashDamageImmune = false; component8.m_ashDamageResist = false; component8.m_burnable = false; BuildPiece buildPiece14 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Large_Tile_Floor"); buildPiece14.Tool.Add("GB_Parchment_Tool"); buildPiece14.RequiredItems.Add("Stone", 10, recover: true); buildPiece14.RequiredItems.Add("Flint", 4, recover: true); buildPiece14.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece14.Category.Set("Stone Building"); WearNTear component9 = buildPiece14.Prefab.GetComponent<WearNTear>(); component9.m_ashDamageImmune = false; component9.m_ashDamageResist = false; component9.m_burnable = false; BuildPiece buildPiece15 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Tile_4x4"); buildPiece15.Tool.Add("GB_Parchment_Tool"); buildPiece15.RequiredItems.Add("Stone", 6, recover: true); buildPiece15.RequiredItems.Add("Flint", 3, recover: true); buildPiece15.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece15.Category.Set("Stone Building"); WearNTear component10 = buildPiece15.Prefab.GetComponent<WearNTear>(); component10.m_ashDamageImmune = false; component10.m_ashDamageResist = false; component10.m_burnable = false; BuildPiece buildPiece16 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Tile"); buildPiece16.Tool.Add("GB_Parchment_Tool"); buildPiece16.RequiredItems.Add("Stone", 4, recover: true); buildPiece16.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece16.Category.Set("Stone Building"); WearNTear component11 = buildPiece16.Prefab.GetComponent<WearNTear>(); component11.m_ashDamageImmune = false; component11.m_ashDamageResist = false; component11.m_burnable = false; BuildPiece buildPiece17 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Tile_1x1"); buildPiece17.Tool.Add("GB_Parchment_Tool"); buildPiece17.RequiredItems.Add("Stone", 2, recover: true); buildPiece17.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece17.Category.Set("Stone Building"); WearNTear component12 = buildPiece17.Prefab.GetComponent<WearNTear>(); component12.m_ashDamageImmune = false; component12.m_ashDamageResist = false; component12.m_burnable = false; BuildPiece buildPiece18 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Angle_Floor"); buildPiece18.Tool.Add("GB_Parchment_Tool"); buildPiece18.RequiredItems.Add("Stone", 4, recover: true); buildPiece18.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece18.Category.Set("Stone Building"); WearNTear component13 = buildPiece18.Prefab.GetComponent<WearNTear>(); component13.m_ashDamageImmune = false; component13.m_ashDamageResist = false; component13.m_burnable = false; BuildPiece buildPiece19 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Angle_Tile_1x1"); buildPiece19.Tool.Add("GB_Parchment_Tool"); buildPiece19.RequiredItems.Add("Stone", 2, recover: true); buildPiece19.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece19.Category.Set("Stone Building"); WearNTear component14 = buildPiece19.Prefab.GetComponent<WearNTear>(); component14.m_ashDamageImmune = false; component14.m_ashDamageResist = false; component14.m_burnable = false; BuildPiece buildPiece20 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Round_Tile"); buildPiece20.Tool.Add("GB_Parchment_Tool"); buildPiece20.RequiredItems.Add("Stone", 4, recover: true); buildPiece20.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece20.Category.Set("Stone Building"); WearNTear component15 = buildPiece20.Prefab.GetComponent<WearNTear>(); component15.m_ashDamageImmune = false; component15.m_ashDamageResist = false; component15.m_burnable = false; BuildPiece buildPiece21 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Large_Solid_Wood_Floor"); buildPiece21.Tool.Add("GB_Parchment_Tool"); buildPiece21.RequiredItems.Add("Wood", 16, recover: true); buildPiece21.RequiredItems.Add("FineWood", 6, recover: true); buildPiece21.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece21.Category.Set("Wood Building"); BuildPiece buildPiece22 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Solid_Wood_Tile_4x4"); buildPiece22.Tool.Add("GB_Parchment_Tool"); buildPiece22.RequiredItems.Add("Wood", 8, recover: true); buildPiece22.RequiredItems.Add("FineWood", 4, recover: true); buildPiece22.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece22.Category.Set("Wood Building"); BuildPiece buildPiece23 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Solid_Wood_Round_Tile"); buildPiece23.Tool.Add("GB_Parchment_Tool"); buildPiece23.RequiredItems.Add("Wood", 4, recover: true); buildPiece23.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece23.Category.Set("Wood Building"); BuildPiece buildPiece24 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Solid_Wood_Tile"); buildPiece24.Tool.Add("GB_Parchment_Tool"); buildPiece24.RequiredItems.Add("Wood", 4, recover: true); buildPiece24.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece24.Category.Set("Wood Building"); BuildPiece buildPiece25 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Solid_Wood_Tile_1x1"); buildPiece25.Tool.Add("GB_Parchment_Tool"); buildPiece25.RequiredItems.Add("Wood", 2, recover: true); buildPiece25.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece25.Category.Set("Wood Building"); BuildPiece buildPiece26 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Tile"); buildPiece26.Tool.Add("GB_Parchment_Tool"); buildPiece26.RequiredItems.Add("Wood", 4, recover: true); buildPiece26.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece26.Category.Set("Wood Building"); BuildPiece buildPiece27 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_1x1_Floor"); buildPiece27.Tool.Add("GB_Parchment_Tool"); buildPiece27.RequiredItems.Add("Wood", 2, recover: true); buildPiece27.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece27.Category.Set("Wood Building"); BuildPiece buildPiece28 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Angle_Floor"); buildPiece28.Tool.Add("GB_Parchment_Tool"); buildPiece28.RequiredItems.Add("Wood", 4, recover: true); buildPiece28.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece28.Category.Set("Wood Building"); BuildPiece buildPiece29 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Angle_Tile_1x1"); buildPiece29.Tool.Add("GB_Parchment_Tool"); buildPiece29.RequiredItems.Add("Wood", 2, recover: true); buildPiece29.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece29.Category.Set("Wood Building"); BuildPiece buildPiece30 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Arch"); buildPiece30.Tool.Add("GB_Parchment_Tool"); buildPiece30.RequiredItems.Add("Stone", 5, recover: true); buildPiece30.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece30.Category.Set("Stone Building"); WearNTear component16 = buildPiece30.Prefab.GetComponent<WearNTear>(); component16.m_ashDamageImmune = false; component16.m_ashDamageResist = false; component16.m_burnable = false; BuildPiece buildPiece31 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Doorframe"); buildPiece31.Tool.Add("GB_Parchment_Tool"); buildPiece31.RequiredItems.Add("Stone", 10, recover: true); buildPiece31.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece31.Category.Set("Stone Building"); WearNTear component17 = buildPiece31.Prefab.GetComponent<WearNTear>(); component17.m_ashDamageImmune = false; component17.m_ashDamageResist = false; component17.m_burnable = false; BuildPiece buildPiece32 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_StoneWall"); buildPiece32.Tool.Add("GB_Parchment_Tool"); buildPiece32.RequiredItems.Add("Stone", 4, recover: true); buildPiece32.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece32.Category.Set("Stone Building"); WearNTear component18 = buildPiece32.Prefab.GetComponent<WearNTear>(); component18.m_ashDamageImmune = false; component18.m_ashDamageResist = false; component18.m_burnable = false; BuildPiece buildPiece33 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Circle_Window"); buildPiece33.Tool.Add("GB_Parchment_Tool"); buildPiece33.RequiredItems.Add("Stone", 4, recover: true); buildPiece33.RequiredItems.Add("Crystal", 2, recover: true); buildPiece33.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece33.Category.Set("Stone Building"); WearNTear component19 = buildPiece33.Prefab.GetComponent<WearNTear>(); component19.m_ashDamageImmune = false; component19.m_ashDamageResist = false; component19.m_burnable = false; BuildPiece buildPiece34 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Aperture"); buildPiece34.Tool.Add("GB_Parchment_Tool"); buildPiece34.RequiredItems.Add("Stone", 6, recover: true); buildPiece34.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece34.Category.Set("Stone Building"); WearNTear component20 = buildPiece34.Prefab.GetComponent<WearNTear>(); component20.m_ashDamageImmune = false; component20.m_ashDamageResist = false; component20.m_burnable = false; BuildPiece buildPiece35 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Halfwall_Aperture"); buildPiece35.Tool.Add("GB_Parchment_Tool"); buildPiece35.RequiredItems.Add("Stone", 4, recover: true); buildPiece35.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece35.Category.Set("Stone Building"); WearNTear component21 = buildPiece35.Prefab.GetComponent<WearNTear>(); component21.m_ashDamageImmune = false; component21.m_ashDamageResist = false; component21.m_burnable = false; BuildPiece buildPiece36 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Halfwall"); buildPiece36.Tool.Add("GB_Parchment_Tool"); buildPiece36.RequiredItems.Add("Stone", 2, recover: true); buildPiece36.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece36.Category.Set("Stone Building"); WearNTear component22 = buildPiece36.Prefab.GetComponent<WearNTear>(); component22.m_ashDamageImmune = false; component22.m_ashDamageResist = false; component22.m_burnable = false; BuildPiece buildPiece37 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Halfwall_Arch"); buildPiece37.Tool.Add("GB_Parchment_Tool"); buildPiece37.RequiredItems.Add("Stone", 2, recover: true); buildPiece37.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece37.Category.Set("Stone Building"); WearNTear component23 = buildPiece37.Prefab.GetComponent<WearNTear>(); component23.m_ashDamageImmune = false; component23.m_ashDamageResist = false; component23.m_burnable = false; BuildPiece buildPiece38 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wooden_Ladder"); buildPiece38.Tool.Add("GB_Parchment_Tool"); buildPiece38.RequiredItems.Add("RoundLog", 10, recover: true); buildPiece38.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece38.Category.Set("Wood Building"); BuildPiece buildPiece39 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Small_Wooden_Ladder"); buildPiece39.Tool.Add("GB_Parchment_Tool"); buildPiece39.RequiredItems.Add("RoundLog", 10, recover: true); buildPiece39.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece39.Category.Set("Wood Building"); BuildPiece buildPiece40 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Black_Curtains"); buildPiece40.Tool.Add("GB_Parchment_Tool"); buildPiece40.RequiredItems.Add("Bronze", 1, recover: true); buildPiece40.RequiredItems.Add("LeatherScraps", 6, recover: true); buildPiece40.RequiredItems.Add("Coal", 4, recover: true); buildPiece40.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece40.Category.Set("Deco"); BuildPiece buildPiece41 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Single_Candle_1"); buildPiece41.Tool.Add("GB_Parchment_Tool"); buildPiece41.RequiredItems.Add("Honey", 2, recover: true); buildPiece41.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece41.Category.Set("Lights and Storage"); BuildPiece buildPiece42 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Single_Candle_2"); buildPiece42.Tool.Add("GB_Parchment_Tool"); buildPiece42.RequiredItems.Add("Honey", 2, recover: true); buildPiece42.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece42.Category.Set("Lights and Storage"); BuildPiece buildPiece43 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Candle_Stick"); buildPiece43.Tool.Add("GB_Parchment_Tool"); buildPiece43.RequiredItems.Add("Honey", 5, recover: true); buildPiece43.RequiredItems.Add("Resin", 5, recover: true); buildPiece43.RequiredItems.Add("Tin", 1, recover: true); buildPiece43.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece43.Category.Set("Lights and Storage"); BuildPiece buildPiece44 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Standing_Candles"); buildPiece44.Tool.Add("GB_Parchment_Tool"); buildPiece44.RequiredItems.Add("Honey", 5, recover: true); buildPiece44.RequiredItems.Add("Resin", 5, recover: true); buildPiece44.RequiredItems.Add("Tin", 2, recover: true); buildPiece44.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece44.Category.Set("Lights and Storage"); BuildPiece buildPiece45 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Leather_Chair"); buildPiece45.Tool.Add("GB_Parchment_Tool"); buildPiece45.RequiredItems.Add("LeatherScraps", 5, recover: true); buildPiece45.RequiredItems.Add("FineWood", 5, recover: true); buildPiece45.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece45.Category.Set("Furniture"); BuildPiece buildPiece46 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Old_Wood_Throne"); buildPiece46.Tool.Add("GB_Parchment_Tool"); buildPiece46.RequiredItems.Add("FineWood", 5, recover: true); buildPiece46.RequiredItems.Add("DeerHide", 5, recover: true); buildPiece46.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece46.Category.Set("Furniture"); BuildPiece buildPiece47 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Chair_1"); buildPiece47.Tool.Add("GB_Parchment_Tool"); buildPiece47.RequiredItems.Add("FineWood", 5, recover: true); buildPiece47.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece47.Category.Set("Furniture"); BuildPiece buildPiece48 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Chair_2"); buildPiece48.Tool.Add("GB_Parchment_Tool"); buildPiece48.RequiredItems.Add("FineWood", 5, recover: true); buildPiece48.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece48.Category.Set("Furniture"); BuildPiece buildPiece49 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Stool"); buildPiece49.Tool.Add("GB_Parchment_Tool"); buildPiece49.RequiredItems.Add("FineWood", 4, recover: true); buildPiece49.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece49.Category.Set("Furniture"); BuildPiece buildPiece50 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wall_Torch"); buildPiece50.Tool.Add("GB_Parchment_Tool"); buildPiece50.RequiredItems.Add("Wood", 1, recover: true); buildPiece50.RequiredItems.Add("Resin", 2, recover: true); buildPiece50.RequiredItems.Add("Tin", 5, recover: true); buildPiece50.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece50.Category.Set("Lights and Storage"); BuildPiece buildPiece51 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Table"); buildPiece51.Tool.Add("GB_Parchment_Tool"); buildPiece51.RequiredItems.Add("FineWood", 5, recover: true); buildPiece51.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece51.Category.Set("Furniture"); BuildPiece buildPiece52 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Old_Wood_Table"); buildPiece52.Tool.Add("GB_Parchment_Tool"); buildPiece52.RequiredItems.Add("Wood", 5, recover: true); buildPiece52.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece52.Category.Set("Furniture"); BuildPiece buildPiece53 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Casket_Lid"); buildPiece53.Tool.Add("GB_Parchment_Tool"); buildPiece53.RequiredItems.Add("Wood", 2, recover: true); buildPiece53.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece53.Category.Set("Furniture"); BuildPiece buildPiece54 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Casket"); buildPiece54.Tool.Add("GB_Parchment_Tool"); buildPiece54.RequiredItems.Add("Wood", 10, recover: true); buildPiece54.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece54.Category.Set("Furniture"); BuildPiece buildPiece55 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Barrel_O_Skulls"); buildPiece55.Tool.Add("GB_Parchment_Tool"); buildPiece55.RequiredItems.Add("RoundLog", 5, recover: true); buildPiece55.RequiredItems.Add("BoneFragments", 5, recover: true); buildPiece55.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece55.Category.Set("Deco"); BuildPiece buildPiece56 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Pile_O_Skulls"); buildPiece56.Tool.Add("GB_Parchment_Tool"); buildPiece56.RequiredItems.Add("BoneFragments", 5, recover: true); buildPiece56.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece56.Category.Set("Deco"); BuildPiece buildPiece57 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Black_Banner"); buildPiece57.Tool.Add("GB_Parchment_Tool"); buildPiece57.RequiredItems.Add("Iron", 1, recover: true); buildPiece57.RequiredItems.Add("Chain", 2, recover: true); buildPiece57.RequiredItems.Add("DeerHide", 2, recover: true); buildPiece57.RequiredItems.Add("Coal", 4, recover: true); buildPiece57.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece57.Category.Set("Deco"); BuildPiece buildPiece58 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Black_Half_Curtains"); buildPiece58.Tool.Add("GB_Parchment_Tool"); buildPiece58.RequiredItems.Add("Bronze", 1, recover: true); buildPiece58.RequiredItems.Add("LeatherScraps", 3, recover: true); buildPiece58.RequiredItems.Add("Coal", 2, recover: true); buildPiece58.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece58.Category.Set("Deco"); BuildPiece buildPiece59 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Book_Shelf"); buildPiece59.Tool.Add("GB_Parchment_Tool"); buildPiece59.RequiredItems.Add("Wood", 5, recover: true); buildPiece59.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece59.Category.Set("Furniture"); BuildPiece buildPiece60 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Book_Shelf_Full"); buildPiece60.Tool.Add("GB_Parchment_Tool"); buildPiece60.RequiredItems.Add("Wood", 8, recover: true); buildPiece60.RequiredItems.Add("LeatherScraps", 6, recover: true); buildPiece60.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece60.Category.Set("Furniture"); BuildPiece buildPiece61 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Book_Shelf_Full_2"); buildPiece61.Tool.Add("GB_Parchment_Tool"); buildPiece61.RequiredItems.Add("Wood", 8, recover: true); buildPiece61.RequiredItems.Add("LeatherScraps", 6, recover: true); buildPiece61.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece61.Category.Set("Furniture"); BuildPiece buildPiece62 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Hanging_Cage"); buildPiece62.Tool.Add("GB_Parchment_Tool"); buildPiece62.RequiredItems.Add("Iron", 2, recover: true); buildPiece62.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece62.Category.Set("Furniture"); WearNTear component24 = buildPiece62.Prefab.GetComponent<WearNTear>(); component24.m_ashDamageImmune = false; component24.m_ashDamageResist = false; component24.m_burnable = false; BuildPiece buildPiece63 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Skull_Orn"); buildPiece63.Tool.Add("GB_Parchment_Tool"); buildPiece63.RequiredItems.Add("TrophySkeleton", 1, recover: true); buildPiece63.RequiredItems.Add("Stone", 2, recover: true); buildPiece63.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece63.Category.Set("Deco"); WearNTear component25 = buildPiece63.Prefab.GetComponent<WearNTear>(); component25.m_ashDamageImmune = false; component25.m_ashDamageResist = false; component25.m_burnable = false; BuildPiece buildPiece64 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Skeleton_Orn"); buildPiece64.Tool.Add("GB_Parchment_Tool"); buildPiece64.RequiredItems.Add("TrophySkeleton", 1, recover: true); buildPiece64.RequiredItems.Add("Stone", 5, recover: true); buildPiece64.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece64.Category.Set("Deco"); WearNTear component26 = buildPiece64.Prefab.GetComponent<WearNTear>(); component26.m_ashDamageImmune = false; component26.m_ashDamageResist = false; component26.m_burnable = false; BuildPiece buildPiece65 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Hanging_Skeleton"); buildPiece65.Tool.Add("GB_Parchment_Tool"); buildPiece65.RequiredItems.Add("TrophySkeleton", 1, recover: true); buildPiece65.RequiredItems.Add("BoneFragments", 5, recover: true); buildPiece65.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece65.Category.Set("Deco"); BuildPiece buildPiece66 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Purple_Curtains"); buildPiece66.Tool.Add("GB_Parchment_Tool"); buildPiece66.RequiredItems.Add("Bronze", 1, recover: true); buildPiece66.RequiredItems.Add("LeatherScraps", 6, recover: true); buildPiece66.RequiredItems.Add("Raspberry", 6, recover: true); buildPiece66.RequiredItems.Add("Blueberries", 6, recover: true); buildPiece66.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece66.Category.Set("Deco"); BuildPiece buildPiece67 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Purple_Half_Curtains"); buildPiece67.Tool.Add("GB_Parchment_Tool"); buildPiece67.RequiredItems.Add("Bronze", 1, recover: true); buildPiece67.RequiredItems.Add("LeatherScraps", 3, recover: true); buildPiece67.RequiredItems.Add("Raspberry", 3, recover: true); buildPiece67.RequiredItems.Add("Blueberries", 3, recover: true); buildPiece67.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece67.Category.Set("Deco"); BuildPiece buildPiece68 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Single_Shelf"); buildPiece68.Tool.Add("GB_Parchment_Tool"); buildPiece68.RequiredItems.Add("Wood", 2, recover: true); buildPiece68.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece68.Category.Set("Furniture"); BuildPiece buildPiece69 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Sitting_Skeleton"); buildPiece69.Tool.Add("GB_Parchment_Tool"); buildPiece69.RequiredItems.Add("TrophySkeleton", 1, recover: true); buildPiece69.RequiredItems.Add("BoneFragments", 5, recover: true); buildPiece69.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece69.Category.Set("Deco"); BuildPiece buildPiece70 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Skeleton_Pole"); buildPiece70.Tool.Add("GB_Parchment_Tool"); buildPiece70.RequiredItems.Add("TrophySkeleton", 1, recover: true); buildPiece70.RequiredItems.Add("BoneFragments", 5, recover: true); buildPiece70.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece70.Category.Set("Deco"); BuildPiece buildPiece71 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Pillar_1x1"); buildPiece71.Tool.Add("GB_Parchment_Tool"); buildPiece71.RequiredItems.Add("Stone", 2, recover: true); buildPiece71.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece71.Category.Set("Stone Building"); WearNTear component27 = buildPiece71.Prefab.GetComponent<WearNTear>(); component27.m_ashDamageImmune = false; component27.m_ashDamageResist = false; component27.m_burnable = false; BuildPiece buildPiece72 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Pillar_Base"); buildPiece72.Tool.Add("GB_Parchment_Tool"); buildPiece72.RequiredItems.Add("Stone", 5, recover: true); buildPiece72.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece72.Category.Set("Stone Building"); WearNTear component28 = buildPiece72.Prefab.GetComponent<WearNTear>(); component28.m_ashDamageImmune = false; component28.m_ashDamageResist = false; component28.m_burnable = false; BuildPiece buildPiece73 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Pillar_Bottom"); buildPiece73.Tool.Add("GB_Parchment_Tool"); buildPiece73.RequiredItems.Add("Stone", 4, recover: true); buildPiece73.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece73.Category.Set("Stone Building"); WearNTear component29 = buildPiece73.Prefab.GetComponent<WearNTear>(); component29.m_ashDamageImmune = false; component29.m_ashDamageResist = false; component29.m_burnable = false; BuildPiece buildPiece74 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Pillar_Middle"); buildPiece74.Tool.Add("GB_Parchment_Tool"); buildPiece74.RequiredItems.Add("Stone", 3, recover: true); buildPiece74.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece74.Category.Set("Stone Building"); WearNTear component30 = buildPiece74.Prefab.GetComponent<WearNTear>(); component30.m_ashDamageImmune = false; component30.m_ashDamageResist = false; component30.m_burnable = false; BuildPiece buildPiece75 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Pillar_Small"); buildPiece75.Tool.Add("GB_Parchment_Tool"); buildPiece75.RequiredItems.Add("Stone", 6, recover: true); buildPiece75.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece75.Category.Set("Stone Building"); WearNTear component31 = buildPiece75.Prefab.GetComponent<WearNTear>(); component31.m_ashDamageImmune = false; component31.m_ashDamageResist = false; component31.m_burnable = false; BuildPiece buildPiece76 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Pillar_Top"); buildPiece76.Tool.Add("GB_Parchment_Tool"); buildPiece76.RequiredItems.Add("Stone", 4, recover: true); buildPiece76.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece76.Category.Set("Stone Building"); WearNTear component32 = buildPiece76.Prefab.GetComponent<WearNTear>(); component32.m_ashDamageImmune = false; component32.m_ashDamageResist = false; component32.m_burnable = false; BuildPiece buildPiece77 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Pillar_Base_Round"); buildPiece77.Tool.Add("GB_Parchment_Tool"); buildPiece77.RequiredItems.Add("Stone", 6, recover: true); buildPiece77.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece77.Category.Set("Stone Building"); WearNTear component33 = buildPiece77.Prefab.GetComponent<WearNTear>(); component33.m_ashDamageImmune = false; component33.m_ashDamageResist = false; component33.m_burnable = false; BuildPiece buildPiece78 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Square_Pillar_Middle"); buildPiece78.Tool.Add("GB_Parchment_Tool"); buildPiece78.RequiredItems.Add("Stone", 10, recover: true); buildPiece78.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece78.Category.Set("Stone Building"); WearNTear component34 = buildPiece78.Prefab.GetComponent<WearNTear>(); component34.m_ashDamageImmune = false; component34.m_ashDamageResist = false; component34.m_burnable = false; BuildPiece buildPiece79 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Table"); buildPiece79.Tool.Add("GB_Parchment_Tool"); buildPiece79.RequiredItems.Add("Stone", 10, recover: true); buildPiece79.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece79.Category.Set("Furniture"); WearNTear component35 = buildPiece79.Prefab.GetComponent<WearNTear>(); component35.m_ashDamageImmune = false; component35.m_ashDamageResist = false; component35.m_burnable = false; BuildPiece buildPiece80 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wooden_Awning"); buildPiece80.Tool.Add("GB_Parchment_Tool"); buildPiece80.RequiredItems.Add("FineWood", 10, recover: true); buildPiece80.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece80.Category.Set("Wood Building"); MaterialReplacer.RegisterGameObjectForShaderSwap(buildPiece80.Prefab, MaterialReplacer.ShaderType.UseUnityShader); BuildPiece buildPiece81 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Cloth_Bag"); buildPiece81.Tool.Add("GB_Parchment_Tool"); buildPiece81.RequiredItems.Add("LeatherScraps", 10, recover: true); buildPiece81.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece81.Category.Set("Lights and Storage"); BuildPiece buildPiece82 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Old_Book"); buildPiece82.Tool.Add("GB_Parchment_Tool"); buildPiece82.RequiredItems.Add("LeatherScraps", 5, recover: true); buildPiece82.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece82.Category.Set("Deco"); BuildPiece buildPiece83 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Old_Jug"); buildPiece83.Tool.Add("GB_Parchment_Tool"); buildPiece83.RequiredItems.Add("Wood", 2, recover: true); buildPiece83.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece83.Category.Set("Deco"); BuildPiece buildPiece84 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Small_Bottle"); buildPiece84.Tool.Add("GB_Parchment_Tool"); buildPiece84.RequiredItems.Add("Crystal", 1, recover: true); buildPiece84.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece84.Category.Set("Deco"); BuildPiece buildPiece85 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Old_Kettle"); buildPiece85.Tool.Add("GB_Parchment_Tool"); buildPiece85.RequiredItems.Add("Iron", 1, recover: true); buildPiece85.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece85.Category.Set("Deco"); BuildPiece buildPiece86 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wooden_Barrel"); buildPiece86.Tool.Add("GB_Parchment_Tool"); buildPiece86.RequiredItems.Add("Wood", 4, recover: true); buildPiece86.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece86.Category.Set("Lights and Storage"); BuildPiece buildPiece87 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Fireplace"); buildPiece87.Tool.Add("GB_Parchment_Tool"); buildPiece87.RequiredItems.Add("Stone", 20, recover: true); buildPiece87.RequiredItems.Add("Wood", 4, recover: true); buildPiece87.RequiredItems.Add("Coal", 2, recover: true); buildPiece87.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece87.Category.Set("Lights and Storage"); WearNTear component36 = buildPiece87.Prefab.GetComponent<WearNTear>(); component36.m_ashDamageImmune = false; component36.m_ashDamageResist = false; component36.m_burnable = false; BuildPiece buildPiece88 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wooden_Bucket"); buildPiece88.Tool.Add("GB_Parchment_Tool"); buildPiece88.RequiredItems.Add("Wood", 4, recover: true); buildPiece88.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece88.Category.Set("Deco"); BuildPiece buildPiece89 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Old_Open_Book"); buildPiece89.Tool.Add("GB_Parchment_Tool"); buildPiece89.RequiredItems.Add("LeatherScraps", 5, recover: true); buildPiece89.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece89.Category.Set("Deco"); BuildPiece buildPiece90 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Beam"); buildPiece90.Tool.Add("GB_Parchment_Tool"); buildPiece90.RequiredItems.Add("Stone", 3, recover: true); buildPiece90.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece90.Category.Set("Stone Building"); WearNTear component37 = buildPiece90.Prefab.GetComponent<WearNTear>(); component37.m_ashDamageImmune = false; component37.m_ashDamageResist = false; component37.m_burnable = false; BuildPiece buildPiece91 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Pole"); buildPiece91.Tool.Add("GB_Parchment_Tool"); buildPiece91.RequiredItems.Add("Stone", 3, recover: true); buildPiece91.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece91.Category.Set("Stone Building"); WearNTear component38 = buildPiece91.Prefab.GetComponent<WearNTear>(); component38.m_ashDamageImmune = false; component38.m_ashDamageResist = false; component38.m_burnable = false; BuildPiece buildPiece92 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Pole_Small"); buildPiece92.Tool.Add("GB_Parchment_Tool"); buildPiece92.RequiredItems.Add("Stone", 1, recover: true); buildPiece92.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece92.Category.Set("Stone Building"); WearNTear component39 = buildPiece92.Prefab.GetComponent<WearNTear>(); component39.m_ashDamageImmune = false; component39.m_ashDamageResist = false; component39.m_burnable = false; BuildPiece buildPiece93 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Beam_Small"); buildPiece93.Tool.Add("GB_Parchment_Tool"); buildPiece93.RequiredItems.Add("Stone", 1, recover: true); buildPiece93.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece93.Category.Set("Stone Building"); WearNTear component40 = buildPiece93.Prefab.GetComponent<WearNTear>(); component40.m_ashDamageImmune = false; component40.m_ashDamageResist = false; component40.m_burnable = false; BuildPiece buildPiece94 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Beam_26"); buildPiece94.Tool.Add("GB_Parchment_Tool"); buildPiece94.RequiredItems.Add("Stone", 3, recover: true); buildPiece94.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece94.Category.Set("Stone Building"); WearNTear component41 = buildPiece94.Prefab.GetComponent<WearNTear>(); component41.m_ashDamageImmune = false; component41.m_ashDamageResist = false; component41.m_burnable = false; BuildPiece buildPiece95 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Beam_45"); buildPiece95.Tool.Add("GB_Parchment_Tool"); buildPiece95.RequiredItems.Add("Stone", 3, recover: true); buildPiece95.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece95.Category.Set("Stone Building"); WearNTear component42 = buildPiece95.Prefab.GetComponent<WearNTear>(); component42.m_ashDamageImmune = false; component42.m_ashDamageResist = false; component42.m_burnable = false; BuildPiece buildPiece96 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Wall_Roof_Top"); buildPiece96.Tool.Add("GB_Parchment_Tool"); buildPiece96.RequiredItems.Add("Stone", 5, recover: true); buildPiece96.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece96.Category.Set("Stone Building"); WearNTear component43 = buildPiece96.Prefab.GetComponent<WearNTear>(); component43.m_ashDamageImmune = false; component43.m_ashDamageResist = false; component43.m_burnable = false; BuildPiece buildPiece97 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Wall_Roof_Top_45"); buildPiece97.Tool.Add("GB_Parchment_Tool"); buildPiece97.RequiredItems.Add("Stone", 5, recover: true); buildPiece97.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece97.Category.Set("Stone Building"); WearNTear component44 = buildPiece97.Prefab.GetComponent<WearNTear>(); component44.m_ashDamageImmune = false; component44.m_ashDamageResist = false; component44.m_burnable = false; BuildPiece buildPiece98 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Wall_26"); buildPiece98.Tool.Add("GB_Parchment_Tool"); buildPiece98.RequiredItems.Add("Stone", 3, recover: true); buildPiece98.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece98.Category.Set("Stone Building"); WearNTear component45 = buildPiece98.Prefab.GetComponent<WearNTear>(); component45.m_ashDamageImmune = false; component45.m_ashDamageResist = false; component45.m_burnable = false; BuildPiece buildPiece99 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Wall_45"); buildPiece99.Tool.Add("GB_Parchment_Tool"); buildPiece99.RequiredItems.Add("Stone", 3, recover: true); buildPiece99.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece99.Category.Set("Stone Building"); WearNTear component46 = buildPiece99.Prefab.GetComponent<WearNTear>(); component46.m_ashDamageImmune = false; component46.m_ashDamageResist = false; component46.m_burnable = false; BuildPiece buildPiece100 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Wall_Invert_26"); buildPiece100.Tool.Add("GB_Parchment_Tool"); buildPiece100.RequiredItems.Add("Stone", 3, recover: true); buildPiece100.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece100.Category.Set("Stone Building"); WearNTear component47 = buildPiece100.Prefab.GetComponent<WearNTear>(); component47.m_ashDamageImmune = false; component47.m_ashDamageResist = false; component47.m_burnable = false; BuildPiece buildPiece101 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Wall_Invert_45"); buildPiece101.Tool.Add("GB_Parchment_Tool"); buildPiece101.RequiredItems.Add("Stone", 3, recover: true); buildPiece101.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece101.Category.Set("Stone Building"); WearNTear component48 = buildPiece101.Prefab.GetComponent<WearNTear>(); component48.m_ashDamageImmune = false; component48.m_ashDamageResist = false; component48.m_burnable = false; BuildPiece buildPiece102 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Large_Stone_Aperture"); buildPiece102.Tool.Add("GB_Parchment_Tool"); buildPiece102.RequiredItems.Add("Stone", 6, recover: true); buildPiece102.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece102.Category.Set("Stone Building"); WearNTear component49 = buildPiece102.Prefab.GetComponent<WearNTear>(); component49.m_ashDamageImmune = false; component49.m_ashDamageResist = false; component49.m_burnable = false; BuildPiece buildPiece103 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Large_StoneWall"); buildPiece103.Tool.Add("GB_Parchment_Tool"); buildPiece103.RequiredItems.Add("Stone", 10, recover: true); buildPiece103.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece103.Category.Set("Stone Building"); WearNTear component50 = buildPiece103.Prefab.GetComponent<WearNTear>(); component50.m_ashDamageImmune = false; component50.m_ashDamageResist = false; component50.m_burnable = false; BuildPiece buildPiece104 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Halfwall_Battlement"); buildPiece104.Tool.Add("GB_Parchment_Tool"); buildPiece104.RequiredItems.Add("Stone", 3, recover: true); buildPiece104.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece104.Category.Set("Stone Building"); WearNTear component51 = buildPiece104.Prefab.GetComponent<WearNTear>(); component51.m_ashDamageImmune = false; component51.m_ashDamageResist = false; component51.m_burnable = false; BuildPiece buildPiece105 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_StoneWall_Door"); buildPiece105.Tool.Add("GB_Parchment_Tool"); buildPiece105.RequiredItems.Add("Stone", 6, recover: true); buildPiece105.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece105.Category.Set("Stone Building"); WearNTear component52 = buildPiece105.Prefab.GetComponent<WearNTear>(); component52.m_ashDamageImmune = false; component52.m_ashDamageResist = false; component52.m_burnable = false; BuildPiece buildPiece106 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Large_StoneWall_Door"); buildPiece106.Tool.Add("GB_Parchment_Tool"); buildPiece106.RequiredItems.Add("Stone", 10, recover: true); buildPiece106.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece106.Category.Set("Stone Building"); WearNTear component53 = buildPiece106.Prefab.GetComponent<WearNTear>(); component53.m_ashDamageImmune = false; component53.m_ashDamageResist = false; component53.m_burnable = false; BuildPiece buildPiece107 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wall_Shelf"); buildPiece107.Tool.Add("GB_Parchment_Tool"); buildPiece107.RequiredItems.Add("Wood", 6, recover: true); buildPiece107.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece107.Category.Set("Furniture"); BuildPiece buildPiece108 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Rectangle_Rug"); buildPiece108.Tool.Add("GB_Parchment_Tool"); buildPiece108.RequiredItems.Add("DeerHide", 6, recover: true); buildPiece108.RequiredItems.Add("Coal", 2, recover: true); buildPiece108.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece108.Category.Set("Furniture"); BuildPiece buildPiece109 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Round_Rug"); buildPiece109.Tool.Add("GB_Parchment_Tool"); buildPiece109.RequiredItems.Add("DeerHide", 2, recover: true); buildPiece109.RequiredItems.Add("Coal", 2, recover: true); buildPiece109.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece109.Category.Set("Furniture"); BuildPiece buildPiece110 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Oval_Rug"); buildPiece110.Tool.Add("GB_Parchment_Tool"); buildPiece110.RequiredItems.Add("DeerHide", 4, recover: true); buildPiece110.RequiredItems.Add("Coal", 2, recover: true); buildPiece110.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece110.Category.Set("Furniture"); BuildPiece buildPiece111 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Rug_Section"); buildPiece111.Tool.Add("GB_Parchment_Tool"); buildPiece111.RequiredItems.Add("DeerHide", 4, recover: true); buildPiece111.RequiredItems.Add("Coal", 2, recover: true); buildPiece111.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece111.Category.Set("Furniture"); BuildPiece buildPiece112 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Rug_End"); buildPiece112.Tool.Add("GB_Parchment_Tool"); buildPiece112.RequiredItems.Add("DeerHide", 1, recover: true); buildPiece112.RequiredItems.Add("Coal", 1, recover: true); buildPiece112.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece112.Category.Set("Furniture"); BuildPiece buildPiece113 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Block_Stairs"); buildPiece113.Tool.Add("GB_Parchment_Tool"); buildPiece113.RequiredItems.Add("Stone", 8, recover: true); buildPiece113.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece113.Category.Set("Stone Building"); WearNTear component54 = buildPiece113.Prefab.GetComponent<WearNTear>(); component54.m_ashDamageImmune = false; component54.m_ashDamageResist = false; component54.m_burnable = false; BuildPiece buildPiece114 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Stairs"); buildPiece114.Tool.Add("GB_Parchment_Tool"); buildPiece114.RequiredItems.Add("Stone", 8, recover: true); buildPiece114.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece114.Category.Set("Stone Building"); WearNTear component55 = buildPiece114.Prefab.GetComponent<WearNTear>(); component55.m_ashDamageImmune = false; component55.m_ashDamageResist = false; component55.m_burnable = false; BuildPiece buildPiece115 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Stairs"); buildPiece115.Tool.Add("GB_Parchment_Tool"); buildPiece115.RequiredItems.Add("Wood", 8, recover: true); buildPiece115.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece115.Category.Set("Wood Building"); BuildPiece buildPiece116 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Rock_Pole_Small"); buildPiece116.Tool.Add("GB_Parchment_Tool"); buildPiece116.RequiredItems.Add("Stone", 2, recover: true); buildPiece116.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece116.Category.Set("Stone Building"); WearNTear component56 = buildPiece116.Prefab.GetComponent<WearNTear>(); component56.m_ashDamageImmune = false; component56.m_ashDamageResist = false; component56.m_burnable = false; BuildPiece buildPiece117 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Rock_Pole"); buildPiece117.Tool.Add("GB_Parchment_Tool"); buildPiece117.RequiredItems.Add("Stone", 4, recover: true); buildPiece117.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece117.Category.Set("Stone Building"); WearNTear component57 = buildPiece117.Prefab.GetComponent<WearNTear>(); component57.m_ashDamageImmune = false; component57.m_ashDamageResist = false; component57.m_burnable = false; BuildPiece buildPiece118 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Rock_Beam"); buildPiece118.Tool.Add("GB_Parchment_Tool"); buildPiece118.RequiredItems.Add("Stone", 4, recover: true); buildPiece118.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece118.Category.Set("Stone Building"); WearNTear component58 = buildPiece118.Prefab.GetComponent<WearNTear>(); component58.m_ashDamageImmune = false; component58.m_ashDamageResist = false; component58.m_burnable = false; BuildPiece buildPiece119 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Rock_Beam_Small"); buildPiece119.Tool.Add("GB_Parchment_Tool"); buildPiece119.RequiredItems.Add("Stone", 2, recover: true); buildPiece119.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece119.Category.Set("Stone Building"); WearNTear component59 = buildPiece119.Prefab.GetComponent<WearNTear>(); component59.m_ashDamageImmune = false; component59.m_ashDamageResist = false; component59.m_burnable = false; BuildPiece buildPiece120 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Large_Stone_Orn"); buildPiece120.Tool.Add("GB_Parchment_Tool"); buildPiece120.RequiredItems.Add("Stone", 6, recover: true); buildPiece120.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece120.Category.Set("Stone Building"); WearNTear component60 = buildPiece120.Prefab.GetComponent<WearNTear>(); component60.m_ashDamageImmune = false; component60.m_ashDamageResist = false; component60.m_burnable = false; BuildPiece buildPiece121 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Small_Wall_Orn"); buildPiece121.Tool.Add("GB_Parchment_Tool"); buildPiece121.RequiredItems.Add("Stone", 2, recover: true); buildPiece121.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece121.Category.Set("Stone Building"); WearNTear component61 = buildPiece121.Prefab.GetComponent<WearNTear>(); component61.m_ashDamageImmune = false; component61.m_ashDamageResist = false; component61.m_burnable = false; BuildPiece buildPiece122 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wooden_Door"); buildPiece122.Tool.Add("GB_Parchment_Tool"); buildPiece122.RequiredItems.Add("Wood", 12, recover: true); buildPiece122.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece122.Category.Set("Wood Building"); BuildPiece buildPiece123 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Glass_Door"); buildPiece123.Tool.Add("GB_Parchment_Tool"); buildPiece123.RequiredItems.Add("Wood", 6, recover: true); buildPiece123.RequiredItems.Add("Crystal", 2, recover: true); buildPiece123.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece123.Category.Set("Wood Building"); BuildPiece buildPiece124 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Glass_Door_OdinPlus"); buildPiece124.Tool.Add("GB_Parchment_Tool"); buildPiece124.RequiredItems.Add("Wood", 6, recover: true); buildPiece124.RequiredItems.Add("Crystal", 2, recover: true); buildPiece124.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece124.Category.Set("Wood Building"); BuildPiece buildPiece125 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Iron_Floor_Grate"); buildPiece125.Tool.Add("GB_Parchment_Tool"); buildPiece125.RequiredItems.Add("Iron", 12, recover: true); buildPiece125.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece125.Category.Set("Deco"); WearNTear component62 = buildPiece125.Prefab.GetComponent<WearNTear>(); component62.m_ashDamageImmune = false; component62.m_ashDamageResist = false; component62.m_burnable = false; BuildPiece buildPiece126 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Rope_Fence"); buildPiece126.Tool.Add("GB_Parchment_Tool"); buildPiece126.RequiredItems.Add("Wood", 4, recover: true); buildPiece126.RequiredItems.Add("LinenThread", 2, recover: true); buildPiece126.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece126.Category.Set("Wood Building"); BuildPiece buildPiece127 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Iron_Fence"); buildPiece127.Tool.Add("GB_Parchment_Tool"); buildPiece127.RequiredItems.Add("Iron", 12, recover: true); buildPiece127.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece127.Category.Set("Deco"); WearNTear component63 = buildPiece127.Prefab.GetComponent<WearNTear>(); component63.m_ashDamageImmune = false; component63.m_ashDamageResist = false; component63.m_burnable = false; BuildPiece buildPiece128 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Iron_Fence_End"); buildPiece128.Tool.Add("GB_Parchment_Tool"); buildPiece128.RequiredItems.Add("Iron", 8, recover: true); buildPiece128.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece128.Category.Set("Deco"); WearNTear component64 = buildPiece128.Prefab.GetComponent<WearNTear>(); component64.m_ashDamageImmune = false; component64.m_ashDamageResist = false; component64.m_burnable = false; BuildPiece buildPiece129 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Iron_Fence_Door"); buildPiece129.Tool.Add("GB_Parchment_Tool"); buildPiece129.RequiredItems.Add("Iron", 12, recover: true); buildPiece129.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece129.Category.Set("Deco"); WearNTear component65 = buildPiece129.Prefab.GetComponent<WearNTear>(); component65.m_ashDamageImmune = false; component65.m_ashDamageResist = false; component65.m_burnable = false; BuildPiece buildPiece130 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Large_Chest"); buildPiece130.Tool.Add("GB_Parchment_Tool"); buildPiece130.RequiredItems.Add("Wood", 12, recover: true); buildPiece130.RequiredItems.Add("Obsidian", 4, recover: true); buildPiece130.RequiredItems.Add("Bronze", 2, recover: true); buildPiece130.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece130.Category.Set("Lights and Storage"); BuildPiece buildPiece131 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Small_Chest"); buildPiece131.Tool.Add("GB_Parchment_Tool"); buildPiece131.RequiredItems.Add("Wood", 8, recover: true); buildPiece131.RequiredItems.Add("Bronze", 1, recover: true); buildPiece131.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece131.Category.Set("Lights and Storage"); BuildPiece buildPiece132 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Red_Jute_Bed"); buildPiece132.Tool.Add("GB_Parchment_Tool"); buildPiece132.RequiredItems.Add("FineWood", 10, recover: true); buildPiece132.RequiredItems.Add("JuteRed", 2, recover: true); buildPiece132.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece132.Category.Set("Furniture"); BuildPiece buildPiece133 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Blue_Jute_Bed"); buildPiece133.Tool.Add("GB_Parchment_Tool"); buildPiece133.RequiredItems.Add("FineWood", 10, recover: true); buildPiece133.RequiredItems.Add("JuteBlue", 2, recover: true); buildPiece133.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece133.Category.Set("Furniture"); BuildPiece buildPiece134 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Black_Cloth_Bed"); buildPiece134.Tool.Add("GB_Parchment_Tool"); buildPiece134.RequiredItems.Add("FineWood", 10, recover: true); buildPiece134.RequiredItems.Add("Tar", 2, recover: true); buildPiece134.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece134.Category.Set("Furniture"); BuildPiece buildPiece135 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_RoundWall"); buildPiece135.Tool.Add("GB_Parchment_Tool"); buildPiece135.RequiredItems.Add("Stone", 12, recover: true); buildPiece135.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece135.Category.Set("Stone Building"); WearNTear component66 = buildPiece135.Prefab.GetComponent<WearNTear>(); component66.m_ashDamageImmune = false; component66.m_ashDamageResist = false; component66.m_burnable = false; BuildPiece buildPiece136 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_RoundWall_Aperture"); buildPiece136.Tool.Add("GB_Parchment_Tool"); buildPiece136.RequiredItems.Add("Stone", 12, recover: true); buildPiece136.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece136.Category.Set("Stone Building"); WearNTear component67 = buildPiece136.Prefab.GetComponent<WearNTear>(); component67.m_ashDamageImmune = false; component67.m_ashDamageResist = false; component67.m_burnable = false; BuildPiece buildPiece137 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_RoundWall_Door"); buildPiece137.Tool.Add("GB_Parchment_Tool"); buildPiece137.RequiredItems.Add("Stone", 12, recover: true); buildPiece137.RequiredItems.Add("Wood", 6, recover: true); buildPiece137.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece137.Category.Set("Stone Building"); WearNTear component68 = buildPiece137.Prefab.GetComponent<WearNTear>(); component68.m_ashDamageImmune = false; component68.m_ashDamageResist = false; component68.m_burnable = false; BuildPiece buildPiece138 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_RoundWall_DoorFrame"); buildPiece138.Tool.Add("GB_Parchment_Tool"); buildPiece138.RequiredItems.Add("Stone", 10, recover: true); buildPiece138.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece138.Category.Set("Stone Building"); WearNTear component69 = buildPiece138.Prefab.GetComponent<WearNTear>(); component69.m_ashDamageImmune = false; component69.m_ashDamageResist = false; component69.m_burnable = false; BuildPiece buildPiece139 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_RoundWall_Third"); buildPiece139.Tool.Add("GB_Parchment_Tool"); buildPiece139.RequiredItems.Add("Stone", 6, recover: true); buildPiece139.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece139.Category.Set("Stone Building"); WearNTear component70 = buildPiece139.Prefab.GetComponent<WearNTear>(); component70.m_ashDamageImmune = false; component70.m_ashDamageResist = false; component70.m_burnable = false; BuildPiece buildPiece140 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_RoundWall_Window"); buildPiece140.Tool.Add("GB_Parchment_Tool"); buildPiece140.RequiredItems.Add("Stone", 12, recover: true); buildPiece140.RequiredItems.Add("Crystal", 2, recover: true); buildPiece140.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece140.Category.Set("Stone Building"); WearNTear component71 = buildPiece140.Prefab.GetComponent<WearNTear>(); component71.m_ashDamageImmune = false; component71.m_ashDamageResist = false; component71.m_burnable = false; BuildPiece buildPiece141 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_RoundWall_Window_OP"); buildPiece141.Tool.Add("GB_Parchment_Tool"); buildPiece141.RequiredItems.Add("Stone", 12, recover: true); buildPiece141.RequiredItems.Add("Crystal", 2, recover: true); buildPiece141.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece141.Category.Set("Stone Building"); WearNTear component72 = buildPiece141.Prefab.GetComponent<WearNTear>(); component72.m_ashDamageImmune = false; component72.m_ashDamageResist = false; component72.m_burnable = false; BuildPiece buildPiece142 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Roundwall_Battlement"); buildPiece142.Tool.Add("GB_Parchment_Tool"); buildPiece142.RequiredItems.Add("Stone", 8, recover: true); buildPiece142.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece142.Category.Set("Stone Building"); WearNTear component73 = buildPiece142.Prefab.GetComponent<WearNTear>(); component73.m_ashDamageImmune = false; component73.m_ashDamageResist = false; component73.m_burnable = false; BuildPiece buildPiece143 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Wall_1x1"); buildPiece143.Tool.Add("GB_Parchment_Tool"); buildPiece143.RequiredItems.Add("Stone", 1, recover: true); buildPiece143.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece143.Category.Set("Stone Building"); WearNTear component74 = buildPiece143.Prefab.GetComponent<WearNTear>(); component74.m_ashDamageImmune = false; component74.m_ashDamageResist = false; component74.m_burnable = false; BuildPiece buildPiece144 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Hanging_Candles"); buildPiece144.Tool.Add("GB_Parchment_Tool"); buildPiece144.RequiredItems.Add("Tin", 3, recover: true); buildPiece144.RequiredItems.Add("Resin", 2, recover: true); buildPiece144.RequiredItems.Add("Honey", 2, recover: true); buildPiece144.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece144.Category.Set("Lights and Storage"); BuildPiece buildPiece145 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wooden_Cup"); buildPiece145.Tool.Add("GB_Parchment_Tool"); buildPiece145.RequiredItems.Add("FineWood", 1, recover: true); buildPiece145.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece145.Category.Set("Deco"); BuildPiece buildPiece146 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Tin_Cup"); buildPiece146.Tool.Add("GB_Parchment_Tool"); buildPiece146.RequiredItems.Add("Tin", 1, recover: true); buildPiece146.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece146.Category.Set("Deco"); BuildPiece buildPiece147 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wooden_Plate"); buildPiece147.Tool.Add("GB_Parchment_Tool"); buildPiece147.RequiredItems.Add("FineWood", 1, recover: true); buildPiece147.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece147.Category.Set("Deco"); BuildPiece buildPiece148 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Tin_Plate"); buildPiece148.Tool.Add("GB_Parchment_Tool"); buildPiece148.RequiredItems.Add("Tin", 1, recover: true); buildPiece148.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece148.Category.Set("Deco"); BuildPiece buildPiece149 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Odin_Banner"); buildPiece149.Tool.Add("GB_Parchment_Tool"); buildPiece149.RequiredItems.Add("Iron", 1, recover: true); buildPiece149.RequiredItems.Add("LinenThread", 2, recover: true); buildPiece149.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece149.Category.Set("Deco"); BuildPiece buildPiece150 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Standing_Brazier"); buildPiece150.Tool.Add("GB_Parchment_Tool"); buildPiece150.RequiredItems.Add("Tin", 6, recover: true); buildPiece150.RequiredItems.Add("Wood", 4, recover: true); buildPiece150.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece150.Category.Set("Lights and Storage"); BuildPiece buildPiece151 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Standing_Torch"); buildPiece151.Tool.Add("GB_Parchment_Tool"); buildPiece151.RequiredItems.Add("Tin", 4, recover: true); buildPiece151.RequiredItems.Add("Wood", 2, recover: true); buildPiece151.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece151.Category.Set("Lights and Storage"); BuildPiece buildPiece152 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Tower_Roof"); buildPiece152.Tool.Add("GB_Parchment_Tool"); buildPiece152.RequiredItems.Add("Stone", 5, recover: true); buildPiece152.RequiredItems.Add("FineWood", 4, recover: true); buildPiece152.RequiredItems.Add("Wood", 15, recover: true); buildPiece152.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece152.Category.Set("Wood Building"); MaterialReplacer.RegisterGameObjectForShaderSwap(buildPiece152.Prefab, MaterialReplacer.ShaderType.UseUnityShader); BuildPiece buildPiece153 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Half_Roof_26"); buildPiece153.Tool.Add("GB_Parchment_Tool"); buildPiece153.RequiredItems.Add("FineWood", 1, recover: true); buildPiece153.RequiredItems.Add("Wood", 2, recover: true); buildPiece153.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece153.Category.Set("Wood Building"); MaterialReplacer.RegisterGameObjectForShaderSwap(buildPiece153.Prefab, MaterialReplacer.ShaderType.UseUnityShader); BuildPiece buildPiece154 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Half_Roof_45"); buildPiece154.Tool.Add("GB_Parchment_Tool"); buildPiece154.RequiredItems.Add("FineWood", 1, recover: true); buildPiece154.RequiredItems.Add("Wood", 2, recover: true); buildPiece154.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece154.Category.Set("Wood Building"); MaterialReplacer.RegisterGameObjectForShaderSwap(buildPiece154.Prefab, MaterialReplacer.ShaderType.UseUnityShader); BuildPiece buildPiece155 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Corner_Roof_45"); buildPiece155.Tool.Add("GB_Parchment_Tool"); buildPiece155.RequiredItems.Add("FineWood", 1, recover: true); buildPiece155.RequiredItems.Add("Wood", 4, recover: true); buildPiece155.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece155.Category.Set("Wood Building"); MaterialReplacer.RegisterGameObjectForShaderSwap(buildPiece155.Prefab, MaterialReplacer.ShaderType.UseUnityShader); BuildPiece buildPiece156 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Inverted_Corner_Roof"); buildPiece156.Tool.Add("GB_Parchment_Tool"); buildPiece156.RequiredItems.Add("FineWood", 1, recover: true); buildPiece156.RequiredItems.Add("Wood", 4, recover: true); buildPiece156.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece156.Category.Set("Wood Building"); MaterialReplacer.RegisterGameObjectForShaderSwap(buildPiece156.Prefab, MaterialReplacer.ShaderType.UseUnityShader); BuildPiece buildPiece157 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Roof_45"); buildPiece157.Tool.Add("GB_Parchment_Tool"); buildPiece157.RequiredItems.Add("FineWood", 1, recover: true); buildPiece157.RequiredItems.Add("Wood", 4, recover: true); buildPiece157.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece157.Category.Set("Wood Building"); MaterialReplacer.RegisterGameObjectForShaderSwap(buildPiece157.Prefab, MaterialReplacer.ShaderType.UseUnityShader); BuildPiece buildPiece158 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Roof_Top_45"); buildPiece158.Tool.Add("GB_Parchment_Tool"); buildPiece158.RequiredItems.Add("FineWood", 1, recover: true); buildPiece158.RequiredItems.Add("Wood", 4, recover: true); buildPiece158.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece158.Category.Set("Wood Building"); MaterialReplacer.RegisterGameObjectForShaderSwap(buildPiece158.Prefab, MaterialReplacer.ShaderType.UseUnityShader); BuildPiece buildPiece159 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Corner_Roof_26"); buildPiece159.Tool.Add("GB_Parchment_Tool"); buildPiece159.RequiredItems.Add("FineWood", 1, recover: true); buildPiece159.RequiredItems.Add("Wood", 4, recover: true); buildPiece159.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece159.Category.Set("Wood Building"); MaterialReplacer.RegisterGameObjectForShaderSwap(buildPiece159.Prefab, MaterialReplacer.ShaderType.UseUnityShader); BuildPiece buildPiece160 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Inverted_Corner_Roof_26"); buildPiece160.Tool.Add("GB_Parchment_Tool"); buildPiece160.RequiredItems.Add("FineWood", 1, recover: true); buildPiece160.RequiredItems.Add("Wood", 4, recover: true); buildPiece160.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece160.Category.Set("Wood Building"); MaterialReplacer.RegisterGameObjectForShaderSwap(buildPiece160.Prefab, MaterialReplacer.ShaderType.UseUnityShader); BuildPiece buildPiece161 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Roof_26"); buildPiece161.Tool.Add("GB_Parchment_Tool"); buildPiece161.RequiredItems.Add("FineWood", 1, recover: true); buildPiece161.RequiredItems.Add("Wood", 4, recover: true); buildPiece161.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece161.Category.Set("Wood Building"); MaterialReplacer.RegisterGameObjectForShaderSwap(buildPiece161.Prefab, MaterialReplacer.ShaderType.UseUnityShader); BuildPiece buildPiece162 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Roof_Top_26"); buildPiece162.Tool.Add("GB_Parchment_Tool"); buildPiece162.RequiredItems.Add("FineWood", 1, recover: true); buildPiece162.RequiredItems.Add("Wood", 4, recover: true); buildPiece162.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece162.Category.Set("Wood Building"); MaterialReplacer.RegisterGameObjectForShaderSwap(buildPiece162.Prefab, MaterialReplacer.ShaderType.UseUnityShader); BuildPiece buildPiece163 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Roof_Point"); buildPiece163.Tool.Add("GB_Parchment_Tool"); buildPiece163.RequiredItems.Add("FineWood", 4, recover: true); buildPiece163.RequiredItems.Add("Wood", 8, recover: true); buildPiece163.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece163.Category.Set("Wood Building"); MaterialReplacer.RegisterGameObjectForShaderSwap(buildPiece163.Prefab, MaterialReplacer.ShaderType.UseUnityShader); BuildPiece buildPiece164 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Railing"); buildPiece164.Tool.Add("GB_Parchment_Tool"); buildPiece164.RequiredItems.Add("Stone", 4, recover: true); buildPiece164.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece164.Category.Set("Stone Building"); WearNTear component75 = buildPiece164.Prefab.GetComponent<WearNTear>(); component75.m_ashDamageImmune = false; component75.m_ashDamageResist = false; component75.m_burnable = false; BuildPiece buildPiece165 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Railing"); buildPiece165.Tool.Add("GB_Parchment_Tool"); buildPiece165.RequiredItems.Add("Wood", 4, recover: true); buildPiece165.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece165.Category.Set("Wood Building"); BuildPiece buildPiece166 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Stairs_Left"); buildPiece166.Tool.Add("GB_Parchment_Tool"); buildPiece166.RequiredItems.Add("Wood", 8, recover: true); buildPiece166.RequiredItems.Add("Stone", 4, recover: true); buildPiece166.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece166.Category.Set("Wood Building"); BuildPiece buildPiece167 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Stairs_Right"); buildPiece167.Tool.Add("GB_Parchment_Tool"); buildPiece167.RequiredItems.Add("Wood", 8, recover: true); buildPiece167.RequiredItems.Add("Stone", 4, recover: true); buildPiece167.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece167.Category.Set("Wood Building"); BuildPiece buildPiece168 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Small_Cupboard"); buildPiece168.Tool.Add("GB_Parchment_Tool"); buildPiece168.RequiredItems.Add("FineWood", 6, recover: true); buildPiece168.RequiredItems.Add("BronzeNails", 2, recover: true); buildPiece168.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece168.Category.Set("Lights and Storage"); BuildPiece buildPiece169 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Large_Cupboard"); buildPiece169.Tool.Add("GB_Parchment_Tool"); buildPiece169.RequiredItems.Add("FineWood", 14, recover: true); buildPiece169.RequiredItems.Add("BronzeNails", 4, recover: true); buildPiece169.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece169.Category.Set("Lights and Storage"); BuildPiece buildPiece170 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Railing_26"); buildPiece170.Tool.Add("GB_Parchment_Tool"); buildPiece170.RequiredItems.Add("Stone", 4, recover: true); buildPiece170.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece170.Category.Set("Stone Building"); WearNTear component76 = buildPiece170.Prefab.GetComponent<WearNTear>(); component76.m_ashDamageImmune = false; component76.m_ashDamageResist = false; component76.m_burnable = false; BuildPiece buildPiece171 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Wall_Battlement_26"); buildPiece171.Tool.Add("GB_Parchment_Tool"); buildPiece171.RequiredItems.Add("Stone", 4, recover: true); buildPiece171.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece171.Category.Set("Stone Building"); WearNTear component77 = buildPiece171.Prefab.GetComponent<WearNTear>(); component77.m_ashDamageImmune = false; component77.m_ashDamageResist = false; component77.m_burnable = false; BuildPiece buildPiece172 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wooden_Railing_26"); buildPiece172.Tool.Add("GB_Parchment_Tool"); buildPiece172.RequiredItems.Add("Wood", 4, recover: true); buildPiece172.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece172.Category.Set("Wood Building"); BuildPiece buildPiece173 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Hatch"); buildPiece173.Tool.Add("GB_Parchment_Tool"); buildPiece173.RequiredItems.Add("Stone", 4, recover: true); buildPiece173.RequiredItems.Add("Wood", 4, recover: true); buildPiece173.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece173.Category.Set("Stone Building"); WearNTear component78 = buildPiece173.Prefab.GetComponent<WearNTear>(); component78.m_ashDamageImmune = false; component78.m_ashDamageResist = false; component78.m_burnable = false; BuildPiece buildPiece174 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Beam_Deco_1"); buildPiece174.Tool.Add("GB_Parchment_Tool"); buildPiece174.RequiredItems.Add("Stone", 4, recover: true); buildPiece174.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece174.Category.Set("Deco"); WearNTear component79 = buildPiece174.Prefab.GetComponent<WearNTear>(); component79.m_ashDamageImmune = false; component79.m_ashDamageResist = false; component79.m_burnable = false; BuildPiece buildPiece175 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Beam_Deco_2"); buildPiece175.Tool.Add("GB_Parchment_Tool"); buildPiece175.RequiredItems.Add("Stone", 4, recover: true); buildPiece175.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece175.Category.Set("Deco"); WearNTear component80 = buildPiece175.Prefab.GetComponent<WearNTear>(); component80.m_ashDamageImmune = false; component80.m_ashDamageResist = false; component80.m_burnable = false; BuildPiece buildPiece176 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Beam_Deco_1"); buildPiece176.Tool.Add("GB_Parchment_Tool"); buildPiece176.RequiredItems.Add("Wood", 4, recover: true); buildPiece176.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece176.Category.Set("Deco"); BuildPiece buildPiece177 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Beam_Deco_2"); buildPiece177.Tool.Add("GB_Parchment_Tool"); buildPiece177.RequiredItems.Add("Wood", 4, recover: true); buildPiece177.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece177.Category.Set("Deco"); BuildPiece buildPiece178 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Broken_Barrel"); buildPiece178.Tool.Add("GB_Parchment_Tool"); buildPiece178.RequiredItems.Add("Wood", 4, recover: true); buildPiece178.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece178.Category.Set("Furniture"); BuildPiece buildPiece179 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Broken_Wood_Pile"); buildPiece179.Tool.Add("GB_Parchment_Tool"); buildPiece179.RequiredItems.Add("Wood", 2, recover: true); buildPiece179.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece179.Category.Set("Deco"); BuildPiece buildPiece180 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Small_Rock_Pile"); buildPiece180.Tool.Add("GB_Parchment_Tool"); buildPiece180.RequiredItems.Add("Stone", 4, recover: true); buildPiece180.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece180.Category.Set("Deco"); WearNTear component81 = buildPiece180.Prefab.GetComponent<WearNTear>(); component81.m_ashDamageImmune = false; component81.m_ashDamageResist = false; component81.m_burnable = false; BuildPiece buildPiece181 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Large_Rock_Pile"); buildPiece181.Tool.Add("GB_Parchment_Tool"); buildPiece181.RequiredItems.Add("Stone", 6, recover: true); buildPiece181.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece181.Category.Set("Deco"); WearNTear component82 = buildPiece181.Prefab.GetComponent<WearNTear>(); component82.m_ashDamageImmune = false; component82.m_ashDamageResist = false; component82.m_burnable = false; BuildPiece buildPiece182 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Pile_O_Bones"); buildPiece182.Tool.Add("GB_Parchment_Tool"); buildPiece182.RequiredItems.Add("BoneFragments", 4, recover: true); buildPiece182.RequiredItems.Add("TrophySkeleton", 2, recover: true); buildPiece182.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece182.Category.Set("Deco"); WearNTear component83 = buildPiece182.Prefab.GetComponent<WearNTear>(); component83.m_ashDamageImmune = false; component83.m_ashDamageResist = false; component83.m_burnable = false; BuildPiece buildPiece183 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Pillar_Broken_1"); buildPiece183.Tool.Add("GB_Parchment_Tool"); buildPiece183.RequiredItems.Add("Stone", 4, recover: true); buildPiece183.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece183.Category.Set("Stone Building"); WearNTear component84 = buildPiece183.Prefab.GetComponent<WearNTear>(); component84.m_ashDamageImmune = false; component84.m_ashDamageResist = false; component84.m_burnable = false; BuildPiece buildPiece184 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Pillar_Broken_2"); buildPiece184.Tool.Add("GB_Parchment_Tool"); buildPiece184.RequiredItems.Add("Stone", 4, recover: true); buildPiece184.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece184.Category.Set("Stone Building"); WearNTear component85 = buildPiece184.Prefab.GetComponent<WearNTear>(); component85.m_ashDamageImmune = false; component85.m_ashDamageResist = false; component85.m_burnable = false; BuildPiece buildPiece185 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Wall_Broken"); buildPiece185.Tool.Add("GB_Parchment_Tool"); buildPiece185.RequiredItems.Add("Stone", 2, recover: true); buildPiece185.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece185.Category.Set("Stone Building"); WearNTear component86 = buildPiece185.Prefab.GetComponent<WearNTear>(); component86.m_ashDamageImmune = false; component86.m_ashDamageResist = false; component86.m_burnable = false; BuildPiece buildPiece186 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_RoundWall_Corbel"); buildPiece186.Tool.Add("GB_Parchment_Tool"); buildPiece186.RequiredItems.Add("Stone", 4, recover: true); buildPiece186.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece186.Category.Set("Stone Building"); WearNTear component87 = buildPiece186.Prefab.GetComponent<WearNTear>(); component87.m_ashDamageImmune = false; component87.m_ashDamageResist = false; component87.m_burnable = false; BuildPiece buildPiece187 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wall_Corbel_1"); buildPiece187.Tool.Add("GB_Parchment_Tool"); buildPiece187.RequiredItems.Add("Stone", 1, recover: true); buildPiece187.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece187.Category.Set("Stone Building"); WearNTear component88 = buildPiece187.Prefab.GetComponent<WearNTear>(); component88.m_ashDamageImmune = false; component88.m_ashDamageResist = false; component88.m_burnable = false; BuildPiece buildPiece188 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wall_Corbel_2"); buildPiece188.Tool.Add("GB_Parchment_Tool"); buildPiece188.RequiredItems.Add("Stone", 1, recover: true); buildPiece188.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece188.Category.Set("Stone Building"); WearNTear component89 = buildPiece188.Prefab.GetComponent<WearNTear>(); component89.m_ashDamageImmune = false; component89.m_ashDamageResist = false; component89.m_burnable = false; BuildPiece buildPiece189 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Tapestry_1"); buildPiece189.Tool.Add("GB_Parchment_Tool"); buildPiece189.RequiredItems.Add("LinenThread", 10, recover: true); buildPiece189.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece189.Category.Set("Furniture"); BuildPiece buildPiece190 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Tapestry_2"); buildPiece190.Tool.Add("GB_Parchment_Tool"); buildPiece190.RequiredItems.Add("LinenThread", 10, recover: true); buildPiece190.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece190.Category.Set("Furniture"); BuildPiece buildPiece191 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Tapestry_3"); buildPiece191.Tool.Add("GB_Parchment_Tool"); buildPiece191.RequiredItems.Add("LinenThread", 10, recover: true); buildPiece191.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece191.Category.Set("Furniture"); BuildPiece buildPiece192 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Tapestry_4"); buildPiece192.Tool.Add("GB_Parchment_Tool"); buildPiece192.RequiredItems.Add("LinenThread", 10, recover: true); buildPiece192.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece192.Category.Set("Furniture"); BuildPiece buildPiece193 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Chimney"); buildPiece193.Tool.Add("GB_Parchment_Tool"); buildPiece193.RequiredItems.Add("Stone", 10, recover: true); buildPiece193.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece193.Category.Set("Stone Building"); WearNTear component90 = buildPiece193.Prefab.GetComponent<WearNTear>(); component90.m_ashDamageImmune = false; component90.m_ashDamageResist = false; component90.m_burnable = false; BuildPiece buildPiece194 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Marble_Fireplace"); buildPiece194.Tool.Add("GB_Parchment_Tool"); buildPiece194.RequiredItems.Add("BlackMarble", 5, recover: true); buildPiece194.RequiredItems.Add("Stone", 10, recover: true); buildPiece194.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece194.Category.Set("Stone Building"); WearNTear component91 = buildPiece194.Prefab.GetComponent<WearNTear>(); component91.m_ashDamageImmune = false; component91.m_ashDamageResist = false; component91.m_burnable = false; BuildPiece buildPiece195 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Wood_Beam_26"); buildPiece195.Tool.Add("GB_Parchment_Tool"); buildPiece195.RequiredItems.Add("Wood", 2, recover: true); buildPiece195.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece195.Category.Set("Wood Building"); BuildPiece buildPiece196 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Wood_Beam_45"); buildPiece196.Tool.Add("GB_Parchment_Tool"); buildPiece196.RequiredItems.Add("Wood", 2, recover: true); buildPiece196.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece196.Category.Set("Wood Building"); BuildPiece buildPiece197 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Wood_Beam"); buildPiece197.Tool.Add("GB_Parchment_Tool"); buildPiece197.RequiredItems.Add("Wood", 2, recover: true); buildPiece197.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece197.Category.Set("Wood Building"); BuildPiece buildPiece198 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Wood_Pole"); buildPiece198.Tool.Add("GB_Parchment_Tool"); buildPiece198.RequiredItems.Add("Wood", 2, recover: true); buildPiece198.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece198.Category.Set("Wood Building"); BuildPiece buildPiece199 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Wood_Pole_Small"); buildPiece199.Tool.Add("GB_Parchment_Tool"); buildPiece199.RequiredItems.Add("Wood", 1, recover: true); buildPiece199.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece199.Category.Set("Wood Building"); BuildPiece buildPiece200 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Castle_Wood_Beam_Small"); buildPiece200.Tool.Add("GB_Parchment_Tool"); buildPiece200.RequiredItems.Add("Wood", 1, recover: true); buildPiece200.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece200.Category.Set("Wood Building"); BuildPiece buildPiece201 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Arch"); buildPiece201.Tool.Add("GB_Parchment_Tool"); buildPiece201.RequiredItems.Add("Wood", 4, recover: true); buildPiece201.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece201.Category.Set("Wood Building"); BuildPiece buildPiece202 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Wall_Roof_Top"); buildPiece202.Tool.Add("GB_Parchment_Tool"); buildPiece202.RequiredItems.Add("Wood", 3, recover: true); buildPiece202.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece202.Category.Set("Wood Building"); BuildPiece buildPiece203 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Wall_Roof_Top_45"); buildPiece203.Tool.Add("GB_Parchment_Tool"); buildPiece203.RequiredItems.Add("Wood", 3, recover: true); buildPiece203.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece203.Category.Set("Wood Building"); BuildPiece buildPiece204 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Beam_Deco"); buildPiece204.Tool.Add("GB_Parchment_Tool"); buildPiece204.RequiredItems.Add("Wood", 1, recover: true); buildPiece204.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece204.Category.Set("Wood Building"); BuildPiece buildPiece205 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Pole_Deco_Down"); buildPiece205.Tool.Add("GB_Parchment_Tool"); buildPiece205.RequiredItems.Add("Wood", 1, recover: true); buildPiece205.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece205.Category.Set("Wood Building"); BuildPiece buildPiece206 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Wood_Pole_Deco_Up"); buildPiece206.Tool.Add("GB_Parchment_Tool"); buildPiece206.RequiredItems.Add("Wood", 1, recover: true); buildPiece206.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece206.Category.Set("Wood Building"); BuildPiece buildPiece207 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Tower_Floor_Deco"); buildPiece207.Tool.Add("GB_Parchment_Tool"); buildPiece207.RequiredItems.Add("Stone", 10, recover: true); buildPiece207.RequiredItems.Add("Wood", 10, recover: true); buildPiece207.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece207.Category.Set("Deco"); WearNTear component92 = buildPiece207.Prefab.GetComponent<WearNTear>(); component92.m_ashDamageImmune = false; component92.m_ashDamageResist = false; component92.m_burnable = false; BuildPiece buildPiece208 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Floor_Deco_1"); buildPiece208.Tool.Add("GB_Parchment_Tool"); buildPiece208.RequiredItems.Add("Stone", 4, recover: true); buildPiece208.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece208.Category.Set("Deco"); WearNTear component93 = buildPiece208.Prefab.GetComponent<WearNTear>(); component93.m_ashDamageImmune = false; component93.m_ashDamageResist = false; component93.m_burnable = false; BuildPiece buildPiece209 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Floor_Deco_2"); buildPiece209.Tool.Add("GB_Parchment_Tool"); buildPiece209.RequiredItems.Add("Stone", 4, recover: true); buildPiece209.Crafting.Set(PieceManager.CraftingTable.Workbench); buildPiece209.Category.Set("Deco"); WearNTear component94 = buildPiece209.Prefab.GetComponent<WearNTear>(); component94.m_ashDamageImmune = false; component94.m_ashDamageResist = false; component94.m_burnable = false; BuildPiece buildPiece210 = new BuildPiece(PiecePrefabManager.RegisterAssetBundle("gbcastles"), "GB_Stone_Floor_Deco_3"); buildPiece210.Tool.Add("GB_Parchment_Tool"); buildPiece210.RequiredItems.Add("Stone", 4, recover: true); buildPiece210.Crafting.Set(PieceManager.Craf