From ef31a8aaadce00bbc0cafbdec4bab80e21baca2a Mon Sep 17 00:00:00 2001 From: Shucks Date: Sat, 23 Nov 2019 18:11:26 -0600 Subject: [PATCH] Recipe groups for Draedons forge --- .../CraftingStations/DraedonsForge.cs | 34 ++----------------- Utilities/CalamityRecipes.cs | 14 ++++++++ 2 files changed, 16 insertions(+), 32 deletions(-) diff --git a/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs b/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs index a17502fc70..bd31d2a451 100644 --- a/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs +++ b/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs @@ -31,38 +31,8 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.AdamantiteForge); - recipe.AddIngredient(ItemID.MythrilAnvil); - recipe.AddIngredient(ItemID.LunarCraftingStation); - recipe.AddIngredient(ItemID.LunarBar, 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 20); - recipe.AddIngredient(ModContent.ItemType(), 20); - recipe.SetResult(this); - recipe.AddRecipe(); - recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.TitaniumForge); - recipe.AddIngredient(ItemID.MythrilAnvil); - recipe.AddIngredient(ItemID.LunarCraftingStation); - recipe.AddIngredient(ItemID.LunarBar, 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 20); - recipe.AddIngredient(ModContent.ItemType(), 20); - recipe.SetResult(this); - recipe.AddRecipe(); - recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.TitaniumForge); - recipe.AddIngredient(ItemID.OrichalcumAnvil); - recipe.AddIngredient(ItemID.LunarCraftingStation); - recipe.AddIngredient(ItemID.LunarBar, 5); - recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ModContent.ItemType(), 20); - recipe.AddIngredient(ModContent.ItemType(), 20); - recipe.SetResult(this); - recipe.AddRecipe(); - recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.AdamantiteForge); - recipe.AddIngredient(ItemID.OrichalcumAnvil); + recipe.AddRecipeGroup("HardmodeForge"); + recipe.AddRecipeGroup("HardmodeAnvil"); recipe.AddIngredient(ItemID.LunarCraftingStation); recipe.AddIngredient(ItemID.LunarBar, 5); recipe.AddIngredient(ModContent.ItemType(), 5); diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index fd5356f081..64aefeb672 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -793,6 +793,20 @@ namespace CalamityMod }); RecipeGroup.RegisterGroup("SiltGroup", group); + group = new RecipeGroup(() => "Any Hardmode Anvil", new int[] + { + ItemID.MythrilAnvil, + ItemID.OrichalcumAnvil + }); + RecipeGroup.RegisterGroup("HardmodeAnvil", group); + + group = new RecipeGroup(() => "Any Hardmode Forge", new int[] + { + ItemID.AdamantiteForge, + ItemID.TitaniumForge + }); + RecipeGroup.RegisterGroup("HardmodeForge", group); + group = new RecipeGroup(() => "Any Lunar Pickaxe", new int[] { ItemID.SolarFlarePickaxe,