diff --git a/Content/EndgameOverrides.cs b/Content/EndgameOverrides.cs new file mode 100644 index 0000000..bcafcf3 --- /dev/null +++ b/Content/EndgameOverrides.cs @@ -0,0 +1,34 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Continuity.Content.Items; + +namespace Continuity.Content +{ + public class EndgameRecipeOverrides : ModSystem + { + public override void AddRecipes() { + for (int i = 0; i < Recipe.numRecipes; i++) { + Recipe recipe = Main.recipe[i]; + + if (recipe.TryGetResult(ItemID.Zenith, out Item _)) { + recipe.RemoveIngredient(ItemID.CopperShortsword); + recipe.RemoveIngredient(ItemID.BeeKeeper); + recipe.RemoveIngredient(ItemID.EnchantedSword); + } + else if (recipe.TryGetResult(ItemID.EnchantedSword, out Item _)) { + recipe.AddIngredient(ItemID.CopperShortsword, 1); + } + else if (recipe.TryGetResult(ItemID.TerraBlade, out Item _)) { + recipe.AddIngredient(ItemID.EnchantedSword, 1); + } + // Calamity Endgame + else if (ModLoader.TryGetMod("CalamityMod", out Mod calamityMod) && (calamityMod.TryFind("DragonPow", out ModItem dragonPow))) { + if (recipe.TryGetResult(dragonPow.Type, out Item _)) { + recipe.RemoveIngredient(ItemID.DaoofPow); + } + } + } + } + } +} diff --git a/Content/PlanteraRecipes.cs b/Content/PlanteraRecipes.cs index b57522c..91a453b 100644 --- a/Content/PlanteraRecipes.cs +++ b/Content/PlanteraRecipes.cs @@ -10,7 +10,8 @@ namespace Continuity.Content public override void AddRecipes() { // Seedler Recipe recipe = Recipe.Create(ItemID.Seedler); - recipe.AddIngredient(ItemID.ChlorophyteBar, 12); + recipe.AddIngredient(ItemID.ChlorophyteSaber, 1); + recipe.AddIngredient(ItemID.BeeKeeper, 1); recipe.AddIngredient(ItemID.Stinger, 3); recipe.AddIngredient(ModContent.ItemType(), 9); recipe.AddIngredient(331, 6); @@ -18,7 +19,7 @@ namespace Continuity.Content // The Axe recipe = Recipe.Create(ItemID.TheAxe); - recipe.AddIngredient(ItemID.ChlorophyteBar, 15); + recipe.AddIngredient(ItemID.ChlorophyteClaymore, 1); recipe.AddIngredient(ItemID.Stinger, 2); recipe.AddIngredient(ModContent.ItemType(), 10); recipe.AddIngredient(331, 3); @@ -32,7 +33,7 @@ namespace Continuity.Content // Nettle Burst recipe = Recipe.Create(ItemID.NettleBurst); - recipe.AddIngredient(ItemID.ChlorophyteBar, 10); + recipe.AddIngredient(ItemID.VenomStaff, 1); recipe.AddIngredient(ItemID.Stinger, 4); recipe.AddIngredient(ModContent.ItemType(), 6); recipe.AddIngredient(ItemID.Vine, 3); @@ -48,7 +49,8 @@ namespace Continuity.Content // Flower Pow recipe = Recipe.Create(ItemID.FlowerPow); - recipe.AddIngredient(ItemID.ChlorophyteBar, 11); + recipe.AddIngredient(ItemID.DaoofPow, 1); + recipe.AddIngredient(ItemID.ChlorophyteBar, 9); recipe.AddIngredient(ItemID.JungleRose, 1); recipe.AddIngredient(ModContent.ItemType(), 10); recipe.AddIngredient(ItemID.Vine, 3); @@ -87,7 +89,7 @@ namespace Continuity.Content // Blossom Flux (Calamity) if (ModLoader.TryGetMod("CalamityMod", out Mod calamityMod) && calamityMod.TryFind("BlossomFlux", out ModItem BlossomFlux)) { recipe = Recipe.Create(BlossomFlux.Type); - recipe.AddIngredient(ItemID.ChlorophyteBar, 8); + recipe.AddIngredient(ItemID.ChlorophyteShotbow, 1); recipe.AddIngredient(ModContent.ItemType(), 8); recipe.AddIngredient(ItemID.Vine, 4); recipe.Register();