From 90523d61da5d50a1c39deff9fca653ebdfd8f051 Mon Sep 17 00:00:00 2001 From: JoshuaNavarro Date: Wed, 25 Sep 2019 15:48:57 -0700 Subject: [PATCH] Added in the recipes for the capacitor and the charging station. --- .../Framework/Crafting/CraftingRecipeBook.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/GeneralMods/Revitalize/Framework/Crafting/CraftingRecipeBook.cs b/GeneralMods/Revitalize/Framework/Crafting/CraftingRecipeBook.cs index d0e7a7aa..4424562a 100644 --- a/GeneralMods/Revitalize/Framework/Crafting/CraftingRecipeBook.cs +++ b/GeneralMods/Revitalize/Framework/Crafting/CraftingRecipeBook.cs @@ -356,6 +356,20 @@ namespace Revitalize.Framework.Crafting new CraftingRecipeComponent(ModCore.ObjectManager.GetItem("ElectrumIngot"),10) }, new CraftingRecipeComponent(ModCore.ObjectManager.GetItem("BatteryBin"), 1), null, 0), true)); + WorkbenchRecipes.addCraftingRecipe("Capacitor", new UnlockableCraftingRecipe("Default", new Recipe(new List() + { + new CraftingRecipeComponent(new StardewValley.Object((int)Enums.SDVObject.Wood,50),50), + new CraftingRecipeComponent(new StardewValley.Object((int)Enums.SDVObject.CopperBar,10),10) + }, new CraftingRecipeComponent(ModCore.ObjectManager.GetItem("Capacitor"), 1), null, 0), true)); + + WorkbenchRecipes.addCraftingRecipe("Charging Station", new UnlockableCraftingRecipe("Default", new Recipe(new List() + { + new CraftingRecipeComponent(new StardewValley.Object((int)Enums.SDVObject.Wood,100),100), + new CraftingRecipeComponent(new StardewValley.Object((int)Enums.SDVObject.IronBar,10),10), + new CraftingRecipeComponent(ModCore.ObjectManager.GetItem("CopperWire"), 20), + new CraftingRecipeComponent(ModCore.ObjectManager.GetItem("Capacitor"), 1) + }, new CraftingRecipeComponent(ModCore.ObjectManager.GetItem("ChargingStation"), 1), null, 0), true)); + if (CraftingRecipesByGroup.ContainsKey(WorkbenchRecipes.craftingGroup)) { foreach(KeyValuePair recipe in WorkbenchRecipes.craftingRecipes)