feat: endgame overrides for the Zenith & related items to the Plantera rework
This commit is contained in:
parent
6481b733fb
commit
b605a650dd
2 changed files with 41 additions and 5 deletions
34
Content/EndgameOverrides.cs
Normal file
34
Content/EndgameOverrides.cs
Normal file
|
@ -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<ModItem>("DragonPow", out ModItem dragonPow))) {
|
||||||
|
if (recipe.TryGetResult(dragonPow.Type, out Item _)) {
|
||||||
|
recipe.RemoveIngredient(ItemID.DaoofPow);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -10,7 +10,8 @@ namespace Continuity.Content
|
||||||
public override void AddRecipes() {
|
public override void AddRecipes() {
|
||||||
// Seedler
|
// Seedler
|
||||||
Recipe recipe = Recipe.Create(ItemID.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(ItemID.Stinger, 3);
|
||||||
recipe.AddIngredient(ModContent.ItemType<PalishadeTissue>(), 9);
|
recipe.AddIngredient(ModContent.ItemType<PalishadeTissue>(), 9);
|
||||||
recipe.AddIngredient(331, 6);
|
recipe.AddIngredient(331, 6);
|
||||||
|
@ -18,7 +19,7 @@ namespace Continuity.Content
|
||||||
|
|
||||||
// The Axe
|
// The Axe
|
||||||
recipe = Recipe.Create(ItemID.TheAxe);
|
recipe = Recipe.Create(ItemID.TheAxe);
|
||||||
recipe.AddIngredient(ItemID.ChlorophyteBar, 15);
|
recipe.AddIngredient(ItemID.ChlorophyteClaymore, 1);
|
||||||
recipe.AddIngredient(ItemID.Stinger, 2);
|
recipe.AddIngredient(ItemID.Stinger, 2);
|
||||||
recipe.AddIngredient(ModContent.ItemType<PalishadeTissue>(), 10);
|
recipe.AddIngredient(ModContent.ItemType<PalishadeTissue>(), 10);
|
||||||
recipe.AddIngredient(331, 3);
|
recipe.AddIngredient(331, 3);
|
||||||
|
@ -32,7 +33,7 @@ namespace Continuity.Content
|
||||||
|
|
||||||
// Nettle Burst
|
// Nettle Burst
|
||||||
recipe = Recipe.Create(ItemID.NettleBurst);
|
recipe = Recipe.Create(ItemID.NettleBurst);
|
||||||
recipe.AddIngredient(ItemID.ChlorophyteBar, 10);
|
recipe.AddIngredient(ItemID.VenomStaff, 1);
|
||||||
recipe.AddIngredient(ItemID.Stinger, 4);
|
recipe.AddIngredient(ItemID.Stinger, 4);
|
||||||
recipe.AddIngredient(ModContent.ItemType<PalishadeTissue>(), 6);
|
recipe.AddIngredient(ModContent.ItemType<PalishadeTissue>(), 6);
|
||||||
recipe.AddIngredient(ItemID.Vine, 3);
|
recipe.AddIngredient(ItemID.Vine, 3);
|
||||||
|
@ -48,7 +49,8 @@ namespace Continuity.Content
|
||||||
|
|
||||||
// Flower Pow
|
// Flower Pow
|
||||||
recipe = Recipe.Create(ItemID.FlowerPow);
|
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(ItemID.JungleRose, 1);
|
||||||
recipe.AddIngredient(ModContent.ItemType<PalishadeTissue>(), 10);
|
recipe.AddIngredient(ModContent.ItemType<PalishadeTissue>(), 10);
|
||||||
recipe.AddIngredient(ItemID.Vine, 3);
|
recipe.AddIngredient(ItemID.Vine, 3);
|
||||||
|
@ -87,7 +89,7 @@ namespace Continuity.Content
|
||||||
// Blossom Flux (Calamity)
|
// Blossom Flux (Calamity)
|
||||||
if (ModLoader.TryGetMod("CalamityMod", out Mod calamityMod) && calamityMod.TryFind<ModItem>("BlossomFlux", out ModItem BlossomFlux)) {
|
if (ModLoader.TryGetMod("CalamityMod", out Mod calamityMod) && calamityMod.TryFind<ModItem>("BlossomFlux", out ModItem BlossomFlux)) {
|
||||||
recipe = Recipe.Create(BlossomFlux.Type);
|
recipe = Recipe.Create(BlossomFlux.Type);
|
||||||
recipe.AddIngredient(ItemID.ChlorophyteBar, 8);
|
recipe.AddIngredient(ItemID.ChlorophyteShotbow, 1);
|
||||||
recipe.AddIngredient(ModContent.ItemType<PalishadeTissue>(), 8);
|
recipe.AddIngredient(ModContent.ItemType<PalishadeTissue>(), 8);
|
||||||
recipe.AddIngredient(ItemID.Vine, 4);
|
recipe.AddIngredient(ItemID.Vine, 4);
|
||||||
recipe.Register();
|
recipe.Register();
|
||||||
|
|
Reference in a new issue