From c4aae14f119464f4e8beffcafeb712b64806510d Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 11 Jun 2022 12:42:23 -0400 Subject: [PATCH] Internally renamed difficulty items. --- CalamityConfig.cs | 2 +- .../DifficultyItems/{Death.cs => DeathModeItem.cs} | 5 +++-- .../{Death.png => DeathModeItem.png} | Bin .../{Malice.cs => MaliceModeItem.cs} | 9 +++++---- .../{Malice.png => MaliceModeItem.png} | Bin ...ice_Animated.png => MaliceModeItem_Animated.png} | Bin .../{Revenge.cs => RevengeanceModeItem.cs} | 5 +++-- .../{Revenge.png => RevengeanceModeItem.png} | Bin Items/TreasureBags/StarterBag.cs | 6 +++--- 9 files changed, 15 insertions(+), 12 deletions(-) rename Items/DifficultyItems/{Death.cs => DeathModeItem.cs} (96%) rename Items/DifficultyItems/{Death.png => DeathModeItem.png} (100%) rename Items/DifficultyItems/{Malice.cs => MaliceModeItem.cs} (93%) rename Items/DifficultyItems/{Malice.png => MaliceModeItem.png} (100%) rename Items/DifficultyItems/{Malice_Animated.png => MaliceModeItem_Animated.png} (100%) rename Items/DifficultyItems/{Revenge.cs => RevengeanceModeItem.cs} (97%) rename Items/DifficultyItems/{Revenge.png => RevengeanceModeItem.png} (100%) diff --git a/CalamityConfig.cs b/CalamityConfig.cs index 711885ef96..45ed8647e6 100644 --- a/CalamityConfig.cs +++ b/CalamityConfig.cs @@ -368,7 +368,7 @@ namespace CalamityMod new("ChilledWaterRework", ItemID.ArcticDivingGear), new("ForceTownSafety", ItemID.Sunflower), - new("RipperMeterShake", ModContent.ItemType()), + new("RipperMeterShake", ModContent.ItemType()), new("RageMeterPosX", ItemID.LaserRuler), new("RageMeterPosY", ItemID.LaserRuler), new("AdrenalineMeterPosX", ItemID.LaserRuler), diff --git a/Items/DifficultyItems/Death.cs b/Items/DifficultyItems/DeathModeItem.cs similarity index 96% rename from Items/DifficultyItems/Death.cs rename to Items/DifficultyItems/DeathModeItem.cs index 31c9f46e3c..16989e5391 100644 --- a/Items/DifficultyItems/Death.cs +++ b/Items/DifficultyItems/DeathModeItem.cs @@ -8,12 +8,13 @@ using Terraria.ModLoader; namespace CalamityMod.Items.DifficultyItems { - public class Death : ModItem + [LegacyName("Death")] + public class DeathModeItem : ModItem { public override void SetStaticDefaults() { SacrificeTotal = 1; - DisplayName.SetDefault("Death"); + DisplayName.SetDefault("Satanic Scepter of Death"); Tooltip.SetDefault("Enables/disables Death Mode, can only be used in Revengeance Mode.\n" + // Rev Mode line diff --git a/Items/DifficultyItems/Death.png b/Items/DifficultyItems/DeathModeItem.png similarity index 100% rename from Items/DifficultyItems/Death.png rename to Items/DifficultyItems/DeathModeItem.png diff --git a/Items/DifficultyItems/Malice.cs b/Items/DifficultyItems/MaliceModeItem.cs similarity index 93% rename from Items/DifficultyItems/Malice.cs rename to Items/DifficultyItems/MaliceModeItem.cs index 65427980b1..9184071777 100644 --- a/Items/DifficultyItems/Malice.cs +++ b/Items/DifficultyItems/MaliceModeItem.cs @@ -9,14 +9,15 @@ using Terraria.ModLoader; namespace CalamityMod.Items.DifficultyItems { - public class Malice : ModItem + [LegacyName("Malice")] + public class MaliceModeItem : ModItem { public int frameCounter = 0; public int frame = 0; public override void SetStaticDefaults() { SacrificeTotal = 1; - DisplayName.SetDefault("Malice"); + DisplayName.SetDefault("Tormented Mind of Malice"); Tooltip.SetDefault("Enables/disables Malice Mode, can only be used in Death Mode.\n" + // Overall description and warning lines @@ -52,14 +53,14 @@ namespace CalamityMod.Items.DifficultyItems public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale) { - Texture2D texture = ModContent.Request("CalamityMod/Items/DifficultyItems/Malice_Animated").Value; + Texture2D texture = ModContent.Request("CalamityMod/Items/DifficultyItems/MaliceModeItem_Animated").Value; spriteBatch.Draw(texture, position, Item.GetCurrentFrame(ref frame, ref frameCounter, 8, 8), Color.White, 0f, origin, scale, SpriteEffects.None, 0); return false; } public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI) { - Texture2D texture = ModContent.Request("CalamityMod/Items/DifficultyItems/Malice_Animated").Value; + Texture2D texture = ModContent.Request("CalamityMod/Items/DifficultyItems/MaliceModeItem_Animated").Value; spriteBatch.Draw(texture, Item.position - Main.screenPosition, Item.GetCurrentFrame(ref frame, ref frameCounter, 8, 8), lightColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0); return false; } diff --git a/Items/DifficultyItems/Malice.png b/Items/DifficultyItems/MaliceModeItem.png similarity index 100% rename from Items/DifficultyItems/Malice.png rename to Items/DifficultyItems/MaliceModeItem.png diff --git a/Items/DifficultyItems/Malice_Animated.png b/Items/DifficultyItems/MaliceModeItem_Animated.png similarity index 100% rename from Items/DifficultyItems/Malice_Animated.png rename to Items/DifficultyItems/MaliceModeItem_Animated.png diff --git a/Items/DifficultyItems/Revenge.cs b/Items/DifficultyItems/RevengeanceModeItem.cs similarity index 97% rename from Items/DifficultyItems/Revenge.cs rename to Items/DifficultyItems/RevengeanceModeItem.cs index 2b0c7d22da..41aa093d50 100644 --- a/Items/DifficultyItems/Revenge.cs +++ b/Items/DifficultyItems/RevengeanceModeItem.cs @@ -10,12 +10,13 @@ using System.Linq; namespace CalamityMod.Items.DifficultyItems { - public class Revenge : ModItem + [LegacyName("Revenge")] + public class RevengeanceModeItem : ModItem { public override void SetStaticDefaults() { SacrificeTotal = 1; - DisplayName.SetDefault("Revengeance"); + DisplayName.SetDefault("Blood Fountain of Revengeance"); Tooltip.SetDefault("Enables/disables Revengeance Mode, can only be used in Expert Mode.\n" + // Rage and Adrenaline lines diff --git a/Items/DifficultyItems/Revenge.png b/Items/DifficultyItems/RevengeanceModeItem.png similarity index 100% rename from Items/DifficultyItems/Revenge.png rename to Items/DifficultyItems/RevengeanceModeItem.png diff --git a/Items/TreasureBags/StarterBag.cs b/Items/TreasureBags/StarterBag.cs index 7763f4ecbf..2d2cc9b11c 100644 --- a/Items/TreasureBags/StarterBag.cs +++ b/Items/TreasureBags/StarterBag.cs @@ -55,9 +55,9 @@ namespace CalamityMod.Items.TreasureBags DropHelper.DropItem(s, player, ItemID.Chest, 3); // Difficulty items (Revengeance, Death and Malice don't drop in Normal) - DropHelper.DropItemCondition(s, player, ModContent.ItemType(), Main.expertMode); - DropHelper.DropItemCondition(s, player, ModContent.ItemType(), Main.expertMode); - DropHelper.DropItemCondition(s, player, ModContent.ItemType(), Main.expertMode); + DropHelper.DropItemCondition(s, player, ModContent.ItemType(), Main.expertMode); + DropHelper.DropItemCondition(s, player, ModContent.ItemType(), Main.expertMode); + DropHelper.DropItemCondition(s, player, ModContent.ItemType(), Main.expertMode); // The Lad DropHelper.DropItemCondition(s, player, ModContent.ItemType(), player.name == "Aleksh" || player.name == "Shark Lad");