Added in recipe for solar panel tier 1 and solar array tier 1.

This commit is contained in:
JoshuaNavarro 2019-09-25 15:27:40 -07:00
parent 822ef651f5
commit 57665d5e8c
1 changed files with 20 additions and 0 deletions

View File

@ -474,6 +474,26 @@ namespace Revitalize.Framework.Crafting
new CraftingRecipeComponent(new StardewValley.Object((int)Enums.SDVObject.IronBar,2),2) new CraftingRecipeComponent(new StardewValley.Object((int)Enums.SDVObject.IronBar,2),2)
}, new CraftingRecipeComponent(ModCore.ObjectManager.GetItem("IronPipe"), 1)), true)); }, new CraftingRecipeComponent(ModCore.ObjectManager.GetItem("IronPipe"), 1)), true));
AnvilRecipes.addCraftingRecipe("Solar Panel", new UnlockableCraftingRecipe("Default", new Recipe(new List<CraftingRecipeComponent>()
{
new CraftingRecipeComponent(new StardewValley.Object((int)Enums.SDVObject.IronBar,10),10),
new CraftingRecipeComponent(ModCore.ObjectManager.resources.getResource("Glass"),4),
}, new CraftingRecipeComponent(ModCore.ObjectManager.GetItem("SolarPanelTier1"), 1)), true));
AnvilRecipes.addCraftingRecipe("Solar Array", new UnlockableCraftingRecipe("Default", new Recipe(new List<CraftingRecipeComponent>()
{
new CraftingRecipeComponent(new StardewValley.Object((int)Enums.SDVObject.IronBar,45),45),
new CraftingRecipeComponent(ModCore.ObjectManager.resources.getResource("Glass"),20),
}, new CraftingRecipeComponent(ModCore.ObjectManager.GetItem("SolarArrayTier1"), 1)), true));
///Alt solar array crafting recipe.
AnvilRecipes.addCraftingRecipe("Solar Array Alt. Recipe", new UnlockableCraftingRecipe("Default", new Recipe(new List<CraftingRecipeComponent>()
{
new CraftingRecipeComponent(new StardewValley.Object((int)Enums.SDVObject.IronBar,5),45),
new CraftingRecipeComponent(ModCore.ObjectManager.resources.getResource("Glass"),4),
new CraftingRecipeComponent(ModCore.ObjectManager.GetItem("SolarPanelTier1"), 4)
}, new CraftingRecipeComponent(ModCore.ObjectManager.GetItem("SolarArrayTier1"), 1)), true));
if (CraftingRecipesByGroup.ContainsKey(AnvilRecipes.craftingGroup)) if (CraftingRecipesByGroup.ContainsKey(AnvilRecipes.craftingGroup))
{ {
foreach (KeyValuePair<string, UnlockableCraftingRecipe> recipe in AnvilRecipes.craftingRecipes) foreach (KeyValuePair<string, UnlockableCraftingRecipe> recipe in AnvilRecipes.craftingRecipes)