コード例 #1
0
        public override void AddRecipes()
        {
            FurnaceRecipe furnace = new FurnaceRecipe(mod);

            furnace.AddIngredient(ModContent.ItemType <WastelandOre_Item>(), 3);
            furnace.SetCostAndCookTime(500);
            furnace.SetResult(ModContent.ItemType <WastestoneIngot_Item>());
            furnace.AddRecipe();
        }
コード例 #2
0
ファイル: TUA.cs プロジェクト: Dradonhunter11/TUA
        public void AddFurnaceRecipe(int itemID, int itemResult, int timer = 20)
        {
            FurnaceRecipe r1 = FurnaceRecipeManager.CreateRecipe(this);

            r1.AddIngredient(itemID, 1);
            r1.SetResult(itemResult, 1);
            r1.SetCostAndCookTime(timer);
            r1.AddRecipe();
        }
コード例 #3
0
ファイル: LeadenSoles.cs プロジェクト: Dradonhunter11/TUA
        public override void AddRecipes()
        {
            FurnaceRecipe furnace = new FurnaceRecipe(mod);

            furnace.AddIngredient(ItemID.LeadOre, 25);
            furnace.SetCostAndCookTime(500);
            furnace.SetResult(ModContent.ItemType <LeadenSoles>());
            furnace.AddRecipe();

            furnace = new FurnaceRecipe(mod);
            furnace.AddIngredient(ItemID.IronOre, 26);
            furnace.SetCostAndCookTime(500);
            furnace.SetResult(ModContent.ItemType <LeadenSoles>());
            furnace.AddRecipe();
        }