public static void AfterWorldLoad() { var iron = new InventoryItem(BuiltinBlocks.BronzeIngot, 2); var tools = new InventoryItem(BuiltinBlocks.CopperTools, 1); var planks = new InventoryItem(BuiltinBlocks.Planks, 4); var recipe = new Recipe(JOB_RECIPE, new List<InventoryItem>() { iron, tools, planks }, new InventoryItem(JOB_ITEM_KEY, 1), 2); RecipePlayer.AddOptionalRecipe(recipe); RecipeStorage.AddOptionalLimitTypeRecipe(Items.ItemFactory.JOB_CRAFTER, recipe); }
public static void AfterWorldLoad() { var iron = new InventoryItem(BuiltinBlocks.BronzeIngot, 2); var tools = new InventoryItem(BuiltinBlocks.CopperTools, 1); var planks = new InventoryItem(BuiltinBlocks.Planks, 4); var recipe = new Recipe(JOB_RECIPE, new List <InventoryItem> { iron, tools, planks }, new InventoryItem(JOB_ITEM_KEY, 1), 2); //ItemTypesServer.LoadSortOrder(JOB_ITEM_KEY, GameLoader.GetNextItemSortIndex()); RecipePlayer.AddOptionalRecipe(recipe); RecipeStorage.AddOptionalLimitTypeRecipe(ItemFactory.JOB_CRAFTER, recipe); }
public static void AfterWorldLoad() { var gold = new InventoryItem(BuiltinBlocks.BronzeIngot, 2); var iron = new InventoryItem(BuiltinBlocks.IronWrought, 2); var tools = new InventoryItem(BuiltinBlocks.CopperTools, 1); var stone = new InventoryItem(BuiltinBlocks.StoneBricks, 4); var recipe = new Recipe(JOB_RECIPE, new List <InventoryItem> { gold, tools, stone, iron }, new InventoryItem(JOB_ITEM_KEY, 1), 2); RecipePlayer.AddOptionalRecipe(recipe); RecipeStorage.AddOptionalLimitTypeRecipe(ItemFactory.JOB_CRAFTER, recipe); }