From fbf916a098a6074642859d405c4d19c62fc6a0fb Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 11 Jun 2022 20:31:11 -0400 Subject: [PATCH] Finished the last batch of item renames --- Items/CalamityGlobalItemTooltip.cs | 2 +- .../Pets/{SparksSummon.cs => EnchantedButterfly.cs} | 3 ++- .../{SparksSummon.png => EnchantedButterfly.png} | Bin Items/Pets/{RotomRemote.cs => TheEtomer.cs} | 5 +++-- Items/Pets/{RotomRemote.png => TheEtomer.png} | Bin .../Pets/{RotomRemoteGlow.png => TheEtomerGlow.png} | Bin Items/TreasureBags/CalamitasBag.cs | 2 +- Items/TreasureBags/YharonBag.cs | 2 +- Items/Weapons/Magic/AetherfluxCannon.cs | 2 +- Items/Weapons/Magic/{Purge.cs => NanoPurge.cs} | 3 ++- Items/Weapons/Magic/{Purge.png => NanoPurge.png} | Bin .../{BlightedEyeStaff.cs => EntropysVigil.cs} | 3 ++- .../{BlightedEyeStaff.png => EntropysVigil.png} | Bin ...{LanternoftheSoul.cs => GuidelightofOblivion.cs} | 3 ++- ...anternoftheSoul.png => GuidelightofOblivion.png} | Bin .../Summon/{BensUmbrella.cs => TemporalUmbrella.cs} | 3 ++- .../{BensUmbrella.png => TemporalUmbrella.png} | Bin .../{AngryChickenStaff.cs => YharonsKindleStaff.cs} | 3 ++- ...AngryChickenStaff.png => YharonsKindleStaff.png} | Bin .../Typeless/{AeroDynamite.cs => Skynamite.cs} | 7 ++++--- .../Typeless/{AeroDynamite.png => Skynamite.png} | Bin ModSupport/WeakReferenceSupport.cs | 10 +++++----- NPCs/Calamitas/CalamitasRun3.cs | 2 +- NPCs/Crags/Scryllar.cs | 2 +- NPCs/Yharon/Yharon.cs | 2 +- Projectiles/Magic/NanoPurgeHoldout.cs | 2 +- Projectiles/Summon/SonOfYharon.cs | 2 +- Projectiles/Typeless/AeroExplosive.cs | 4 ++-- UI/CalamitasEnchantments/EnchantmentManager.cs | 2 +- 29 files changed, 36 insertions(+), 28 deletions(-) rename Items/Pets/{SparksSummon.cs => EnchantedButterfly.cs} (96%) rename Items/Pets/{SparksSummon.png => EnchantedButterfly.png} (100%) rename Items/Pets/{RotomRemote.cs => TheEtomer.cs} (93%) rename Items/Pets/{RotomRemote.png => TheEtomer.png} (100%) rename Items/Pets/{RotomRemoteGlow.png => TheEtomerGlow.png} (100%) rename Items/Weapons/Magic/{Purge.cs => NanoPurge.cs} (97%) rename Items/Weapons/Magic/{Purge.png => NanoPurge.png} (100%) rename Items/Weapons/Summon/{BlightedEyeStaff.cs => EntropysVigil.cs} (98%) rename Items/Weapons/Summon/{BlightedEyeStaff.png => EntropysVigil.png} (100%) rename Items/Weapons/Summon/{LanternoftheSoul.cs => GuidelightofOblivion.cs} (95%) rename Items/Weapons/Summon/{LanternoftheSoul.png => GuidelightofOblivion.png} (100%) rename Items/Weapons/Summon/{BensUmbrella.cs => TemporalUmbrella.cs} (97%) rename Items/Weapons/Summon/{BensUmbrella.png => TemporalUmbrella.png} (100%) rename Items/Weapons/Summon/{AngryChickenStaff.cs => YharonsKindleStaff.cs} (95%) rename Items/Weapons/Summon/{AngryChickenStaff.png => YharonsKindleStaff.png} (100%) rename Items/Weapons/Typeless/{AeroDynamite.cs => Skynamite.cs} (91%) rename Items/Weapons/Typeless/{AeroDynamite.png => Skynamite.png} (100%) diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index c000db41b7..32f507fc60 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -105,7 +105,7 @@ namespace CalamityMod.Items nameLine.OverrideColor = ShatteredCommunity.GetRarityColor(); if (item.type == ModContent.ItemType()) nameLine.OverrideColor = CalamityUtils.ColorSwap(new Color(255, 166, 0), new Color(25, 250, 25), 4f); //alternates between emerald green and amber (BanditHueh) - if (item.type == ModContent.ItemType()) + if (item.type == ModContent.ItemType()) nameLine.OverrideColor = CalamityUtils.ColorSwap(new Color(210, 0, 255), new Color(255, 248, 24), 4f); if (item.type == ModContent.ItemType()) nameLine.OverrideColor = CalamityUtils.ColorSwap(new Color(131, 239, 255), new Color(36, 55, 230), 4f); diff --git a/Items/Pets/SparksSummon.cs b/Items/Pets/EnchantedButterfly.cs similarity index 96% rename from Items/Pets/SparksSummon.cs rename to Items/Pets/EnchantedButterfly.cs index ca470e4ae9..037b9cd41c 100644 --- a/Items/Pets/SparksSummon.cs +++ b/Items/Pets/EnchantedButterfly.cs @@ -7,7 +7,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Pets { - public class SparksSummon : ModItem + [LegacyName("SparksSummon")] + public class EnchantedButterfly : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Pets/SparksSummon.png b/Items/Pets/EnchantedButterfly.png similarity index 100% rename from Items/Pets/SparksSummon.png rename to Items/Pets/EnchantedButterfly.png diff --git a/Items/Pets/RotomRemote.cs b/Items/Pets/TheEtomer.cs similarity index 93% rename from Items/Pets/RotomRemote.cs rename to Items/Pets/TheEtomer.cs index 0fd7bf9094..684eb97f65 100644 --- a/Items/Pets/RotomRemote.cs +++ b/Items/Pets/TheEtomer.cs @@ -10,7 +10,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Pets { - public class RotomRemote : ModItem + [LegacyName("RotomRemote")] + public class TheEtomer : ModItem { public override void SetStaticDefaults() { @@ -49,7 +50,7 @@ namespace CalamityMod.Items.Pets public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) { - Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request("CalamityMod/Items/Pets/RotomRemoteGlow").Value); + Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request("CalamityMod/Items/Pets/TheEtomerGlow").Value); } public override void AddRecipes() diff --git a/Items/Pets/RotomRemote.png b/Items/Pets/TheEtomer.png similarity index 100% rename from Items/Pets/RotomRemote.png rename to Items/Pets/TheEtomer.png diff --git a/Items/Pets/RotomRemoteGlow.png b/Items/Pets/TheEtomerGlow.png similarity index 100% rename from Items/Pets/RotomRemoteGlow.png rename to Items/Pets/TheEtomerGlow.png diff --git a/Items/TreasureBags/CalamitasBag.cs b/Items/TreasureBags/CalamitasBag.cs index 8e81b7b23f..2c4360274c 100644 --- a/Items/TreasureBags/CalamitasBag.cs +++ b/Items/TreasureBags/CalamitasBag.cs @@ -60,7 +60,7 @@ namespace CalamityMod.Items.TreasureBags DropHelper.WeightStack(w), DropHelper.WeightStack(w), DropHelper.WeightStack(w), - DropHelper.WeightStack(w), + DropHelper.WeightStack(w), DropHelper.WeightStack(w) ); diff --git a/Items/TreasureBags/YharonBag.cs b/Items/TreasureBags/YharonBag.cs index 286bc44215..64666997ef 100644 --- a/Items/TreasureBags/YharonBag.cs +++ b/Items/TreasureBags/YharonBag.cs @@ -61,7 +61,7 @@ namespace CalamityMod.Items.TreasureBags DropHelper.WeightStack(w), DropHelper.WeightStack(w), DropHelper.WeightStack(w), - DropHelper.WeightStack(w), // Yharon Kindle Staff + DropHelper.WeightStack(w), // Yharon Kindle Staff DropHelper.WeightStack(w), // Infernal Spear DropHelper.WeightStack(w) ); diff --git a/Items/Weapons/Magic/AetherfluxCannon.cs b/Items/Weapons/Magic/AetherfluxCannon.cs index 0459172ea2..237a8468ae 100644 --- a/Items/Weapons/Magic/AetherfluxCannon.cs +++ b/Items/Weapons/Magic/AetherfluxCannon.cs @@ -56,7 +56,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(). AddIngredient(5). AddIngredient(12). diff --git a/Items/Weapons/Magic/Purge.cs b/Items/Weapons/Magic/NanoPurge.cs similarity index 97% rename from Items/Weapons/Magic/Purge.cs rename to Items/Weapons/Magic/NanoPurge.cs index 05412f07ba..a4a12d3535 100644 --- a/Items/Weapons/Magic/Purge.cs +++ b/Items/Weapons/Magic/NanoPurge.cs @@ -7,7 +7,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Magic { - public class Purge : ModItem + [LegacyName("Purge")] + public class NanoPurge : ModItem { public const int UseTime = 20; diff --git a/Items/Weapons/Magic/Purge.png b/Items/Weapons/Magic/NanoPurge.png similarity index 100% rename from Items/Weapons/Magic/Purge.png rename to Items/Weapons/Magic/NanoPurge.png diff --git a/Items/Weapons/Summon/BlightedEyeStaff.cs b/Items/Weapons/Summon/EntropysVigil.cs similarity index 98% rename from Items/Weapons/Summon/BlightedEyeStaff.cs rename to Items/Weapons/Summon/EntropysVigil.cs index 5e9e0f6206..06957ed75e 100644 --- a/Items/Weapons/Summon/BlightedEyeStaff.cs +++ b/Items/Weapons/Summon/EntropysVigil.cs @@ -8,7 +8,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Summon { - public class BlightedEyeStaff : ModItem + [LegacyName("BlightedEyeStaff")] + public class EntropysVigil : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Weapons/Summon/BlightedEyeStaff.png b/Items/Weapons/Summon/EntropysVigil.png similarity index 100% rename from Items/Weapons/Summon/BlightedEyeStaff.png rename to Items/Weapons/Summon/EntropysVigil.png diff --git a/Items/Weapons/Summon/LanternoftheSoul.cs b/Items/Weapons/Summon/GuidelightofOblivion.cs similarity index 95% rename from Items/Weapons/Summon/LanternoftheSoul.cs rename to Items/Weapons/Summon/GuidelightofOblivion.cs index e1c1afe6f6..c609013450 100644 --- a/Items/Weapons/Summon/LanternoftheSoul.cs +++ b/Items/Weapons/Summon/GuidelightofOblivion.cs @@ -7,7 +7,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Summon { - public class LanternoftheSoul : ModItem + [LegacyName("LanternoftheSoul")] + public class GuidelightofOblivion : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Weapons/Summon/LanternoftheSoul.png b/Items/Weapons/Summon/GuidelightofOblivion.png similarity index 100% rename from Items/Weapons/Summon/LanternoftheSoul.png rename to Items/Weapons/Summon/GuidelightofOblivion.png diff --git a/Items/Weapons/Summon/BensUmbrella.cs b/Items/Weapons/Summon/TemporalUmbrella.cs similarity index 97% rename from Items/Weapons/Summon/BensUmbrella.cs rename to Items/Weapons/Summon/TemporalUmbrella.cs index 8aff0a2319..c9198d3169 100644 --- a/Items/Weapons/Summon/BensUmbrella.cs +++ b/Items/Weapons/Summon/TemporalUmbrella.cs @@ -9,7 +9,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Summon { - public class BensUmbrella : ModItem + [LegacyName("BensUmbrella")] + public class TemporalUmbrella : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Weapons/Summon/BensUmbrella.png b/Items/Weapons/Summon/TemporalUmbrella.png similarity index 100% rename from Items/Weapons/Summon/BensUmbrella.png rename to Items/Weapons/Summon/TemporalUmbrella.png diff --git a/Items/Weapons/Summon/AngryChickenStaff.cs b/Items/Weapons/Summon/YharonsKindleStaff.cs similarity index 95% rename from Items/Weapons/Summon/AngryChickenStaff.cs rename to Items/Weapons/Summon/YharonsKindleStaff.cs index 4e68a17a0d..46782cfa23 100644 --- a/Items/Weapons/Summon/AngryChickenStaff.cs +++ b/Items/Weapons/Summon/YharonsKindleStaff.cs @@ -8,7 +8,8 @@ using CalamityMod.Sounds; namespace CalamityMod.Items.Weapons.Summon { - public class AngryChickenStaff : ModItem + [LegacyName("AngryChickenStaff")] + public class YharonsKindleStaff : ModItem { public const int Damage = 340; public const float ReboundRamDamageFactor = 2f; diff --git a/Items/Weapons/Summon/AngryChickenStaff.png b/Items/Weapons/Summon/YharonsKindleStaff.png similarity index 100% rename from Items/Weapons/Summon/AngryChickenStaff.png rename to Items/Weapons/Summon/YharonsKindleStaff.png diff --git a/Items/Weapons/Typeless/AeroDynamite.cs b/Items/Weapons/Typeless/Skynamite.cs similarity index 91% rename from Items/Weapons/Typeless/AeroDynamite.cs rename to Items/Weapons/Typeless/Skynamite.cs index 0993700018..50abcaa7e8 100644 --- a/Items/Weapons/Typeless/AeroDynamite.cs +++ b/Items/Weapons/Typeless/Skynamite.cs @@ -6,10 +6,11 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Typeless { - public class AeroDynamite : ModItem + [LegacyName("AeroDynamite")] + public class Skynamite : ModItem { - public static int Damage = 250; - public static float Knockback = 10f; + public const int Damage = 250; + public const float Knockback = 10f; public override void SetStaticDefaults() { diff --git a/Items/Weapons/Typeless/AeroDynamite.png b/Items/Weapons/Typeless/Skynamite.png similarity index 100% rename from Items/Weapons/Typeless/AeroDynamite.png rename to Items/Weapons/Typeless/Skynamite.png diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index e243d0e9ba..957829e114 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -379,7 +379,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Calamitas", out float order); int type = NPCType(); int summon = ItemType(); - List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemID.BrokenHeroSword, ItemID.GreaterHealingPotion }; + List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemID.BrokenHeroSword, ItemID.GreaterHealingPotion }; List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use an [i:{summon}] at Night"; string despawn = CalamityUtils.ColorMessage("If you wanted a fight, you should've came more prepared.", new Color(0xFF, 0xA5, 0x00)); @@ -583,7 +583,7 @@ namespace CalamityMod BossDifficulty.TryGetValue("Yharon", out float order); int type = NPCType(); int summon = ItemType(); - List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), /*ItemType(), */ItemType() }; + List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), /*ItemType(), */ItemType() }; List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Jungle Biome"; string despawn = CalamityUtils.ColorMessage("Yharon found you too weak to stay near your gravestone.", new Color(0xFF, 0xA5, 0x00)); @@ -948,16 +948,16 @@ namespace CalamityMod RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); - RegisterSummon(ItemType(), BuffType(), ProjectileType()); + RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); - RegisterSummon(ItemType(), BuffType(), ProjectileType()); + RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); - sAssociation.Call("AddMinionInfo", ItemType(), BuffType(), new List() { ProjectileType(), ProjectileType(), ProjectileType()}, new List() {1-(1f/3f), 2f/3f, 2f/3f}); + sAssociation.Call("AddMinionInfo", ItemType(), BuffType(), new List() { ProjectileType(), ProjectileType(), ProjectileType()}, new List() {1-(1f/3f), 2f/3f, 2f/3f}); //Entropy's Vigil is a bruh moment sAssociation.Call("AddMinionInfo", ItemType(), BuffType(), new List() { ProjectileType(), ProjectileType()}); } diff --git a/NPCs/Calamitas/CalamitasRun3.cs b/NPCs/Calamitas/CalamitasRun3.cs index dd5fb16ea5..cf0fd8d50d 100644 --- a/NPCs/Calamitas/CalamitasRun3.cs +++ b/NPCs/Calamitas/CalamitasRun3.cs @@ -200,7 +200,7 @@ namespace CalamityMod.NPCs.Calamitas ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), - ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), }; normalOnly.Add(DropHelper.CalamityStyle(DropHelper.NormalWeaponDropRateFraction, items)); diff --git a/NPCs/Crags/Scryllar.cs b/NPCs/Crags/Scryllar.cs index 74c7c7482f..14b97399ee 100644 --- a/NPCs/Crags/Scryllar.cs +++ b/NPCs/Crags/Scryllar.cs @@ -262,7 +262,7 @@ namespace CalamityMod.NPCs.Crags npcLoot.AddIf(() => Main.hardMode, ModContent.ItemType(), 3); var postProvidence = npcLoot.DefineConditionalDropSet(() => DownedBossSystem.downedProvidence); postProvidence.Add(ModContent.ItemType(), 2); - postProvidence.Add(ModContent.ItemType(), 20); + postProvidence.Add(ModContent.ItemType(), 20); } public override void ModifyNPCLoot(NPCLoot npcLoot) => DefineScryllarLoot(npcLoot); diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index 9b27a4e7a5..dbb30443c8 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -2808,7 +2808,7 @@ namespace CalamityMod.NPCs.Yharon ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), - ModContent.ItemType(), // Yharon Kindle Staff + ModContent.ItemType(), // Yharon Kindle Staff ModContent.ItemType(), // Infernal Spear ModContent.ItemType(), }; diff --git a/Projectiles/Magic/NanoPurgeHoldout.cs b/Projectiles/Magic/NanoPurgeHoldout.cs index d4ec2c99e8..9a1f7e1532 100644 --- a/Projectiles/Magic/NanoPurgeHoldout.cs +++ b/Projectiles/Magic/NanoPurgeHoldout.cs @@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Magic Projectile.damage = (int)Owner.GetTotalDamage().ApplyTo(weaponItem?.damage ?? 0); // Get the original weapon's use time. - int itemUseTime = weaponItem?.useAnimation ?? Purge.UseTime; + int itemUseTime = weaponItem?.useAnimation ?? NanoPurge.UseTime; // Update time. DeployedFrames += 1f; diff --git a/Projectiles/Summon/SonOfYharon.cs b/Projectiles/Summon/SonOfYharon.cs index 0fc7c23a68..072269714d 100644 --- a/Projectiles/Summon/SonOfYharon.cs +++ b/Projectiles/Summon/SonOfYharon.cs @@ -228,7 +228,7 @@ namespace CalamityMod.Projectiles.Summon { // Do much more damage during a ram than otherwise. if (RamCountdown > 0f) - damage = (int)(damage * AngryChickenStaff.ReboundRamDamageFactor); + damage = (int)(damage * YharonsKindleStaff.ReboundRamDamageFactor); } public override bool? CanDamage() => Projectile.localAI[0] > 1f; diff --git a/Projectiles/Typeless/AeroExplosive.cs b/Projectiles/Typeless/AeroExplosive.cs index cc1946e9d0..ec5467fa2c 100644 --- a/Projectiles/Typeless/AeroExplosive.cs +++ b/Projectiles/Typeless/AeroExplosive.cs @@ -34,8 +34,8 @@ namespace CalamityMod.Projectiles.Typeless { if (Projectile.timeLeft < 2) { - Projectile.damage = AeroDynamite.Damage; // Like most explosives, not boosted by damage boosts - Projectile.knockBack = AeroDynamite.Knockback; + Projectile.damage = Skynamite.Damage; // Like most explosives, not boosted by damage boosts + Projectile.knockBack = Skynamite.Knockback; } if (Projectile.timeLeft % 4 == 0 && Projectile.timeLeft < 270) diff --git a/UI/CalamitasEnchantments/EnchantmentManager.cs b/UI/CalamitasEnchantments/EnchantmentManager.cs index ed74df9402..2871dc1ac5 100644 --- a/UI/CalamitasEnchantments/EnchantmentManager.cs +++ b/UI/CalamitasEnchantments/EnchantmentManager.cs @@ -310,7 +310,7 @@ namespace CalamityMod.UI.CalamitasEnchants ItemUpgradeRelationship = new Dictionary() { [ModContent.ItemType()] = ModContent.ItemType(), - [ModContent.ItemType()] = ModContent.ItemType(), + [ModContent.ItemType()] = ModContent.ItemType(), [ModContent.ItemType()] = ModContent.ItemType(), [ModContent.ItemType()] = ModContent.ItemType(), [ModContent.ItemType()] = ModContent.ItemType()