From 41f72ddeb90c63567b83a65cfbec01a7720635ab Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 12 Jun 2022 00:34:21 -0400 Subject: [PATCH] Renamed Cadance buff and changed tooltips appropriately --- Buffs/Potions/{Cadence.cs => CadancesGrace.cs} | 6 +++--- Buffs/Potions/{Cadence.png => CadancesGrace.png} | Bin CalPlayer/CalamityPlayerMiscEffects.cs | 2 +- Items/CalamityGlobalItem.cs | 2 +- .../Potions/{CadencePotion.cs => CadancePotion.cs} | 7 ++++--- .../{CadencePotion.png => CadancePotion.png} | Bin World/Planets/MudPlanet.cs | 2 +- 7 files changed, 10 insertions(+), 9 deletions(-) rename Buffs/Potions/{Cadence.cs => CadancesGrace.cs} (80%) rename Buffs/Potions/{Cadence.png => CadancesGrace.png} (100%) rename Items/Potions/{CadencePotion.cs => CadancePotion.cs} (86%) rename Items/Potions/{CadencePotion.png => CadancePotion.png} (100%) diff --git a/Buffs/Potions/Cadence.cs b/Buffs/Potions/CadancesGrace.cs similarity index 80% rename from Buffs/Potions/Cadence.cs rename to Buffs/Potions/CadancesGrace.cs index c788781ead..582e7040dc 100644 --- a/Buffs/Potions/Cadence.cs +++ b/Buffs/Potions/CadancesGrace.cs @@ -1,13 +1,13 @@ -using Terraria; +using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Potions { - public class Cadence : ModBuff + public class CadancesGrace : ModBuff { public override void SetStaticDefaults() { - DisplayName.SetDefault("Cadance"); + DisplayName.SetDefault("Cadance's Grace"); Description.SetDefault("Your heart is pure"); Main.debuff[Type] = false; Main.pvpBuff[Type] = true; diff --git a/Buffs/Potions/Cadence.png b/Buffs/Potions/CadancesGrace.png similarity index 100% rename from Buffs/Potions/Cadence.png rename to Buffs/Potions/CadancesGrace.png diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index e52c7a7640..36619d53e6 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -3489,7 +3489,7 @@ namespace CalamityMod.CalPlayer (hasBuff >= BuffID.Mining && hasBuff <= BuffID.Wrath) || (hasBuff >= BuffID.Lovestruck && hasBuff <= BuffID.Warmth) || hasBuff == BuffID.SugarRush || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || - hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || + hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || hasBuff == ModContent.BuffType() || diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 57489d9628..2faff74b1b 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -849,7 +849,7 @@ namespace CalamityMod.Items { return false; } - if ((item.type == ItemID.RegenerationPotion || item.type == ItemID.LifeforcePotion) && player.FindBuffIndex(ModContent.BuffType()) > -1) + if ((item.type == ItemID.RegenerationPotion || item.type == ItemID.LifeforcePotion) && player.FindBuffIndex(ModContent.BuffType()) > -1) { return false; } diff --git a/Items/Potions/CadencePotion.cs b/Items/Potions/CadancePotion.cs similarity index 86% rename from Items/Potions/CadencePotion.cs rename to Items/Potions/CadancePotion.cs index 8143b53ecd..0df27ffb04 100644 --- a/Items/Potions/CadencePotion.cs +++ b/Items/Potions/CadancePotion.cs @@ -6,13 +6,14 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Potions { - public class CadencePotion : ModItem + [LegacyName("CadencePotion") + public class CadancePotion : ModItem { public override void SetStaticDefaults() { SacrificeTotal = 20; DisplayName.SetDefault("Cadance Potion"); - Tooltip.SetDefault("Gives the cadance buff which increases life regeneration and heart pickup range\n" + + Tooltip.SetDefault("Grants Cadance's Grace, which increases life regeneration and heart pickup range\n" + "Increases max life by 25%\n" + "While this potion's buff is active, Regeneration Potion and Lifeforce Potion buffs are disabled"); } @@ -30,7 +31,7 @@ namespace CalamityMod.Items.Potions Item.UseSound = SoundID.Item3; Item.rare = ItemRarityID.LightRed; Item.consumable = true; - Item.buffType = ModContent.BuffType(); + Item.buffType = ModContent.BuffType(); Item.buffTime = CalamityUtils.SecondsToFrames(480f); Item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/CadencePotion.png b/Items/Potions/CadancePotion.png similarity index 100% rename from Items/Potions/CadencePotion.png rename to Items/Potions/CadancePotion.png diff --git a/World/Planets/MudPlanet.cs b/World/Planets/MudPlanet.cs index 057f516acd..41b58a43e5 100644 --- a/World/Planets/MudPlanet.cs +++ b/World/Planets/MudPlanet.cs @@ -292,7 +292,7 @@ namespace CalamityMod.World.Planets ItemID.ManaRegenerationPotion, ItemID.HeartreachPotion, ModContent.ItemType(), - ModContent.ItemType() + ModContent.ItemType() }; private int[] BarLootHoney = new int[]