From 288f0cfeaf233008ad2c29b21ab93ed640b11b13 Mon Sep 17 00:00:00 2001 From: Merkalto Date: Sat, 11 Jun 2022 19:11:11 -0500 Subject: [PATCH 1/3] removed unnecssary calls --- Items/Accessories/Wings/HadarianWings.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Items/Accessories/Wings/HadarianWings.cs b/Items/Accessories/Wings/HadarianWings.cs index 3b7cac7ad6..218bd6c86d 100644 --- a/Items/Accessories/Wings/HadarianWings.cs +++ b/Items/Accessories/Wings/HadarianWings.cs @@ -1,6 +1,4 @@ using CalamityMod.Dusts; -using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; From eb0af66e175dafff40bc3022e8b820e949f5f9bf Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 11 Jun 2022 20:16:11 -0400 Subject: [PATCH 2/3] Rogue weapons renamed --- CalPlayer/CalamityPlayerDrawEffects.cs | 2 +- CalPlayer/CalamityPlayerMiscEffects.cs | 2 +- CalamityLists.cs | 12 +-- Items/CalamityGlobalItemTooltip.cs | 2 +- Items/Weapons/Melee/CosmicShiv.cs | 2 +- ...lementalShortsword.cs => ElementalShiv.cs} | 3 +- ...mentalShortsword.png => ElementalShiv.png} | Bin .../Ranged/{AMR.cs => AntiMaterielRifle.cs} | 3 +- .../Ranged/{AMR.png => AntiMaterielRifle.png} | Bin Items/Weapons/Ranged/AstrealDefeat.cs | 2 +- Items/Weapons/Ranged/ChargedDartRifle.cs | 94 ------------------ Items/Weapons/Ranged/ChargedDartRifle.png | Bin 730 -> 0 bytes ...rueConferenceCall.cs => ConferenceCall.cs} | 3 +- ...eConferenceCall.png => ConferenceCall.png} | Bin ...bowofTurmoil.cs => ContinentalGreatbow.cs} | 3 +- ...wofTurmoil.png => ContinentalGreatbow.png} | Bin .../Ranged/{Interfacer.cs => Disseminator.cs} | 5 +- .../{Interfacer.png => Disseminator.png} | Bin Items/Weapons/Ranged/ElementalBlaster.cs | 2 +- .../Ranged/{TheEmpyrean.cs => GodsBellows.cs} | 3 +- .../{TheEmpyrean.png => GodsBellows.png} | Bin Items/Weapons/Ranged/Karasawa.cs | 1 + ...MarniteRifleSpear.cs => MarniteBayonet.cs} | 4 +- ...rniteRifleSpear.png => MarniteBayonet.png} | Bin ...elineGreatbow.cs => NettlevineGreatbow.cs} | 3 +- ...ineGreatbow.png => NettlevineGreatbow.png} | Bin ...pper.cs => PridefulHuntersPlanarRipper.cs} | 3 +- ...er.png => PridefulHuntersPlanarRipper.png} | Bin Items/Weapons/Ranged/Shredder.cs | 3 +- .../{PaintballBlaster.cs => SpeedBlaster.cs} | 3 +- ...{PaintballBlaster.png => SpeedBlaster.png} | Bin .../Ranged/{StarfleetMK2.cs => Starmada.cs} | 3 +- .../Ranged/{StarfleetMK2.png => Starmada.png} | Bin Items/Weapons/Ranged/TyrannysEnd.cs | 2 +- Items/Weapons/Ranged/UniversalGenesis.cs | 4 +- .../Ranged/{Megafleet.cs => Voidragon.cs} | 6 +- .../Ranged/{Megafleet.png => Voidragon.png} | Bin Items/Weapons/Rogue/Celestus.cs | 2 +- .../{AccretionDisk.cs => ElementalDisk.cs} | 5 +- .../{AccretionDisk.png => ElementalDisk.png} | Bin ...blackReaperRogue.cs => NanoblackReaper.cs} | 4 +- ...ackReaperRogue.png => NanoblackReaper.png} | Bin .../{XerocPitchfork.cs => ShardofAntumbra.cs} | 3 +- ...XerocPitchfork.png => ShardofAntumbra.png} | Bin .../{FlameScythe.cs => SubductionSlicer.cs} | 3 +- .../{FlameScythe.png => SubductionSlicer.png} | Bin .../Rogue/{DuneHopper.cs => WaveSkipper.cs} | 3 +- .../Rogue/{DuneHopper.png => WaveSkipper.png} | Bin Projectiles/Rogue/AntumbraShardProjectile.cs | 2 +- Projectiles/Rogue/NanoblackMain.cs | 2 +- 50 files changed, 61 insertions(+), 133 deletions(-) rename Items/Weapons/Melee/{ElementalShortsword.cs => ElementalShiv.cs} (97%) rename Items/Weapons/Melee/{ElementalShortsword.png => ElementalShiv.png} (100%) rename Items/Weapons/Ranged/{AMR.cs => AntiMaterielRifle.cs} (97%) rename Items/Weapons/Ranged/{AMR.png => AntiMaterielRifle.png} (100%) delete mode 100644 Items/Weapons/Ranged/ChargedDartRifle.cs delete mode 100644 Items/Weapons/Ranged/ChargedDartRifle.png rename Items/Weapons/Ranged/{TrueConferenceCall.cs => ConferenceCall.cs} (98%) rename Items/Weapons/Ranged/{TrueConferenceCall.png => ConferenceCall.png} (100%) rename Items/Weapons/Ranged/{GreatbowofTurmoil.cs => ContinentalGreatbow.cs} (97%) rename Items/Weapons/Ranged/{GreatbowofTurmoil.png => ContinentalGreatbow.png} (100%) rename Items/Weapons/Ranged/{Interfacer.cs => Disseminator.cs} (98%) rename Items/Weapons/Ranged/{Interfacer.png => Disseminator.png} (100%) rename Items/Weapons/Ranged/{TheEmpyrean.cs => GodsBellows.cs} (95%) rename Items/Weapons/Ranged/{TheEmpyrean.png => GodsBellows.png} (100%) rename Items/Weapons/Ranged/{MarniteRifleSpear.cs => MarniteBayonet.cs} (89%) rename Items/Weapons/Ranged/{MarniteRifleSpear.png => MarniteBayonet.png} (100%) rename Items/Weapons/Ranged/{NettlelineGreatbow.cs => NettlevineGreatbow.cs} (97%) rename Items/Weapons/Ranged/{NettlelineGreatbow.png => NettlevineGreatbow.png} (100%) rename Items/Weapons/Ranged/{PrideHuntersPlanarRipper.cs => PridefulHuntersPlanarRipper.cs} (97%) rename Items/Weapons/Ranged/{PrideHuntersPlanarRipper.png => PridefulHuntersPlanarRipper.png} (100%) rename Items/Weapons/Ranged/{PaintballBlaster.cs => SpeedBlaster.cs} (97%) rename Items/Weapons/Ranged/{PaintballBlaster.png => SpeedBlaster.png} (100%) rename Items/Weapons/Ranged/{StarfleetMK2.cs => Starmada.cs} (97%) rename Items/Weapons/Ranged/{StarfleetMK2.png => Starmada.png} (100%) rename Items/Weapons/Ranged/{Megafleet.cs => Voidragon.cs} (91%) rename Items/Weapons/Ranged/{Megafleet.png => Voidragon.png} (100%) rename Items/Weapons/Rogue/{AccretionDisk.cs => ElementalDisk.cs} (95%) rename Items/Weapons/Rogue/{AccretionDisk.png => ElementalDisk.png} (100%) rename Items/Weapons/Rogue/{NanoblackReaperRogue.cs => NanoblackReaper.cs} (95%) rename Items/Weapons/Rogue/{NanoblackReaperRogue.png => NanoblackReaper.png} (100%) rename Items/Weapons/Rogue/{XerocPitchfork.cs => ShardofAntumbra.cs} (96%) rename Items/Weapons/Rogue/{XerocPitchfork.png => ShardofAntumbra.png} (100%) rename Items/Weapons/Rogue/{FlameScythe.cs => SubductionSlicer.cs} (96%) rename Items/Weapons/Rogue/{FlameScythe.png => SubductionSlicer.png} (100%) rename Items/Weapons/Rogue/{DuneHopper.cs => WaveSkipper.cs} (97%) rename Items/Weapons/Rogue/{DuneHopper.png => WaveSkipper.png} (100%) diff --git a/CalPlayer/CalamityPlayerDrawEffects.cs b/CalPlayer/CalamityPlayerDrawEffects.cs index 57b9f7b469..f7fcc1b45e 100644 --- a/CalPlayer/CalamityPlayerDrawEffects.cs +++ b/CalPlayer/CalamityPlayerDrawEffects.cs @@ -620,7 +620,7 @@ namespace CalamityMod.CalPlayer ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), - ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index d7000ed1d7..5f83880e17 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -2657,7 +2657,7 @@ namespace CalamityMod.CalPlayer if (planarSpeedBoost != 0) { - if (Player.ActiveItem().type != ModContent.ItemType()) + if (Player.ActiveItem().type != ModContent.ItemType()) planarSpeedBoost = 0; } if (brimlashBusterBoost) diff --git a/CalamityLists.cs b/CalamityLists.cs index 063021dc6d..af88671d63 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -1326,7 +1326,7 @@ namespace CalamityMod scopedWeaponList = new List() { - ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), @@ -1340,12 +1340,12 @@ namespace CalamityMod ItemType(), ItemType(), ItemType(), - ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), - ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), @@ -1353,7 +1353,7 @@ namespace CalamityMod ItemType(), ItemType(), ItemType(), - ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), @@ -1411,7 +1411,7 @@ namespace CalamityMod { ItemType(), ItemType(), - ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), @@ -1421,7 +1421,7 @@ namespace CalamityMod ItemType(), ItemType(), ItemType(), - ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index b181061302..c000db41b7 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -99,7 +99,7 @@ namespace CalamityMod.Items nameLine.OverrideColor = new Color(0, 0, 255); if (item.type == ModContent.ItemType()) nameLine.OverrideColor = TheDanceofLight.GetSyncedLightColor(); - if (item.type == ModContent.ItemType()) + if (item.type == ModContent.ItemType()) nameLine.OverrideColor = new Color(0.34f, 0.34f + 0.66f * Main.DiscoG / 255f, 0.34f + 0.5f * Main.DiscoG / 255f); if (item.type == ModContent.ItemType()) nameLine.OverrideColor = ShatteredCommunity.GetRarityColor(); diff --git a/Items/Weapons/Melee/CosmicShiv.cs b/Items/Weapons/Melee/CosmicShiv.cs index dc02e73152..0d44135e1e 100644 --- a/Items/Weapons/Melee/CosmicShiv.cs +++ b/Items/Weapons/Melee/CosmicShiv.cs @@ -89,7 +89,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(8). AddTile(ModContent.TileType()). Register(); diff --git a/Items/Weapons/Melee/ElementalShortsword.cs b/Items/Weapons/Melee/ElementalShiv.cs similarity index 97% rename from Items/Weapons/Melee/ElementalShortsword.cs rename to Items/Weapons/Melee/ElementalShiv.cs index f6ad03f521..4043c95682 100644 --- a/Items/Weapons/Melee/ElementalShortsword.cs +++ b/Items/Weapons/Melee/ElementalShiv.cs @@ -9,7 +9,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Melee { - public class ElementalShortsword : ModItem + [LegacyName("ElementalShortsword")] + public class ElementalShiv : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Weapons/Melee/ElementalShortsword.png b/Items/Weapons/Melee/ElementalShiv.png similarity index 100% rename from Items/Weapons/Melee/ElementalShortsword.png rename to Items/Weapons/Melee/ElementalShiv.png diff --git a/Items/Weapons/Ranged/AMR.cs b/Items/Weapons/Ranged/AntiMaterielRifle.cs similarity index 97% rename from Items/Weapons/Ranged/AMR.cs rename to Items/Weapons/Ranged/AntiMaterielRifle.cs index fa5a3805b8..1d4e7e597b 100644 --- a/Items/Weapons/Ranged/AMR.cs +++ b/Items/Weapons/Ranged/AntiMaterielRifle.cs @@ -10,7 +10,8 @@ using CalamityMod.Sounds; namespace CalamityMod.Items.Weapons.Ranged { - public class AMR : ModItem + [LegacyName("AMR")] + public class AntiMaterielRifle : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Weapons/Ranged/AMR.png b/Items/Weapons/Ranged/AntiMaterielRifle.png similarity index 100% rename from Items/Weapons/Ranged/AMR.png rename to Items/Weapons/Ranged/AntiMaterielRifle.png diff --git a/Items/Weapons/Ranged/AstrealDefeat.cs b/Items/Weapons/Ranged/AstrealDefeat.cs index 1e2ef3b728..e5276cf1e7 100644 --- a/Items/Weapons/Ranged/AstrealDefeat.cs +++ b/Items/Weapons/Ranged/AstrealDefeat.cs @@ -62,7 +62,7 @@ namespace CalamityMod.Items.Weapons.Ranged CreateRecipe(). AddIngredient(ItemID.SpiritFlame). AddIngredient(ItemID.ShadowFlameBow). - AddIngredient(). + AddIngredient(). AddIngredient(). AddIngredient(). AddIngredient(5). diff --git a/Items/Weapons/Ranged/ChargedDartRifle.cs b/Items/Weapons/Ranged/ChargedDartRifle.cs deleted file mode 100644 index 977448c072..0000000000 --- a/Items/Weapons/Ranged/ChargedDartRifle.cs +++ /dev/null @@ -1,94 +0,0 @@ -using Terraria.DataStructures; -using CalamityMod.Items.Materials; -using CalamityMod.Projectiles.Ranged; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Sounds; - -namespace CalamityMod.Items.Weapons.Ranged -{ - public class ChargedDartRifle : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Charged Dart Blaster"); - Tooltip.SetDefault("Fires a shotgun spread of darts and a splitting energy blast\n" + - "Right click to fire a more powerful exploding energy blast that bounces"); - SacrificeTotal = 1; - ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true; - } - - public override void SetDefaults() - { - Item.damage = 100; - Item.DamageType = DamageClass.Ranged; - Item.width = 74; - Item.height = 40; - Item.useTime = 25; - Item.useAnimation = 25; - Item.useStyle = ItemUseStyleID.Shoot; - Item.noMelee = true; - Item.knockBack = 7f; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; - Item.rare = ItemRarityID.Red; - Item.UseSound = CommonCalamitySounds.LaserCannonSound; - Item.autoReuse = true; - Item.shootSpeed = 22f; - Item.shoot = ModContent.ProjectileType(); - Item.useAmmo = AmmoID.Dart; - Item.Calamity().canFirePointBlankShots = true; - } - - public override Vector2? HoldoutOffset() - { - return new Vector2(-5, 0); - } - - public override bool AltFunctionUse(Player player) - { - return true; - } - - public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) - { - if (player.altFunctionUse == 2) - { - Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, ModContent.ProjectileType(), (int)((double)damage * 2), knockback, player.whoAmI, 0f, 0f); - return false; - } - else - { - int num6 = Main.rand.Next(2, 5); - for (int index = 0; index < num6; ++index) - { - float SpeedX = velocity.X + (float)Main.rand.Next(-40, 41) * 0.05f; - float SpeedY = velocity.Y + (float)Main.rand.Next(-40, 41) * 0.05f; - int projectile = Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, damage / 2, knockback, player.whoAmI, 0f, 0f); - } - Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0f, 0f); - return false; - } - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(ItemID.DartRifle). - AddIngredient(ItemID.MartianConduitPlating, 25). - AddIngredient(3). - AddIngredient(ItemID.FragmentVortex, 5). - AddTile(TileID.MythrilAnvil). - Register(); - - CreateRecipe(). - AddIngredient(ItemID.DartPistol). - AddIngredient(ItemID.MartianConduitPlating, 25). - AddIngredient(3). - AddIngredient(ItemID.FragmentVortex, 5). - AddTile(TileID.MythrilAnvil). - Register(); - } - } -} diff --git a/Items/Weapons/Ranged/ChargedDartRifle.png b/Items/Weapons/Ranged/ChargedDartRifle.png deleted file mode 100644 index 7dd38ace60dea1bc2d86c743ae00213bc31dd771..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 730 zcmV<00ww*4P)Px%lu1NER9J=Wm`zU;K^TCaHBIvdN z1LJ|47d0MD3>?+OXo%5+3S0z5&}xMOrN&qf?Ynf|-R*X<#wN~lna=c`+3C(R@6OhV zCwfa%ab#c+KU!Ma9Dri6V6?C2zXOoZua(P;?c!iwnMYIuY*zVENPHt|qWm*aYBc|8W2^2l@f{ z@O~bEH}kJ0v=k*?%&22r18a!FksK0aNL0kAAhw4)8*&|eJsJ1M$6nvK#OfRX>!|?% zp53_tKv#0F1CUN-0BeW`H;0@Yxng|r^u_I(9d*3Rh<|g~cv0D{8B!P0sf>{utsx3G zhg`q=*!W`V>iLFTVDi=j-}Xo8RLy>8R#qD_pD*7&1K#u1sflr;{$zRvu!eYu^&LCm z0NlJZW|*?CCk?>6*e?J&?%xAo^TNft>W6=t_d4ndPgTmH;W48WmKGQ48b^M|+qqXp zyRHuojXGcr@!-T0ZgwsKOpKRTvfdR4qi_Eq-}aZYWfNuPbv+E3pNtAT#2f z$?~4B{1X?n_Zx*ZL{XhXYCfMexm?z_T~3B#gcu{|3vEcVm?2n06p^f`CM@^p^GVQ2 zQuxoFHS|_$Dz!u!bmp14_CZDARfTNdN!< M07*qoM6N<$f{cny+5i9m diff --git a/Items/Weapons/Ranged/TrueConferenceCall.cs b/Items/Weapons/Ranged/ConferenceCall.cs similarity index 98% rename from Items/Weapons/Ranged/TrueConferenceCall.cs rename to Items/Weapons/Ranged/ConferenceCall.cs index 6b75cfbf8c..4d109aa9aa 100644 --- a/Items/Weapons/Ranged/TrueConferenceCall.cs +++ b/Items/Weapons/Ranged/ConferenceCall.cs @@ -6,7 +6,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged { - public class TrueConferenceCall : ModItem + [LegacyName("TrueConferenceCall", "ConclaveCrossfire")] + public class ConferenceCall : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Weapons/Ranged/TrueConferenceCall.png b/Items/Weapons/Ranged/ConferenceCall.png similarity index 100% rename from Items/Weapons/Ranged/TrueConferenceCall.png rename to Items/Weapons/Ranged/ConferenceCall.png diff --git a/Items/Weapons/Ranged/GreatbowofTurmoil.cs b/Items/Weapons/Ranged/ContinentalGreatbow.cs similarity index 97% rename from Items/Weapons/Ranged/GreatbowofTurmoil.cs rename to Items/Weapons/Ranged/ContinentalGreatbow.cs index 161c874615..4a3b219bc4 100644 --- a/Items/Weapons/Ranged/GreatbowofTurmoil.cs +++ b/Items/Weapons/Ranged/ContinentalGreatbow.cs @@ -7,7 +7,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged { - public class GreatbowofTurmoil : ModItem + [LegacyName("GreatbowofTurmoil")] + public class ContinentalGreatbow : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Weapons/Ranged/GreatbowofTurmoil.png b/Items/Weapons/Ranged/ContinentalGreatbow.png similarity index 100% rename from Items/Weapons/Ranged/GreatbowofTurmoil.png rename to Items/Weapons/Ranged/ContinentalGreatbow.png diff --git a/Items/Weapons/Ranged/Interfacer.cs b/Items/Weapons/Ranged/Disseminator.cs similarity index 98% rename from Items/Weapons/Ranged/Interfacer.cs rename to Items/Weapons/Ranged/Disseminator.cs index 83be8c6714..1ad4f466f4 100644 --- a/Items/Weapons/Ranged/Interfacer.cs +++ b/Items/Weapons/Ranged/Disseminator.cs @@ -6,7 +6,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged { - public class Interfacer : ModItem + [LegacyName("Interfacer")] + public class Disseminator : ModItem { public override void SetStaticDefaults() { @@ -150,7 +151,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(ItemID.LunarBar, 5). AddTile(TileID.LunarCraftingStation). Register(); diff --git a/Items/Weapons/Ranged/Interfacer.png b/Items/Weapons/Ranged/Disseminator.png similarity index 100% rename from Items/Weapons/Ranged/Interfacer.png rename to Items/Weapons/Ranged/Disseminator.png diff --git a/Items/Weapons/Ranged/ElementalBlaster.cs b/Items/Weapons/Ranged/ElementalBlaster.cs index 46c0fbaa4c..d6b7e831cd 100644 --- a/Items/Weapons/Ranged/ElementalBlaster.cs +++ b/Items/Weapons/Ranged/ElementalBlaster.cs @@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons.Ranged CreateRecipe(). AddIngredient(). AddIngredient(). - AddIngredient(). + AddIngredient(). AddIngredient(5). AddIngredient(ItemID.LunarBar, 5). AddTile(TileID.LunarCraftingStation). diff --git a/Items/Weapons/Ranged/TheEmpyrean.cs b/Items/Weapons/Ranged/GodsBellows.cs similarity index 95% rename from Items/Weapons/Ranged/TheEmpyrean.cs rename to Items/Weapons/Ranged/GodsBellows.cs index e3be15c5ae..2f298a6dc7 100644 --- a/Items/Weapons/Ranged/TheEmpyrean.cs +++ b/Items/Weapons/Ranged/GodsBellows.cs @@ -7,7 +7,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged { - public class TheEmpyrean : ModItem + [LegacyName("TheEmpyrean")] + public class GodsBellows : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Weapons/Ranged/TheEmpyrean.png b/Items/Weapons/Ranged/GodsBellows.png similarity index 100% rename from Items/Weapons/Ranged/TheEmpyrean.png rename to Items/Weapons/Ranged/GodsBellows.png diff --git a/Items/Weapons/Ranged/Karasawa.cs b/Items/Weapons/Ranged/Karasawa.cs index 046c9d6774..805545e347 100644 --- a/Items/Weapons/Ranged/Karasawa.cs +++ b/Items/Weapons/Ranged/Karasawa.cs @@ -10,6 +10,7 @@ using Terraria.Audio; namespace CalamityMod.Items.Weapons.Ranged { + // TODO -- This weapon is a disgrace to its Armored Core heritage. It needs a full rework. public class Karasawa : ModItem { public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/MechGaussRifle"); diff --git a/Items/Weapons/Ranged/MarniteRifleSpear.cs b/Items/Weapons/Ranged/MarniteBayonet.cs similarity index 89% rename from Items/Weapons/Ranged/MarniteRifleSpear.cs rename to Items/Weapons/Ranged/MarniteBayonet.cs index bb3f91871e..216e80c5cc 100644 --- a/Items/Weapons/Ranged/MarniteRifleSpear.cs +++ b/Items/Weapons/Ranged/MarniteBayonet.cs @@ -3,11 +3,13 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged { - public class MarniteRifleSpear : ModItem + [LegacyName("MarniteRifleSpear")] + public class MarniteBayonet : ModItem { public override void SetStaticDefaults() { DisplayName.SetDefault("Marnite Bayonet"); + // TODO -- Marnite Bayonet hitboxes are screwed because it's not a holdout Tooltip.SetDefault("The gun damages enemies that touch it"); SacrificeTotal = 1; } diff --git a/Items/Weapons/Ranged/MarniteRifleSpear.png b/Items/Weapons/Ranged/MarniteBayonet.png similarity index 100% rename from Items/Weapons/Ranged/MarniteRifleSpear.png rename to Items/Weapons/Ranged/MarniteBayonet.png diff --git a/Items/Weapons/Ranged/NettlelineGreatbow.cs b/Items/Weapons/Ranged/NettlevineGreatbow.cs similarity index 97% rename from Items/Weapons/Ranged/NettlelineGreatbow.cs rename to Items/Weapons/Ranged/NettlevineGreatbow.cs index 1619ab0124..29d844516b 100644 --- a/Items/Weapons/Ranged/NettlelineGreatbow.cs +++ b/Items/Weapons/Ranged/NettlevineGreatbow.cs @@ -7,7 +7,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged { - public class NettlelineGreatbow : ModItem + [LegacyName("NettlelineGreatbow")] + public class NettlevineGreatbow : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Weapons/Ranged/NettlelineGreatbow.png b/Items/Weapons/Ranged/NettlevineGreatbow.png similarity index 100% rename from Items/Weapons/Ranged/NettlelineGreatbow.png rename to Items/Weapons/Ranged/NettlevineGreatbow.png diff --git a/Items/Weapons/Ranged/PrideHuntersPlanarRipper.cs b/Items/Weapons/Ranged/PridefulHuntersPlanarRipper.cs similarity index 97% rename from Items/Weapons/Ranged/PrideHuntersPlanarRipper.cs rename to Items/Weapons/Ranged/PridefulHuntersPlanarRipper.cs index a6c690a651..7e99329a28 100644 --- a/Items/Weapons/Ranged/PrideHuntersPlanarRipper.cs +++ b/Items/Weapons/Ranged/PridefulHuntersPlanarRipper.cs @@ -7,7 +7,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged { - public class PrideHuntersPlanarRipper : ModItem + [LegacyName("PrideHuntersPlanarRipper")] + public class PridefulHuntersPlanarRipper : ModItem { private int counter = 0; diff --git a/Items/Weapons/Ranged/PrideHuntersPlanarRipper.png b/Items/Weapons/Ranged/PridefulHuntersPlanarRipper.png similarity index 100% rename from Items/Weapons/Ranged/PrideHuntersPlanarRipper.png rename to Items/Weapons/Ranged/PridefulHuntersPlanarRipper.png diff --git a/Items/Weapons/Ranged/Shredder.cs b/Items/Weapons/Ranged/Shredder.cs index e119fcbc72..78bd843e64 100644 --- a/Items/Weapons/Ranged/Shredder.cs +++ b/Items/Weapons/Ranged/Shredder.cs @@ -74,10 +74,11 @@ namespace CalamityMod.Items.Weapons.Ranged } } + // TODO -- Shredder used to use Charged Dart Blaster. The item has been deleted. public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + // AddIngredient(). AddIngredient(). AddIngredient(ItemID.Shotgun). AddIngredient(5). diff --git a/Items/Weapons/Ranged/PaintballBlaster.cs b/Items/Weapons/Ranged/SpeedBlaster.cs similarity index 97% rename from Items/Weapons/Ranged/PaintballBlaster.cs rename to Items/Weapons/Ranged/SpeedBlaster.cs index 1b1629bd8f..087562dea1 100644 --- a/Items/Weapons/Ranged/PaintballBlaster.cs +++ b/Items/Weapons/Ranged/SpeedBlaster.cs @@ -7,7 +7,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged { - public class PaintballBlaster : ModItem + [LegacyName("PaintballBlaster")] + public class SpeedBlaster : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Weapons/Ranged/PaintballBlaster.png b/Items/Weapons/Ranged/SpeedBlaster.png similarity index 100% rename from Items/Weapons/Ranged/PaintballBlaster.png rename to Items/Weapons/Ranged/SpeedBlaster.png diff --git a/Items/Weapons/Ranged/StarfleetMK2.cs b/Items/Weapons/Ranged/Starmada.cs similarity index 97% rename from Items/Weapons/Ranged/StarfleetMK2.cs rename to Items/Weapons/Ranged/Starmada.cs index e37ef5db05..b4d59d2810 100644 --- a/Items/Weapons/Ranged/StarfleetMK2.cs +++ b/Items/Weapons/Ranged/Starmada.cs @@ -10,7 +10,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged { - public class StarfleetMK2 : ModItem + [LegacyName("StarfleetMK2")] + public class Starmada : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Weapons/Ranged/StarfleetMK2.png b/Items/Weapons/Ranged/Starmada.png similarity index 100% rename from Items/Weapons/Ranged/StarfleetMK2.png rename to Items/Weapons/Ranged/Starmada.png diff --git a/Items/Weapons/Ranged/TyrannysEnd.cs b/Items/Weapons/Ranged/TyrannysEnd.cs index 115f841b2e..fca01b23da 100644 --- a/Items/Weapons/Ranged/TyrannysEnd.cs +++ b/Items/Weapons/Ranged/TyrannysEnd.cs @@ -54,7 +54,7 @@ namespace CalamityMod.Items.Weapons.Ranged { CreateRecipe(). AddIngredient(). - AddIngredient(). + AddIngredient(). AddIngredient(5). AddTile(). Register(); diff --git a/Items/Weapons/Ranged/UniversalGenesis.cs b/Items/Weapons/Ranged/UniversalGenesis.cs index 7f65074e78..c58fd3db8f 100644 --- a/Items/Weapons/Ranged/UniversalGenesis.cs +++ b/Items/Weapons/Ranged/UniversalGenesis.cs @@ -101,7 +101,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(ItemID.StarCloak, 3). AddIngredient(2). AddIngredient(8). @@ -110,7 +110,7 @@ namespace CalamityMod.Items.Weapons.Ranged Register(); CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(ItemID.StarCloak, 3). AddIngredient(2). AddIngredient(). diff --git a/Items/Weapons/Ranged/Megafleet.cs b/Items/Weapons/Ranged/Voidragon.cs similarity index 91% rename from Items/Weapons/Ranged/Megafleet.cs rename to Items/Weapons/Ranged/Voidragon.cs index 42921c13cc..8966963f29 100644 --- a/Items/Weapons/Ranged/Megafleet.cs +++ b/Items/Weapons/Ranged/Voidragon.cs @@ -9,12 +9,14 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged { - public class Megafleet : ModItem + [LegacyName("Megafleet")] + public class Voidragon : ModItem { private int shotType = 1; public override void SetStaticDefaults() { + // Long live Megafleet. You will be missed. Maybe one day we can revive you. DisplayName.SetDefault("Voidragon"); Tooltip.SetDefault("75% chance to not consume ammo\n" + "Fires void blasts that explode every other shot\n" + @@ -61,7 +63,7 @@ namespace CalamityMod.Items.Weapons.Ranged if (shotType == 1) Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, damage, knockback, player.whoAmI, 0.0f, 0.0f); else - Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0f, 0f); shotType++; diff --git a/Items/Weapons/Ranged/Megafleet.png b/Items/Weapons/Ranged/Voidragon.png similarity index 100% rename from Items/Weapons/Ranged/Megafleet.png rename to Items/Weapons/Ranged/Voidragon.png diff --git a/Items/Weapons/Rogue/Celestus.cs b/Items/Weapons/Rogue/Celestus.cs index 700d0d6a8b..f2f699b328 100644 --- a/Items/Weapons/Rogue/Celestus.cs +++ b/Items/Weapons/Rogue/Celestus.cs @@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(). AddIngredient(). AddIngredient(). diff --git a/Items/Weapons/Rogue/AccretionDisk.cs b/Items/Weapons/Rogue/ElementalDisk.cs similarity index 95% rename from Items/Weapons/Rogue/AccretionDisk.cs rename to Items/Weapons/Rogue/ElementalDisk.cs index 7232917c6a..e94e17976c 100644 --- a/Items/Weapons/Rogue/AccretionDisk.cs +++ b/Items/Weapons/Rogue/ElementalDisk.cs @@ -8,7 +8,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Rogue { - public class AccretionDisk : ModItem + [LegacyName("AccretionDisk")] + public class ElementalDisk : ModItem { public override void SetStaticDefaults() { @@ -60,7 +61,7 @@ namespace CalamityMod.Items.Weapons.Rogue { CreateRecipe(). AddIngredient(). - AddIngredient(). + AddIngredient(). AddIngredient(). AddIngredient(5). AddIngredient(5). diff --git a/Items/Weapons/Rogue/AccretionDisk.png b/Items/Weapons/Rogue/ElementalDisk.png similarity index 100% rename from Items/Weapons/Rogue/AccretionDisk.png rename to Items/Weapons/Rogue/ElementalDisk.png diff --git a/Items/Weapons/Rogue/NanoblackReaperRogue.cs b/Items/Weapons/Rogue/NanoblackReaper.cs similarity index 95% rename from Items/Weapons/Rogue/NanoblackReaperRogue.cs rename to Items/Weapons/Rogue/NanoblackReaper.cs index 107bab5a54..5ecdcd76ee 100644 --- a/Items/Weapons/Rogue/NanoblackReaperRogue.cs +++ b/Items/Weapons/Rogue/NanoblackReaper.cs @@ -9,7 +9,9 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Rogue { - public class NanoblackReaperRogue : ModItem + // Deny me no longer! + [LegacyName("NanoblackReaperMelee", "NanoblackReaperRogue")] + public class NanoblackReaper : ModItem { public static int BaseDamage = 130; public static float Knockback = 9f; diff --git a/Items/Weapons/Rogue/NanoblackReaperRogue.png b/Items/Weapons/Rogue/NanoblackReaper.png similarity index 100% rename from Items/Weapons/Rogue/NanoblackReaperRogue.png rename to Items/Weapons/Rogue/NanoblackReaper.png diff --git a/Items/Weapons/Rogue/XerocPitchfork.cs b/Items/Weapons/Rogue/ShardofAntumbra.cs similarity index 96% rename from Items/Weapons/Rogue/XerocPitchfork.cs rename to Items/Weapons/Rogue/ShardofAntumbra.cs index eeb845923b..a6bd04ebe2 100644 --- a/Items/Weapons/Rogue/XerocPitchfork.cs +++ b/Items/Weapons/Rogue/ShardofAntumbra.cs @@ -8,7 +8,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Rogue { - public class XerocPitchfork : ModItem + [LegacyName("XerocPitchfork")] + public class ShardofAntumbra : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Weapons/Rogue/XerocPitchfork.png b/Items/Weapons/Rogue/ShardofAntumbra.png similarity index 100% rename from Items/Weapons/Rogue/XerocPitchfork.png rename to Items/Weapons/Rogue/ShardofAntumbra.png diff --git a/Items/Weapons/Rogue/FlameScythe.cs b/Items/Weapons/Rogue/SubductionSlicer.cs similarity index 96% rename from Items/Weapons/Rogue/FlameScythe.cs rename to Items/Weapons/Rogue/SubductionSlicer.cs index 6eb86dccad..25a5b8cf5f 100644 --- a/Items/Weapons/Rogue/FlameScythe.cs +++ b/Items/Weapons/Rogue/SubductionSlicer.cs @@ -8,7 +8,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Rogue { - public class FlameScythe : ModItem + [LegacyName("FlameScythe")] + public class SubductionSlicer : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Weapons/Rogue/FlameScythe.png b/Items/Weapons/Rogue/SubductionSlicer.png similarity index 100% rename from Items/Weapons/Rogue/FlameScythe.png rename to Items/Weapons/Rogue/SubductionSlicer.png diff --git a/Items/Weapons/Rogue/DuneHopper.cs b/Items/Weapons/Rogue/WaveSkipper.cs similarity index 97% rename from Items/Weapons/Rogue/DuneHopper.cs rename to Items/Weapons/Rogue/WaveSkipper.cs index 2f5b58c8df..8e47041689 100644 --- a/Items/Weapons/Rogue/DuneHopper.cs +++ b/Items/Weapons/Rogue/WaveSkipper.cs @@ -10,7 +10,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Rogue { - public class DuneHopper : ModItem + [LegacyName("DuneHopper")] + public class WaveSkipper : ModItem { public override void SetStaticDefaults() { diff --git a/Items/Weapons/Rogue/DuneHopper.png b/Items/Weapons/Rogue/WaveSkipper.png similarity index 100% rename from Items/Weapons/Rogue/DuneHopper.png rename to Items/Weapons/Rogue/WaveSkipper.png diff --git a/Projectiles/Rogue/AntumbraShardProjectile.cs b/Projectiles/Rogue/AntumbraShardProjectile.cs index b3ff909c4f..31732c8fc1 100644 --- a/Projectiles/Rogue/AntumbraShardProjectile.cs +++ b/Projectiles/Rogue/AntumbraShardProjectile.cs @@ -65,7 +65,7 @@ namespace CalamityMod.Projectiles.Rogue { if (Main.rand.NextBool(2)) { - Item.NewItem(Projectile.GetSource_DropAsItem(), (int)Projectile.position.X, (int)Projectile.position.Y, Projectile.width, Projectile.height, ModContent.ItemType()); + Item.NewItem(Projectile.GetSource_DropAsItem(), (int)Projectile.position.X, (int)Projectile.position.Y, Projectile.width, Projectile.height, ModContent.ItemType()); } } diff --git a/Projectiles/Rogue/NanoblackMain.cs b/Projectiles/Rogue/NanoblackMain.cs index ba3a80e21a..228cfd4ae4 100644 --- a/Projectiles/Rogue/NanoblackMain.cs +++ b/Projectiles/Rogue/NanoblackMain.cs @@ -73,7 +73,7 @@ namespace CalamityMod.Projectiles.Rogue // The scythe runs its returning AI if the frame counter is greater than ReboundTime. if (Projectile.ai[0] >= ReboundTime) { - float returnSpeed = NanoblackReaperRogue.Speed; + float returnSpeed = NanoblackReaper.Speed; float acceleration = 2.4f; Player owner = Main.player[Projectile.owner]; From fbf916a098a6074642859d405c4d19c62fc6a0fb Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 11 Jun 2022 20:31:11 -0400 Subject: [PATCH 3/3] 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()