From 6b4c55c2f648b7948244de68f86ccc1373bf526c Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Fri, 3 Jun 2022 13:49:50 -0400 Subject: [PATCH] Tested a few renames with LegacyName. Item Frames, Weapon Racks and Mannequins are all stable. 1 - Renamed AtaxiaArmor to HydrothermicArmor. 2 - Renamed StardustStaff to EidolonStaff. 3 - Renamed MepheticSprayer to BlightSpewer. --- CalPlayer/CalamityPlayerDrawEffects.cs | 2 +- Items/Accessories/Wings/HadalMantle.cs | 2 +- Items/Armor/AtaxiaHeadgear.cs | 2 +- Items/Armor/AtaxiaHelm.cs | 2 +- Items/Armor/AtaxiaHelmet.cs | 2 +- Items/Armor/AtaxiaHood.cs | 2 +- Items/Armor/AtaxiaMask.cs | 2 +- .../Armor/{AtaxiaArmor.cs => HydrothermicArmor.cs} | 3 ++- .../{AtaxiaArmor.png => HydrothermicArmor.png} | Bin ...xiaArmor_Body.png => HydrothermicArmor_Body.png} | Bin Items/TreasureBags/PlaguebringerGoliathBag.cs | 2 +- .../Magic/{StardustStaff.cs => EidolonStaff.cs} | 3 ++- .../Magic/{StardustStaff.png => EidolonStaff.png} | Bin .../Ranged/{MepheticSprayer.cs => BlightSpewer.cs} | 3 ++- .../{MepheticSprayer.png => BlightSpewer.png} | Bin Items/Weapons/Ranged/ElementalEruption.cs | 2 +- ModSupport/WeakReferenceSupport.cs | 2 +- NPCs/Abyss/EidolonWyrmHead.cs | 2 +- NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs | 2 +- 19 files changed, 18 insertions(+), 15 deletions(-) rename Items/Armor/{AtaxiaArmor.cs => HydrothermicArmor.cs} (94%) rename Items/Armor/{AtaxiaArmor.png => HydrothermicArmor.png} (100%) rename Items/Armor/{AtaxiaArmor_Body.png => HydrothermicArmor_Body.png} (100%) rename Items/Weapons/Magic/{StardustStaff.cs => EidolonStaff.cs} (98%) rename Items/Weapons/Magic/{StardustStaff.png => EidolonStaff.png} (100%) rename Items/Weapons/Ranged/{MepheticSprayer.cs => BlightSpewer.cs} (93%) rename Items/Weapons/Ranged/{MepheticSprayer.png => BlightSpewer.png} (100%) diff --git a/CalPlayer/CalamityPlayerDrawEffects.cs b/CalPlayer/CalamityPlayerDrawEffects.cs index 5b8c937ee5..7d1caf1c15 100644 --- a/CalPlayer/CalamityPlayerDrawEffects.cs +++ b/CalPlayer/CalamityPlayerDrawEffects.cs @@ -868,7 +868,7 @@ namespace CalamityMod.CalPlayer List tankItems = new List() { ModContent.ItemType(), - ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), diff --git a/Items/Accessories/Wings/HadalMantle.cs b/Items/Accessories/Wings/HadalMantle.cs index 63738c735c..7b8e37c3be 100644 --- a/Items/Accessories/Wings/HadalMantle.cs +++ b/Items/Accessories/Wings/HadalMantle.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Accessories.Wings if ((player.armor[0].type == ModContent.ItemType() || player.armor[0].type == ModContent.ItemType() || player.armor[0].type == ModContent.ItemType() || player.armor[0].type == ModContent.ItemType() || player.armor[0].type == ModContent.ItemType()) && - player.armor[1].type == ModContent.ItemType() && player.armor[2].type == ModContent.ItemType()) + player.armor[1].type == ModContent.ItemType() && player.armor[2].type == ModContent.ItemType()) { player.GetDamage() += 0.05f; } diff --git a/Items/Armor/AtaxiaHeadgear.cs b/Items/Armor/AtaxiaHeadgear.cs index 074f53ba72..915e2ba18c 100644 --- a/Items/Armor/AtaxiaHeadgear.cs +++ b/Items/Armor/AtaxiaHeadgear.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AtaxiaHelm.cs b/Items/Armor/AtaxiaHelm.cs index 4f170a7003..8077b4873f 100644 --- a/Items/Armor/AtaxiaHelm.cs +++ b/Items/Armor/AtaxiaHelm.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AtaxiaHelmet.cs b/Items/Armor/AtaxiaHelmet.cs index 5987f852bd..a33c37f12d 100644 --- a/Items/Armor/AtaxiaHelmet.cs +++ b/Items/Armor/AtaxiaHelmet.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AtaxiaHood.cs b/Items/Armor/AtaxiaHood.cs index e7ccbd7f2c..f12bfb6ff4 100644 --- a/Items/Armor/AtaxiaHood.cs +++ b/Items/Armor/AtaxiaHood.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AtaxiaMask.cs b/Items/Armor/AtaxiaMask.cs index 2095d45546..11bedc9db0 100644 --- a/Items/Armor/AtaxiaMask.cs +++ b/Items/Armor/AtaxiaMask.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Armor public override bool IsArmorSet(Item head, Item body, Item legs) { - return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); + return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } public override void ArmorSetShadows(Player player) diff --git a/Items/Armor/AtaxiaArmor.cs b/Items/Armor/HydrothermicArmor.cs similarity index 94% rename from Items/Armor/AtaxiaArmor.cs rename to Items/Armor/HydrothermicArmor.cs index 48742ab5d2..c150c03481 100644 --- a/Items/Armor/AtaxiaArmor.cs +++ b/Items/Armor/HydrothermicArmor.cs @@ -6,7 +6,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Body)] - public class AtaxiaArmor : ModItem + [LegacyName("AtaxiaArmor")] + public class HydrothermicArmor : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Armor/AtaxiaArmor.png b/Items/Armor/HydrothermicArmor.png similarity index 100% rename from Items/Armor/AtaxiaArmor.png rename to Items/Armor/HydrothermicArmor.png diff --git a/Items/Armor/AtaxiaArmor_Body.png b/Items/Armor/HydrothermicArmor_Body.png similarity index 100% rename from Items/Armor/AtaxiaArmor_Body.png rename to Items/Armor/HydrothermicArmor_Body.png diff --git a/Items/TreasureBags/PlaguebringerGoliathBag.cs b/Items/TreasureBags/PlaguebringerGoliathBag.cs index 47ef2401c0..59dbd78990 100644 --- a/Items/TreasureBags/PlaguebringerGoliathBag.cs +++ b/Items/TreasureBags/PlaguebringerGoliathBag.cs @@ -65,7 +65,7 @@ namespace CalamityMod.Items.TreasureBags DropHelper.WeightStack(w), DropHelper.WeightStack(w), DropHelper.WeightStack(w), - DropHelper.WeightStack(w), // Blight Spewer + DropHelper.WeightStack(w), // Blight Spewer DropHelper.WeightStack(w), DropHelper.WeightStack(w), DropHelper.WeightStack(w), diff --git a/Items/Weapons/Magic/StardustStaff.cs b/Items/Weapons/Magic/EidolonStaff.cs similarity index 98% rename from Items/Weapons/Magic/StardustStaff.cs rename to Items/Weapons/Magic/EidolonStaff.cs index 304ed3b168..da3fb6d1e2 100644 --- a/Items/Weapons/Magic/StardustStaff.cs +++ b/Items/Weapons/Magic/EidolonStaff.cs @@ -8,7 +8,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Magic { - public class StardustStaff : ModItem + [LegacyName("StardustStaff")] + public class EidolonStaff : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Weapons/Magic/StardustStaff.png b/Items/Weapons/Magic/EidolonStaff.png similarity index 100% rename from Items/Weapons/Magic/StardustStaff.png rename to Items/Weapons/Magic/EidolonStaff.png diff --git a/Items/Weapons/Ranged/MepheticSprayer.cs b/Items/Weapons/Ranged/BlightSpewer.cs similarity index 93% rename from Items/Weapons/Ranged/MepheticSprayer.cs rename to Items/Weapons/Ranged/BlightSpewer.cs index e5b1a4c732..4f50043171 100644 --- a/Items/Weapons/Ranged/MepheticSprayer.cs +++ b/Items/Weapons/Ranged/BlightSpewer.cs @@ -6,7 +6,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged { - public class MepheticSprayer : ModItem + [LegacyName("MepheticSprayer")] + public class BlightSpewer : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Weapons/Ranged/MepheticSprayer.png b/Items/Weapons/Ranged/BlightSpewer.png similarity index 100% rename from Items/Weapons/Ranged/MepheticSprayer.png rename to Items/Weapons/Ranged/BlightSpewer.png diff --git a/Items/Weapons/Ranged/ElementalEruption.cs b/Items/Weapons/Ranged/ElementalEruption.cs index 68dee3591d..848d2bf240 100644 --- a/Items/Weapons/Ranged/ElementalEruption.cs +++ b/Items/Weapons/Ranged/ElementalEruption.cs @@ -59,7 +59,7 @@ namespace CalamityMod.Items.Weapons.Ranged CreateRecipe(). AddIngredient(). AddIngredient(). - AddIngredient(). + AddIngredient(). AddIngredient(). AddIngredient(5). AddIngredient(ItemID.LunarBar, 5). diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 544e749ab5..6f1cb3c2dc 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -412,7 +412,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("PlaguebringerGoliath", out float order); int type = NPCType(); int summon = ItemType(); - List loot = new List() { ItemType(), ItemType(), ItemType(), ItemID.Stinger, ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemID.GreaterHealingPotion }; + List loot = new List() { ItemType(), ItemType(), ItemType(), ItemID.Stinger, ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemID.GreaterHealingPotion }; List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use an [i:{summon}] in the Jungle Biome"; string despawn = CalamityUtils.ColorMessage("HOSTILE SPECIMENS TERMINATED. INITIATE RECALL TO HOME BASE.", new Color(0x00, 0xFF, 0x00)); diff --git a/NPCs/Abyss/EidolonWyrmHead.cs b/NPCs/Abyss/EidolonWyrmHead.cs index 80842bd210..552fac7b53 100644 --- a/NPCs/Abyss/EidolonWyrmHead.cs +++ b/NPCs/Abyss/EidolonWyrmHead.cs @@ -511,7 +511,7 @@ namespace CalamityMod.NPCs.Abyss aewMinionCondition.Add(postPolter); postPolter.Add(ModContent.ItemType(), 3); postPolter.Add(ModContent.ItemType(), 3); - postPolter.Add(ModContent.ItemType(), 3); + postPolter.Add(ModContent.ItemType(), 3); // Post-Clone: 6-8 Lumenyl (8-11 on Expert) LeadingConditionRule postClone = new(DropHelper.If(() => DownedBossSystem.downedCalamitas)); diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs index 0a98e0b274..43f294a884 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs @@ -1232,7 +1232,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), - ModContent.ItemType(), // Blight Spewer + ModContent.ItemType(), // Blight Spewer ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(),