Added in the recipes for the capacitor and the charging station.

This commit is contained in:
JoshuaNavarro 2019-09-25 15:48:57 -07:00
parent 54e560f4a2
commit 90523d61da
1 changed files with 14 additions and 0 deletions

View File

@ -356,6 +356,20 @@ namespace Revitalize.Framework.Crafting
new CraftingRecipeComponent(ModCore.ObjectManager.GetItem("ElectrumIngot"),10) new CraftingRecipeComponent(ModCore.ObjectManager.GetItem("ElectrumIngot"),10)
}, new CraftingRecipeComponent(ModCore.ObjectManager.GetItem("BatteryBin"), 1), null, 0), true)); }, new CraftingRecipeComponent(ModCore.ObjectManager.GetItem("BatteryBin"), 1), null, 0), true));
WorkbenchRecipes.addCraftingRecipe("Capacitor", new UnlockableCraftingRecipe("Default", new Recipe(new List<CraftingRecipeComponent>()
{
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<CraftingRecipeComponent>()
{
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)) if (CraftingRecipesByGroup.ContainsKey(WorkbenchRecipes.craftingGroup))
{ {
foreach(KeyValuePair<string, UnlockableCraftingRecipe> recipe in WorkbenchRecipes.craftingRecipes) foreach(KeyValuePair<string, UnlockableCraftingRecipe> recipe in WorkbenchRecipes.craftingRecipes)