From 982f71a1efdf7a034ddc803a21ef435cc33f2120 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 2 Jul 2024 23:23:50 -0400 Subject: [PATCH] Elemental weapon renames, EXCEPT Lance and Disk Also made Legion of Celestia (Elemental Axe) minions destroy trees in GFB --- Balancing/BalancingChangesManager.cs | 4 +-- ...ntalAxeBuff.cs => LegionofCelestiaBuff.cs} | 4 +-- ...alAxeBuff.png => LegionofCelestiaBuff.png} | Bin CalPlayer/CalamityPlayerDrawEffects.cs | 2 +- ...uguroftheElements.cs => AuguroftheVoid.cs} | 5 ++-- ...uroftheElements.png => AuguroftheVoid.png} | Bin .../{ElementalRay.cs => Nucleosynthesis.cs} | 3 +- .../{ElementalRay.png => Nucleosynthesis.png} | Bin Items/Weapons/Magic/SubsumingVortex.cs | 2 +- Items/Weapons/Magic/VividClarity.cs | 2 +- Items/Weapons/Melee/CosmicShiv.cs | 2 +- .../{ElementalShiv.cs => StarburstShiv.cs} | 6 ++-- .../{ElementalShiv.png => StarburstShiv.png} | Bin ...mentalEruption.cs => ChromaticEruption.cs} | 7 +++-- ...ntalEruption.png => ChromaticEruption.png} | Bin Items/Weapons/Ranged/Photoviscerator.cs | 2 +- Items/Weapons/Summon/CosmicImmaterializer.cs | 2 +- .../{ElementalAxe.cs => LegionofCelestia.cs} | 5 ++-- ...{ElementalAxe.png => LegionofCelestia.png} | Bin .../en-US/Mods.CalamityMod.Buffs.hjson | 6 ++-- ...Mods.CalamityMod.Items.Weapons.Magic.hjson | 28 +++++++++--------- ...Mods.CalamityMod.Items.Weapons.Melee.hjson | 10 +++---- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 20 ++++++------- ...ods.CalamityMod.Items.Weapons.Summon.hjson | 10 +++---- .../Mods.CalamityMod.Projectiles.Magic.hjson | 2 +- .../Mods.CalamityMod.Projectiles.Melee.hjson | 4 +-- .../Mods.CalamityMod.Projectiles.Ranged.hjson | 4 +-- .../Mods.CalamityMod.Projectiles.Summon.hjson | 2 +- ModSupport/WeakReferenceSupport.cs | 2 +- .../{ElementTentacle.cs => AugurTentacle.cs} | 2 +- ...mentalShivProj.cs => StarburstShivProj.cs} | 8 ++--- .../{ElementBallShiv.cs => StarburstBeam.cs} | 4 +-- ...{ElementBallShiv.png => StarburstBeam.png} | Bin .../Melee/{SHIV.cs => StarburstSHIV.cs} | 2 +- .../Melee/{SHIV.png => StarburstSHIV.png} | Bin ...ouldout.cs => ChromaticEruptionHoldout.cs} | 10 +++---- .../{ElementalFire.cs => ChromaticFire.cs} | 2 +- .../{ElementalFlare.cs => ChromaticFlare.cs} | 2 +- ...ntalAxeMinion.cs => CelestialAxeMinion.cs} | 15 ++++++++-- ...alAxeMinion.png => CelestialAxeMinion.png} | Bin 40 files changed, 96 insertions(+), 83 deletions(-) rename Buffs/Summon/{ElementalAxeBuff.cs => LegionofCelestiaBuff.cs} (91%) rename Buffs/Summon/{ElementalAxeBuff.png => LegionofCelestiaBuff.png} (100%) rename Items/Weapons/Magic/{AuguroftheElements.cs => AuguroftheVoid.cs} (94%) rename Items/Weapons/Magic/{AuguroftheElements.png => AuguroftheVoid.png} (100%) rename Items/Weapons/Magic/{ElementalRay.cs => Nucleosynthesis.cs} (97%) rename Items/Weapons/Magic/{ElementalRay.png => Nucleosynthesis.png} (100%) rename Items/Weapons/Melee/{ElementalShiv.cs => StarburstShiv.cs} (88%) rename Items/Weapons/Melee/{ElementalShiv.png => StarburstShiv.png} (100%) rename Items/Weapons/Ranged/{ElementalEruption.cs => ChromaticEruption.cs} (91%) rename Items/Weapons/Ranged/{ElementalEruption.png => ChromaticEruption.png} (100%) rename Items/Weapons/Summon/{ElementalAxe.cs => LegionofCelestia.cs} (92%) rename Items/Weapons/Summon/{ElementalAxe.png => LegionofCelestia.png} (100%) rename Projectiles/Magic/{ElementTentacle.cs => AugurTentacle.cs} (98%) rename Projectiles/Melee/Shortswords/{ElementalShivProj.cs => StarburstShivProj.cs} (91%) rename Projectiles/Melee/{ElementBallShiv.cs => StarburstBeam.cs} (93%) rename Projectiles/Melee/{ElementBallShiv.png => StarburstBeam.png} (100%) rename Projectiles/Melee/{SHIV.cs => StarburstSHIV.cs} (96%) rename Projectiles/Melee/{SHIV.png => StarburstSHIV.png} (100%) rename Projectiles/Ranged/{ElementalEruptionHouldout.cs => ChromaticEruptionHoldout.cs} (90%) rename Projectiles/Ranged/{ElementalFire.cs => ChromaticFire.cs} (98%) rename Projectiles/Ranged/{ElementalFlare.cs => ChromaticFlare.cs} (99%) rename Projectiles/Summon/{ElementalAxeMinion.cs => CelestialAxeMinion.cs} (81%) rename Projectiles/Summon/{ElementalAxeMinion.png => CelestialAxeMinion.png} (100%) diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index 1088cbea8e..02e353dc3d 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -313,8 +313,8 @@ namespace CalamityMod.Balancing // 50% resist to Dazzling Stabber Staff. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.StormWeaverIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType())))); - // 50% resist to Elemental Axe. - NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.StormWeaverIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType())))); + // 50% resist to Legion of Celestia. + NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.StormWeaverIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType())))); // 50% resist to Pristine Fury's alt fire. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.StormWeaverIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType())))); diff --git a/Buffs/Summon/ElementalAxeBuff.cs b/Buffs/Summon/LegionofCelestiaBuff.cs similarity index 91% rename from Buffs/Summon/ElementalAxeBuff.cs rename to Buffs/Summon/LegionofCelestiaBuff.cs index 1454140e20..9157620388 100644 --- a/Buffs/Summon/ElementalAxeBuff.cs +++ b/Buffs/Summon/LegionofCelestiaBuff.cs @@ -5,7 +5,7 @@ using Terraria.ModLoader; namespace CalamityMod.Buffs.Summon { - public class ElementalAxeBuff : ModBuff + public class LegionofCelestiaBuff : ModBuff { public override void SetStaticDefaults() { @@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.Summon public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { modPlayer.eAxe = true; } diff --git a/Buffs/Summon/ElementalAxeBuff.png b/Buffs/Summon/LegionofCelestiaBuff.png similarity index 100% rename from Buffs/Summon/ElementalAxeBuff.png rename to Buffs/Summon/LegionofCelestiaBuff.png diff --git a/CalPlayer/CalamityPlayerDrawEffects.cs b/CalPlayer/CalamityPlayerDrawEffects.cs index 45fb5d0a21..8f76c816c8 100644 --- a/CalPlayer/CalamityPlayerDrawEffects.cs +++ b/CalPlayer/CalamityPlayerDrawEffects.cs @@ -446,7 +446,7 @@ namespace CalamityMod.CalPlayer ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), - ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), diff --git a/Items/Weapons/Magic/AuguroftheElements.cs b/Items/Weapons/Magic/AuguroftheVoid.cs similarity index 94% rename from Items/Weapons/Magic/AuguroftheElements.cs rename to Items/Weapons/Magic/AuguroftheVoid.cs index dfc1c993fe..d8d00fdbc0 100644 --- a/Items/Weapons/Magic/AuguroftheElements.cs +++ b/Items/Weapons/Magic/AuguroftheVoid.cs @@ -8,7 +8,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Magic { - public class AuguroftheElements : ModItem, ILocalizedModType + [LegacyName("AuguroftheElements")] + public class AuguroftheVoid : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; public override void SetDefaults() @@ -29,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item103; Item.autoReuse = true; - Item.shoot = ModContent.ProjectileType(); + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 30f; } diff --git a/Items/Weapons/Magic/AuguroftheElements.png b/Items/Weapons/Magic/AuguroftheVoid.png similarity index 100% rename from Items/Weapons/Magic/AuguroftheElements.png rename to Items/Weapons/Magic/AuguroftheVoid.png diff --git a/Items/Weapons/Magic/ElementalRay.cs b/Items/Weapons/Magic/Nucleosynthesis.cs similarity index 97% rename from Items/Weapons/Magic/ElementalRay.cs rename to Items/Weapons/Magic/Nucleosynthesis.cs index 8ef2de1e1c..90e3f5756d 100644 --- a/Items/Weapons/Magic/ElementalRay.cs +++ b/Items/Weapons/Magic/Nucleosynthesis.cs @@ -8,7 +8,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Magic { - public class ElementalRay : ModItem, ILocalizedModType + [LegacyName("ElementalRay")] + public class Nucleosynthesis : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; public override void SetStaticDefaults() diff --git a/Items/Weapons/Magic/ElementalRay.png b/Items/Weapons/Magic/Nucleosynthesis.png similarity index 100% rename from Items/Weapons/Magic/ElementalRay.png rename to Items/Weapons/Magic/Nucleosynthesis.png diff --git a/Items/Weapons/Magic/SubsumingVortex.cs b/Items/Weapons/Magic/SubsumingVortex.cs index 98467e019c..cdfa059331 100644 --- a/Items/Weapons/Magic/SubsumingVortex.cs +++ b/Items/Weapons/Magic/SubsumingVortex.cs @@ -119,7 +119,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(). AddIngredient(). AddIngredient(). diff --git a/Items/Weapons/Magic/VividClarity.cs b/Items/Weapons/Magic/VividClarity.cs index 0180a48fb2..d5f00474c2 100644 --- a/Items/Weapons/Magic/VividClarity.cs +++ b/Items/Weapons/Magic/VividClarity.cs @@ -80,7 +80,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(). AddIngredient(). AddIngredient(). diff --git a/Items/Weapons/Melee/CosmicShiv.cs b/Items/Weapons/Melee/CosmicShiv.cs index b7e5f75b48..e8e5ba8113 100644 --- a/Items/Weapons/Melee/CosmicShiv.cs +++ b/Items/Weapons/Melee/CosmicShiv.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(8). AddTile(). Register(); diff --git a/Items/Weapons/Melee/ElementalShiv.cs b/Items/Weapons/Melee/StarburstShiv.cs similarity index 88% rename from Items/Weapons/Melee/ElementalShiv.cs rename to Items/Weapons/Melee/StarburstShiv.cs index 364819f8b4..bc484097bc 100644 --- a/Items/Weapons/Melee/ElementalShiv.cs +++ b/Items/Weapons/Melee/StarburstShiv.cs @@ -6,8 +6,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Melee { - [LegacyName("ElementalShortsword")] - public class ElementalShiv : ModItem, ILocalizedModType + [LegacyName("ElementalShortsword", "ElementalShiv")] + public class StarburstShiv : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.damage = 138; Item.DamageType = DamageClass.Melee; Item.useAnimation = Item.useTime = 13; - Item.shoot = ModContent.ProjectileType(); + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 2.4f; Item.knockBack = 8.5f; Item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/ElementalShiv.png b/Items/Weapons/Melee/StarburstShiv.png similarity index 100% rename from Items/Weapons/Melee/ElementalShiv.png rename to Items/Weapons/Melee/StarburstShiv.png diff --git a/Items/Weapons/Ranged/ElementalEruption.cs b/Items/Weapons/Ranged/ChromaticEruption.cs similarity index 91% rename from Items/Weapons/Ranged/ElementalEruption.cs rename to Items/Weapons/Ranged/ChromaticEruption.cs index e282838825..e0184292d8 100644 --- a/Items/Weapons/Ranged/ElementalEruption.cs +++ b/Items/Weapons/Ranged/ChromaticEruption.cs @@ -8,7 +8,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged { - public class ElementalEruption : ModItem, ILocalizedModType + [LegacyName("ElementalEruption")] + public class ChromaticEruption : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; @@ -31,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.autoReuse = true; - Item.shoot = ModContent.ProjectileType(); + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 9f; Item.useAmmo = AmmoID.Gel; Item.channel = true; @@ -48,7 +49,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - Projectile holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0, 1); + Projectile holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0, 1); holdout.velocity = player.Calamity().mouseWorld - player.RotatedRelativePoint(player.MountedCenter); return false; } diff --git a/Items/Weapons/Ranged/ElementalEruption.png b/Items/Weapons/Ranged/ChromaticEruption.png similarity index 100% rename from Items/Weapons/Ranged/ElementalEruption.png rename to Items/Weapons/Ranged/ChromaticEruption.png diff --git a/Items/Weapons/Ranged/Photoviscerator.cs b/Items/Weapons/Ranged/Photoviscerator.cs index b65537e9bf..b9d4a58cf8 100644 --- a/Items/Weapons/Ranged/Photoviscerator.cs +++ b/Items/Weapons/Ranged/Photoviscerator.cs @@ -93,7 +93,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(). AddIngredient(). AddIngredient(). diff --git a/Items/Weapons/Summon/CosmicImmaterializer.cs b/Items/Weapons/Summon/CosmicImmaterializer.cs index d7d6ac4aa8..ee16f65e35 100644 --- a/Items/Weapons/Summon/CosmicImmaterializer.cs +++ b/Items/Weapons/Summon/CosmicImmaterializer.cs @@ -52,7 +52,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(). AddIngredient(). AddIngredient(). diff --git a/Items/Weapons/Summon/ElementalAxe.cs b/Items/Weapons/Summon/LegionofCelestia.cs similarity index 92% rename from Items/Weapons/Summon/ElementalAxe.cs rename to Items/Weapons/Summon/LegionofCelestia.cs index 50fb9ea940..c4664b19c5 100644 --- a/Items/Weapons/Summon/ElementalAxe.cs +++ b/Items/Weapons/Summon/LegionofCelestia.cs @@ -8,7 +8,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Summon { - public class ElementalAxe : ModItem, ILocalizedModType + [LegacyName("ElementalAxe")] + public class LegionofCelestia : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; public override void SetDefaults() @@ -26,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item44; Item.autoReuse = true; - Item.shoot = ModContent.ProjectileType(); + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; } diff --git a/Items/Weapons/Summon/ElementalAxe.png b/Items/Weapons/Summon/LegionofCelestia.png similarity index 100% rename from Items/Weapons/Summon/ElementalAxe.png rename to Items/Weapons/Summon/LegionofCelestia.png diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 5161cb086c..42c88f0356 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -1160,9 +1160,9 @@ DemonshadeSetDevilBuff: { Description: The red devil will protect you } -ElementalAxeBuff: { - DisplayName: Elemental Axe - Description: The elemental axe will protect you +LegionofCelestiaBuff: { + DisplayName: Celestial Axe + Description: If only it was this good at chopping trees... } EndoCooperBuff: { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index ea2562b16a..8c4fbd7b25 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -127,8 +127,8 @@ Atlantis: { TooltipGFBDoG: Take good care of my weapon, or else... -CIT } -AuguroftheElements: { - DisplayName: Augur of the Elements +AuguroftheVoid: { + DisplayName: Augur of the Void Tooltip: Casts a burst of elemental tentacles to spear your enemies } @@ -290,18 +290,6 @@ EldritchTome: { Tooltip: Casts eldritch tentacles to spear your enemies } -ElementalRay: { - DisplayName: Elemental Ray - Tooltip: - ''' - Casts four celestial beams near the player - Solar beams explode into fire on enemy hits - Nebula beams sweep a little bit over time - Vortex beams act like fast lightning and electrify enemies on hit - Stardust beams release small stars that home on enemy hits - ''' -} - Eternity: { DisplayName: Eternity // Color changes at the second line of tooltip via ModifyTooltips. @@ -578,6 +566,18 @@ NuclearFury: { Tooltip: Casts a torrent of cosmic typhoons } +Nucleosynthesis: { + DisplayName: Nucleosynthesis + Tooltip: + ''' + Casts four celestial beams near the player + Solar beams explode into fire on enemy hits + Nebula beams sweep a little bit over time + Vortex beams act like fast lightning and electrify enemies on hit + Stardust beams release small stars that home on enemy hits + ''' +} + Omicron: { DisplayName: Omicron Tooltip: diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index 19f4631c07..cd5ee84076 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -439,11 +439,6 @@ ElementalLance: { ''' } -ElementalShiv: { - DisplayName: Elemental Shiv - Tooltip: Shoots a rainbow shiv that spawns additional shivs on hit -} - EmpyreanKnives: { DisplayName: Empyrean Knives Tooltip: Throws a flurry of bouncing knives that can heal the user @@ -1127,6 +1122,11 @@ SpineOfThanatos: { ''' } +StarburstShiv: { + DisplayName: Starburst Shiv + Tooltip: Shoots a rainbow shiv that spawns additional shivs on hit +} + StarnightLance: { DisplayName: Starnight Lance Tooltip: Shoots a frigid starnight beam diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 8c93d08451..40446e5cd3 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -246,6 +246,16 @@ ChickenCannon: { ''' } +ChromaticEruption: { + DisplayName: Chromatic Eruption + Tooltip: + ''' + Charges up to spew rainbow flames and pairs of homing chromatic flares + Uses gel for ammo + 70% chance to save ammo + ''' +} + ClamorRifle: { DisplayName: Clamor Rifle Tooltip: Converts musket balls into homing energy bolts @@ -455,16 +465,6 @@ DriftwoodBow: { Tooltip: This bow is stronger while you are wet } -ElementalEruption: { - DisplayName: Elemental Eruption - Tooltip: - ''' - Charges up to spew rainbow flames and pairs of homing elemental flares - Uses gel for ammo - 70% chance to save ammo - ''' -} - EternalBlizzard: { DisplayName: Eternal Blizzard Tooltip: Fires an additional icicle arrow that freezes into a falling icicle diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index 14b2cd2eaf..d357ccd042 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -280,11 +280,6 @@ DreadmineStaff: { Tooltip: Summons a dreadmine turret to fight for you } -ElementalAxe: { - DisplayName: Elemental Axe - Tooltip: Summons an elemental axe to fight for you -} - EnchantedConch: { DisplayName: Enchanted Conch Tooltip: Summons a hermit crab to fight for you @@ -483,6 +478,11 @@ KingofConstellationsTenryu: { ''' } +LegionofCelestia: { + DisplayName: Legion of Celestia + Tooltip: Summons a possessed, celestial axe to fight for you +} + LiliesOfFinality: { DisplayName: Lilies of Finality Tooltip: diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Magic.hjson index acbd83c5b3..3227b6c5db 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Magic.hjson @@ -19,6 +19,7 @@ AstralCrystal.DisplayName: Astral Crystal AstralCrystalInvisibleExplosion.DisplayName: Astral Crystal Invisible Explosion AstralStarMagic.DisplayName: Astral Star AtlantisSpear.DisplayName: Atlantis Spear +AugurTentacle.DisplayName: Elemental Tentacle AuraRain.DisplayName: Aura Rain AuroraAustralis.DisplayName: Aurora Australis BeamingBolt.DisplayName: Beaming Bolt @@ -58,7 +59,6 @@ DivineRetributionSpear.DisplayName: Divine Retribution EelDrop.DisplayName: Acid Eel Drop EidolicWailSoundwave.DisplayName: Eidolic Wail EldritchTentacle.DisplayName: Eldritch Tentacle -ElementTentacle.DisplayName: Elemental Tentacle EnormousConsumingVortex.DisplayName: Subsuming Vortex EternityCircle.DisplayName: Eternity EternityCrystal.DisplayName: Crystal diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson index febeb20165..7f67419027 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson @@ -101,7 +101,6 @@ EarthBoom.DisplayName: Earth's Judgement EarthMeteor.DisplayName: Gaia Meteor ElementalGlassStar.DisplayName: Glass Star ElementBall.DisplayName: Elemental Ball -ElementBallShiv.DisplayName: Shiv EmpyreanKnife.DisplayName: Empyrean Knife EntropicFlechette.DisplayName: Entropic Flechette EonBolt.DisplayName: Eon Bolt @@ -227,7 +226,6 @@ SanguineFuryWheel.DisplayName: Sanguine Bladewheel ScourgeoftheCosmosMini.DisplayName: Miniature Cosmic Scourge ScourgeoftheCosmosProj.DisplayName: Cosmic Scourge SeashineSwordProj.DisplayName: Seashine Beam -SHIV.DisplayName: Shiv SolarNeedle.DisplayName: Solar Needle SolsticeBeam.DisplayName: Solstice Beam SoulScythe.DisplayName: Soul Scythe @@ -238,6 +236,8 @@ SpatialSpear2.DisplayName: Elemental Spear SpatialSpear3.DisplayName: Elemental Spear SpatialSpear4.DisplayName: Elemental Spear SpineOfThanatosProjectile.DisplayName: Spine of Thanatos +StarburstBeam.DisplayName: Star Shiv +StarburstSHIV.DisplayName: SHIV StarnightBeam.DisplayName: Starnight Beam StellarContemptBlast.DisplayName: Stellar Blast StellarContemptEcho.DisplayName: Echoes of Contempt diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson index 73ab571d54..389293cecf 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson @@ -43,6 +43,8 @@ ChargedBlast.DisplayName: Blast ChargedBlastSplit.DisplayName: Charged Blast Split ChickenExplosion.DisplayName: Kentucky Fried Explosion ChickenRocket.DisplayName: Chicken Rocket +ChromaticFire.DisplayName: Chromatic Fire +ChromaticFlare.DisplayName: Chromatic Flare CinderArrowProj.DisplayName: Cinder Arrow ClamorRifleProj.DisplayName: Clamor Bolt ClamorRifleProjSplit.DisplayName: Clamor Bolt @@ -68,8 +70,6 @@ DrizzlefishFireSplit.DisplayName: Drizzlefish Flames DryadsTearMain.DisplayName: Dryad's Tear DryadsTearSplit.DisplayName: Dryad's Tear DWArrow.DisplayName: Death's Arrow -ElementalFire.DisplayName: Elemental Fire -ElementalFlare.DisplayName: Elemental Flare ElysianArrowProj.DisplayName: Elysian Arrow ElysianArrowRain.DisplayName: Elysian Light EmesisGore.DisplayName: Rotten Gore diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Summon.hjson index 2d4249fdc1..81212f4f23 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Summon.hjson @@ -56,6 +56,7 @@ Catastromini.DisplayName: Catastromini CatastropheSummon.DisplayName: Catastrophe CausticStaffProjectile.DisplayName: Thorn CausticStaffSummon.DisplayName: Caustic Dragon +CelestialAxeMinion.DisplayName: Celestial Axe Cinder.DisplayName: Cinder CinderBlossom.DisplayName: Cinder Blossom CloudElementalMinion.DisplayName: Cloudy Waifu @@ -89,7 +90,6 @@ DormantBrimseekerBab.DisplayName: Dormant Brimseeker DormantBrimseekerSummoner.DisplayName: Dormant Brimseeker Dreadmine.DisplayName: Dreadmine DreadmineTurret.DisplayName: Dreadmine Turret -ElementalAxeMinion.DisplayName: Elemental Axe EndoBeam.DisplayName: Endo Beam EndoCooperBody.DisplayName: Ascened Cooper EndoCooperLimbs.DisplayName: Ascened Cooper diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index cef6c31959..73ab93575a 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -1156,7 +1156,7 @@ 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()); diff --git a/Projectiles/Magic/ElementTentacle.cs b/Projectiles/Magic/AugurTentacle.cs similarity index 98% rename from Projectiles/Magic/ElementTentacle.cs rename to Projectiles/Magic/AugurTentacle.cs index 2cd1d493bf..78deee20b7 100644 --- a/Projectiles/Magic/ElementTentacle.cs +++ b/Projectiles/Magic/AugurTentacle.cs @@ -6,7 +6,7 @@ using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic { - public class ElementTentacle : ModProjectile, ILocalizedModType + public class AugurTentacle : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Magic"; public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; diff --git a/Projectiles/Melee/Shortswords/ElementalShivProj.cs b/Projectiles/Melee/Shortswords/StarburstShivProj.cs similarity index 91% rename from Projectiles/Melee/Shortswords/ElementalShivProj.cs rename to Projectiles/Melee/Shortswords/StarburstShivProj.cs index 7be4025f5c..52e9409cfd 100644 --- a/Projectiles/Melee/Shortswords/ElementalShivProj.cs +++ b/Projectiles/Melee/Shortswords/StarburstShivProj.cs @@ -10,10 +10,10 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee.Shortswords { - public class ElementalShivProj : BaseShortswordProjectile + public class StarburstShivProj : BaseShortswordProjectile { - public override LocalizedText DisplayName => CalamityUtils.GetItemName(); - public override string Texture => "CalamityMod/Items/Weapons/Melee/ElementalShiv"; + public override LocalizedText DisplayName => CalamityUtils.GetItemName(); + public override string Texture => "CalamityMod/Items/Weapons/Melee/StarburstShiv"; public override void SetDefaults() { @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Melee.Shortswords public override Action EffectBeforePullback => (proj) => { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 14f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5), Projectile.knockBack, Projectile.owner, 0f, 0f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 14f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5), Projectile.knockBack, Projectile.owner, 0f, 0f); }; public override void SetVisualOffsets() diff --git a/Projectiles/Melee/ElementBallShiv.cs b/Projectiles/Melee/StarburstBeam.cs similarity index 93% rename from Projectiles/Melee/ElementBallShiv.cs rename to Projectiles/Melee/StarburstBeam.cs index 0a114c1225..33eb2304d6 100644 --- a/Projectiles/Melee/ElementBallShiv.cs +++ b/Projectiles/Melee/StarburstBeam.cs @@ -6,7 +6,7 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { - public class ElementBallShiv : ModProjectile, ILocalizedModType + public class StarburstBeam : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Melee"; public override void SetDefaults() @@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Melee { if (Projectile.owner == Main.myPlayer) { - CalamityUtils.ProjectileBarrage(source, Projectile.Center, targetPos, x > 2, 800f, 800f, 0f, 800f, 20f, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, false, 50f); + CalamityUtils.ProjectileBarrage(source, Projectile.Center, targetPos, x > 2, 800f, 800f, 0f, 800f, 20f, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, false, 50f); } } } diff --git a/Projectiles/Melee/ElementBallShiv.png b/Projectiles/Melee/StarburstBeam.png similarity index 100% rename from Projectiles/Melee/ElementBallShiv.png rename to Projectiles/Melee/StarburstBeam.png diff --git a/Projectiles/Melee/SHIV.cs b/Projectiles/Melee/StarburstSHIV.cs similarity index 96% rename from Projectiles/Melee/SHIV.cs rename to Projectiles/Melee/StarburstSHIV.cs index 5fc14d89be..47059fd832 100644 --- a/Projectiles/Melee/SHIV.cs +++ b/Projectiles/Melee/StarburstSHIV.cs @@ -4,7 +4,7 @@ using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Melee { - public class SHIV : ModProjectile, ILocalizedModType + public class StarburstSHIV : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Melee"; public override void SetStaticDefaults() diff --git a/Projectiles/Melee/SHIV.png b/Projectiles/Melee/StarburstSHIV.png similarity index 100% rename from Projectiles/Melee/SHIV.png rename to Projectiles/Melee/StarburstSHIV.png diff --git a/Projectiles/Ranged/ElementalEruptionHouldout.cs b/Projectiles/Ranged/ChromaticEruptionHoldout.cs similarity index 90% rename from Projectiles/Ranged/ElementalEruptionHouldout.cs rename to Projectiles/Ranged/ChromaticEruptionHoldout.cs index bb8f4c68f1..e737a8ba0a 100644 --- a/Projectiles/Ranged/ElementalEruptionHouldout.cs +++ b/Projectiles/Ranged/ChromaticEruptionHoldout.cs @@ -10,9 +10,9 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { - public class ElementalEruptionHoldout : BaseGunHoldoutProjectile + public class ChromaticEruptionHoldout : BaseGunHoldoutProjectile { - public override int AssociatedItemID => ModContent.ItemType(); + public override int AssociatedItemID => ModContent.ItemType(); public override float MaxOffsetLengthFromArm => 15f; public override float OffsetXUpwards => -10f; public override float BaseOffsetY => -5f; @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Ranged Owner.PickAmmo(Owner.ActiveItem(), out _, out float shootSpeed, out int damage, out float knockback, out _, Main.rand.NextFloat() < 0.70f); for (int i = 0; i < 2; i++) { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, (Projectile.velocity * 10).RotatedByRandom(0.12f), ModContent.ProjectileType(), damage, knockback, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, (Projectile.velocity * 10).RotatedByRandom(0.12f), ModContent.ProjectileType(), damage, knockback, Projectile.owner); } ShotsFired++; ShotCooldown = HeldItem.useTime; @@ -57,8 +57,8 @@ namespace CalamityMod.Projectiles.Ranged { Vector2 newVel = (Projectile.velocity * 9); Vector2 newPos = GunTipPosition + Projectile.velocity.SafeNormalize(Vector2.UnitX) * 36f; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), newPos, newVel, ModContent.ProjectileType(), damage, knockback, Projectile.owner, newVel.Length(), -1f); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), newPos, newVel, ModContent.ProjectileType(), damage, knockback, Projectile.owner, newVel.Length(), 1f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), newPos, newVel, ModContent.ProjectileType(), damage, knockback, Projectile.owner, newVel.Length(), -1f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), newPos, newVel, ModContent.ProjectileType(), damage, knockback, Projectile.owner, newVel.Length(), 1f); FireBlobs = 3; } else diff --git a/Projectiles/Ranged/ElementalFire.cs b/Projectiles/Ranged/ChromaticFire.cs similarity index 98% rename from Projectiles/Ranged/ElementalFire.cs rename to Projectiles/Ranged/ChromaticFire.cs index 9f1b355c28..a97a221ad5 100644 --- a/Projectiles/Ranged/ElementalFire.cs +++ b/Projectiles/Ranged/ChromaticFire.cs @@ -8,7 +8,7 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { - public class ElementalFire : ModProjectile, ILocalizedModType + public class ChromaticFire : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Ranged"; public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; diff --git a/Projectiles/Ranged/ElementalFlare.cs b/Projectiles/Ranged/ChromaticFlare.cs similarity index 99% rename from Projectiles/Ranged/ElementalFlare.cs rename to Projectiles/Ranged/ChromaticFlare.cs index c92fe7d148..ae0517b920 100644 --- a/Projectiles/Ranged/ElementalFlare.cs +++ b/Projectiles/Ranged/ChromaticFlare.cs @@ -10,7 +10,7 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { - public class ElementalFlare : ModProjectile, ILocalizedModType + public class ChromaticFlare : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Ranged"; public override string Texture => "CalamityMod/ExtraTextures/SmallGreyscaleCircle"; diff --git a/Projectiles/Summon/ElementalAxeMinion.cs b/Projectiles/Summon/CelestialAxeMinion.cs similarity index 81% rename from Projectiles/Summon/ElementalAxeMinion.cs rename to Projectiles/Summon/CelestialAxeMinion.cs index 18421a635d..ef8d7d91cb 100644 --- a/Projectiles/Summon/ElementalAxeMinion.cs +++ b/Projectiles/Summon/CelestialAxeMinion.cs @@ -1,6 +1,7 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; +using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -9,7 +10,7 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Summon { - public class ElementalAxeMinion : ModProjectile, ILocalizedModType + public class CelestialAxeMinion : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Summon"; public override void SetStaticDefaults() @@ -41,8 +42,8 @@ namespace CalamityMod.Projectiles.Summon { Player player = Main.player[Projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - bool isMinion = Projectile.type == ModContent.ProjectileType(); - player.AddBuff(ModContent.BuffType(), 3600); + bool isMinion = Projectile.type == ModContent.ProjectileType(); + player.AddBuff(ModContent.BuffType(), 3600); if (isMinion) { if (player.dead) @@ -57,6 +58,14 @@ namespace CalamityMod.Projectiles.Summon Projectile.rotation += 0.075f; Projectile.ChargingMinionAI(1600f, 1800f, 2500f, 400f, 1, 30f, 24f, 12f, new Vector2(0f, -60f), 30f, 16f, true, true); + + // Destroy trees in GFB, because it's an axe, and axes should do that + if (Main.zenithWorld) + { + Point pointToCheck = (Projectile.position + Projectile.Size * 0.5f).ToTileCoordinates(); + var prismTooth = new PrismTooth(); // Grrrr CS0120 + prismTooth.AbsolutelyFuckingAnnihilateTrees(pointToCheck.X, pointToCheck.Y); + } } public override Color? GetAlpha(Color lightColor) diff --git a/Projectiles/Summon/ElementalAxeMinion.png b/Projectiles/Summon/CelestialAxeMinion.png similarity index 100% rename from Projectiles/Summon/ElementalAxeMinion.png rename to Projectiles/Summon/CelestialAxeMinion.png