From 51514fa9475039fbd4811e33d5cc5a2df4994136 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Mon, 9 Mar 2026 15:30:49 -0700 Subject: [PATCH 01/26] Melee debuff inflictions --- Items/Weapons/Melee/Orderbringer.cs | 2 +- .../Mods.CalamityMod.Items.Accessories.hjson | 2 +- ...Mods.CalamityMod.Items.Weapons.Melee.hjson | 171 ++++++++++++------ 3 files changed, 113 insertions(+), 62 deletions(-) diff --git a/Items/Weapons/Melee/Orderbringer.cs b/Items/Weapons/Melee/Orderbringer.cs index 3fc0e1639a..83631fe7fb 100644 --- a/Items/Weapons/Melee/Orderbringer.cs +++ b/Items/Weapons/Melee/Orderbringer.cs @@ -185,7 +185,7 @@ namespace CalamityMod.Items.Weapons.Melee Color currentColor = eColors[colorIndex]; Color nextColor = eColors[(colorIndex + 1) % eColors.Count]; Color finalColor = Color.Lerp(currentColor, nextColor, rate % 2f > 1f ? 1f : rate % 1f); - TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2"); + TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip3"); if (line != null) line.OverrideColor = Color.Lerp(finalColor, Color.White, 0.3f); } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index e0d5223d76..21092d14e2 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1101,7 +1101,7 @@ ManaPolarizer: { DisplayName: Mana Polarizer Tooltip: ''' - Increases max mana by 50 + Increases maximum mana by 50 Provides life regeneration and magic damage that scales based on how much mana you have Lower mana means more life regeneration, but less magic damage These scale from -2 to +2 HP/s, and 15% to 5% damage diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index c5383d7d53..d29908c703 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -2,8 +2,8 @@ AbsoluteZero: { DisplayName: Absolute Zero Tooltip: ''' - Shoots dark ice crystals - The blade creates frost explosions on direct hits + Shoots dark ice crystals that [cbuff:Frostburn2] enemies + The blade creates [cbuff:Frostburn2] explosions on direct hits Ancient blade imbued with the Archmage of Ice's magic ''' } @@ -14,6 +14,7 @@ AbyssBlade: { ''' Tosses a spinning abyssal sword that slices through enemies and releases water energy upon hitting a tile The sword will fly towards enemies after a ricochet, dealing 2x damage + Both the blade and the energy inflict [cbuff:CalamityMod/CrushDepth] ''' } @@ -55,7 +56,7 @@ AnarchyBlade: { Tooltip: ''' The lower your life the more damage this blade does - Your hits will generate a large explosion + Your hits will generate a large explosion of [cbuff:CalamityMod/BrimstoneFlames] While below 50% life your hits have a chance to instantly kill regular enemies ''' } @@ -118,12 +119,12 @@ ArkoftheElements: { AstralPike: { DisplayName: Astral Pike - Tooltip: Summons astral star swarms on hit and inflicts [cbuff:CalamityMod/AstralInfectionDebuff] + Tooltip: Summons astral star swarms on hit that spread the [cbuff:CalamityMod/AstralInfectionDebuff] } AstralScythe: { DisplayName: Astral Scythe - Tooltip: Shoots a scythe ring that accelerates over time and inflicts [cbuff:CalamityMod/AstralInfectionDebuff] + Tooltip: Shoots a scythe ring that accelerates over time and spreads the [cbuff:CalamityMod/AstralInfectionDebuff] } Ataraxia: { @@ -145,7 +146,7 @@ BalefulHarvester: { Tooltip: ''' A flaming scythe which is rapidly swung around three times in succession - Enemy hits summon flaming skulls that split into homing fire orbs + Enemy hits summon [cbuff:OnFire3] skulls that split into homing fire orbs ''' } @@ -154,7 +155,7 @@ BallOFugu: { Tooltip: ''' Throws a flailing abyssal pufferfish - Builds up poisonous spikes as it spins + Builds up [cbuff:Poisoned] spikes as it spins Spikes blow out of the fish as it retracts ''' } @@ -186,7 +187,11 @@ BladecrestOathsword: { BlightedCleaver: { DisplayName: Blighted Cleaver - Tooltip: Fires homing blazing blades + Tooltip: + ''' + Fires homing, blazing blades + Blazing blades inflict [cbuff:OnFire3] and [cbuff:Venom] + ''' } Bonebreaker: { @@ -205,19 +210,19 @@ BotanicPiercer: { Brimlance: { DisplayName: Brimlance - Tooltip: Creates brimstone explosions on enemy hits + Tooltip: Creates an explosion of [cbuff:CalamityMod/BrimstoneFlames] on enemy hits } Brimlash: { DisplayName: Brimlash - Tooltip: Fires a brimstone bolt that explodes into more bolts on hit + Tooltip: Fires a bolt of [cbuff:CalamityMod/BrimstoneFlames] that explodes into more bolts on hit } BrimstoneSword: { DisplayName: Brimstone Sword Tooltip: ''' - Summons brimstone geysers on hit + Summons geysers of [cbuff:CalamityMod/BrimstoneFlames] on hit Press to throw the sword like a javelin that explodes on hit ''' } @@ -250,7 +255,7 @@ BurningRevelation: { Tooltip: ''' {$Common.YoyoStatsInfinite} - An ever burning yoyo that constantly charges power + An ever burning yoyo that constantly charges power and inflicts [cbuff:CalamityMod/HolyFlames] Direct hits greatly increase the charge and release profaned energy that scales with charge level At maximum charge, the yoyo unleashes a volley of homing stars that gain damage the farther they travel Stars with maximum damage let off an additional explosion on hit @@ -265,7 +270,7 @@ BurntSienna: { Carnage: { DisplayName: Carnage - Tooltip: Enemies explode into homing blood on death + Tooltip: Causes [cbuff:CalamityMod/HeavyBleeding] and enemies explode into homing blood on death } CelestialClaymore: { @@ -277,7 +282,7 @@ ClamCrusher: { DisplayName: Clam Crusher Tooltip: ''' - Launches a huge clam that stuns enemies for a short amount of time + Launches a huge clam that inflicts [cbuff:CalamityMod/Eutrophication], stunning enemies for a short amount of time Starts being affected by gravity and does much more damage after being airborne for a while ''' } @@ -291,7 +296,7 @@ CosmicDischarge: { DisplayName: Cosmic Discharge Tooltip: ''' - Striking an enemy with the whip causes glacial explosions and grants the player the [cbuffplr:CalamityMod/CosmicFreeze] buff + Striking an enemy with the whip causes glacial explosions that inflict [cbuff:CalamityMod/Nightwither] and grant the player the [cbuffplr:CalamityMod/CosmicFreeze] buff [cbuffplr:CalamityMod/CosmicFreeze] gives the player +2 HP/s life regen while standing still and freezes enemies near the player ''' } @@ -303,6 +308,7 @@ CosmicShiv: { Fires a cosmic star that homes in on enemies Upon hitting an enemy, a barrage of blades will persistently strike Landing more stars causes more blades to strike + Cosmic stars and blades inflict [cbuff:CalamityMod/GodSlayerInferno] ''' } @@ -320,7 +326,11 @@ CrescentMoon: { DarklightGreatsword: { DisplayName: Darklight Greatsword - Tooltip: Fires darklight blades that slice through enemies, creating additional slashes + Tooltip: + ''' + Fires darklight blades that slice through enemies, creating additional slashes + Violet blades inflict [cbuff:CalamityMod/Shadowflame], Cyan blades inflict [cbuff:Frostburn2] + ''' } DeathsAscension: { @@ -337,7 +347,11 @@ DeathsAscension: { DefiledGreatsword: { DisplayName: Defiled Greatsword - Tooltip: Fires blazing, hyper, and sunlight blades + Tooltip: + ''' + Fires blazing, hyper, and sunlight blades + All blades inflict [cbuff:OnFire3] and [cbuff:Venom] + ''' } DepthCrusher: { @@ -346,6 +360,7 @@ DepthCrusher: { ''' Tosses a heavy abyssal crusher that releases water energy upon hitting a tile The crusher will ricochet off of tiles and enemies + Water energy will home onto enemies and inflict [cbuff:CalamityMod/RiptideDebuff] ''' } @@ -374,7 +389,7 @@ DevilsSunrise: { DisplayName: Devil's Sunrise Tooltip: ''' - Unleashes a devilish flurry of swipes + Unleashes a devilish flurry of swipes that inflict [cbuff:CalamityMod/BrimstoneFlames] Hellish energy charges in the blades over time, which is accelerated by striking foes Press while swinging the blades with full energy to throw the spinning blades to your cursor The spinning blades lodge into and repeatedly slice the first foe they meet, stealing their life @@ -388,6 +403,7 @@ DraconicDestruction: { ''' Fires a draconic sword beam that explodes into additional beams Additional beams fly up and down to shred enemies + Draconic beams inflict [cbuff:CalamityMod/Dragonfire], [cbuff:CalamityMod/Daybroken], [cbuff:Slimed] and [cbuff:Oiled] ''' } @@ -395,7 +411,7 @@ DragonPow: { DisplayName: Dragon Pow Tooltip: ''' - Fires a dragon head that releases draconic sparks + Fires a dragon head that releases [cbuff:CalamityMod/Dragonfire] sparks Summons a barrage of petals and waterfalls on enemy hits ''' } @@ -451,7 +467,7 @@ EntropicClaymore: { EssenceFlayer: { DisplayName: Essence Flayer - Tooltip: Shoots an essence scythe that generates healing spirits on enemy kills + Tooltip: Shoots an essence scythe that inflicts [cbuff:CalamityMod/GodSlayerInferno] and generates healing spirits on enemy kills } EvilSmasher: { @@ -512,6 +528,7 @@ FallenPaladinsHammer: { ''' Throws a heavy, gravity-affected hammer that will explode and return to you after striking an enemy After returning three times, a homing spectral hammer is summoned with devastating impact + Inflicts [cbuff:CalamityMod/BrimstoneFlames] ''' } @@ -520,18 +537,18 @@ FaultLine: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Explodes on enemy hits + Explodes into [cbuff:OnFire3] on enemy hits ''' } FeralthornClaymore: { DisplayName: Feralthorn Claymore - Tooltip: Sprouts thorns from enemies on hit + Tooltip: Inflicts [cbuff:Venom] and sprouts thorns from enemies on hit } FlarefrostBlade: { DisplayName: Flarefrost Blade - Tooltip: Fires a homing flarefrost orb + Tooltip: Fires a homing flarefrost orb that inflicts [cbuff:OnFire3] and [cbuff:Frostburn2] } Floodtide: { @@ -619,7 +636,7 @@ GalaxySmasher: { DisplayName: Galaxy Smasher Tooltip: ''' - Throws a heavy, gravity-affected hammer that will return to you after striking an enemy + Throws a heavy, gravity-affected hammer that inflicts [cbuff:CalamityMod/GodSlayerInferno] and will return to you after striking an enemy Consecutive hits summon more and more cosmic shards After hitting eight times, the hammer supercharges itself with galactic energies, delivering an apocalyptic strike that reverberates through space and time @@ -642,14 +659,14 @@ GalileoGladius: { GeliticBlade: { DisplayName: Gelitic Blade - Tooltip: Fires a fast gel wave that speeds up on enemy hits + Tooltip: Fires a fast gel wave that speeds up on enemy hits and covers them with [cbuff:Slimed] } GildedProboscis: { DisplayName: Gilded Proboscis Tooltip: ''' - Steals life proportional to the damage dealt to foes + Steals life proportional to the damage dealt to foes and inflicts [cbuff:CalamityMod/VermillionFlux] to charge up a precise thrust The thrust begins weak, but becomes more powerful the longer it's held to dash forward with a mighty upstrike @@ -707,21 +724,21 @@ Greentide: { DisplayName: Greentide Tooltip: ''' - Launches a spread of four teeth with one stronger piercing tooth in the center - Hitting with the blade creates two jaws of teeth to chomp on the enemy closest to your cursor + Launches a spread of four teeth with one stronger piercing tooth in the center that inflicts [cbuff:CalamityMod/RiptideDebuff] and [cbuff:Wet] + Hitting with the blade creates two jaws of teeth to chomp on the enemy closest to your cursor, causing [cbuff:CalamityMod/HeavyBleeding] ''' } HellfireFlamberge: { DisplayName: Hellfire Flamberge - Tooltip: Fires a spread of volcanic fireballs + Tooltip: Fires a spread of volcanic fireballs that sear enemies with [cbuff:OnFire3] } HellionFlowerSpear: { DisplayName: Hellion Flower Spear Tooltip: ''' - Shoots a flower spear tip + Shoots a flower spear tip that inflicts [cbuff:Venom] Summons petals from the sky on critical hits ''' } @@ -751,7 +768,7 @@ HolyCollider: { DisplayName: Holy Collider Tooltip: ''' - Swings a holy greatsword that can be charged for higher damage + Swings a holy greatsword that can be charged for higher damage and purifies all with [cbuff:CalamityMod/HolyFlames] Charged swings create four lingering flares that float around the point of impact Striking a flare with an uncharged strike will push it around and extend its lifetime Charged swings can empower flares, turning them into massive fireballs on hit and launching them to your cursor @@ -777,7 +794,7 @@ Lacerator: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Striking enemies conjures a bloody saw to shred them + Striking enemies conjures a bloody saw to shred them, inflicting [cbuff:CalamityMod/Laceration] The saw does more damage the more often the yoyo hits, and fades away when not striking enemies Enemies touching the edge of the sawblade get blood orbs torn out of them Picking up these blood orbs reduces the duration of [cbuffplr:PotionSickness] @@ -808,7 +825,7 @@ LionHeart: { DisplayName: Lion Heart Tooltip: ''' - Summons an energy explosion on enemy hits + Summons an energy explosion on hit that leaves enemies [cbuff:Electrified] Press to summon an energy shell for a few seconds that halves all damage sources This has a 45 second cooldown ''' @@ -838,7 +855,7 @@ MantisClaws: { DisplayName: Mantis Claws Tooltip: ''' - Rapidly swing a mantis claw which slashes foes in short range + Rapidly swing a mantis claw which slashes foes in short range, causing [cbuff:CalamityMod/HeavyBleeding] Press to form a pressurized bubble in front of you Once fully formed, the bubble is instantly snapped down on, blasting foes with a water jet 'It's just that shrimple' @@ -853,6 +870,7 @@ MawOfInfinity: { The first swing only hits close range The second swing additionally launches [c/ff00ff:Faith Incinerator] The third swing unleashes [c/ff00ff:Divinity Devourer] at your cursor, exploding for massive damage + [c/ff00ff:Faith Incinerator] and [c/ff00ff:Divinity Devourer] immolate your foes with [cbuff:CalamityMod/GodSlayerInferno] ''' } @@ -860,6 +878,7 @@ MirrorBlade: { DisplayName: Mirror Blade Tooltip: ''' + Inflicts [cbuff:CalamityMod/Nightwither] on hit Striking an enemy or a hostile projectile summons up to 10 orbiting mirror shards Any shards above 10 instead seek out enemies Holding coalesces the orbiting mirror shards into a shield @@ -885,7 +904,7 @@ MonstrousKnives: { Mourningstar: { DisplayName: Mourningstar - Tooltip: Launches two solar whip swords that explode on hit + Tooltip: Launches two solar whip swords that explode on hit and inflict [cbuff:CalamityMod/Daybroken] } Murasama: { @@ -915,7 +934,7 @@ Nadir: { Nebulash: { DisplayName: Nebulash - Tooltip: Fires a whip sword that emits particle explosions on hit and inflicts [cbuff:CalamityMod/AstralInfectionDebuff] + Tooltip: Fires a whip sword that emits particle explosions on hit and spreads the [cbuff:CalamityMod/AstralInfectionDebuff] } NeptunesBounty: { @@ -924,6 +943,7 @@ NeptunesBounty: { ''' Tosses a spinning abyssal sword which constantly sprays water energy Once the blade begins falling, it will redirect itself towards enemies with increased velocity and 2x damage + The abyssal sword and water energy crushes your foes with [cbuff:CalamityMod/HadopelagicPressure] ''' } @@ -932,7 +952,7 @@ Oblivion: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Fires brimstone darts when enemies are near + Fires darts infused with [cbuff:CalamityMod/BrimstoneFlames] when enemies are near ''' } @@ -968,7 +988,11 @@ OmegaBiomeBlade: { Omniblade: { DisplayName: Omniblade - Tooltip: An ancient blade forged by the legendary Omnir + Tooltip: + ''' + An ancient blade forged by the legendary Omnir + Inflicts [cbuff:CalamityMod/WhisperingDeath] + ''' } Orderbringer: { @@ -977,6 +1001,7 @@ Orderbringer: { ''' Fires piercing energy waves and summons four homing stars near your cursor Hits with the blade summon two beams from the sky + Struck enemies are left with a lethal rainbow of [cbuff:CalamityMod/ElementalMix] 'No matter where you may be you are never alone' ''' } @@ -996,13 +1021,17 @@ Pandemic: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Fires plague seekers when enemies are near + Fires [cbuff:CalamityMod/Plague] seekers when enemies are near ''' } PerfectDark: { DisplayName: Perfect Dark - Tooltip: Fires a vile ball that sticks to tiles and explodes + Tooltip: + ''' + Fires a vile ball that sticks to tiles and explodes + Inflicts [cbuff:CalamityMod/BrainRot] + ''' } PhosphorescentGauntlet: { @@ -1033,6 +1062,7 @@ PrismaticBreaker: { After charging up, a massive rainbow laser is unleashed to devastate your foes This weapon is boosted by both melee and ranged damage Seems to belong to a certain magical girl. Radiates with intense cosmic energy + COME BACK FOR ELE MIX INFILCTION TEXT ''' } @@ -1050,7 +1080,7 @@ Quagmire: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Fires spore clouds + Fires spore clouds that inflict [cbuff:Venom] ''' } @@ -1058,7 +1088,7 @@ RedSun: { DisplayName: Red Sun Tooltip: ''' - Drops a barrage of solar flares from the sky + Drops a barrage of solar flares from the sky that explode into homing bolts and inflict [cbuff:CalamityMod/Daybroken] 'Over paradise' ''' } @@ -1067,7 +1097,7 @@ RemsRevenge: { DisplayName: Rem's Revenge Tooltip: ''' - Summons blood explosions and inflicts [cbuff:CalamityMod/WitherDebuff] on hit + Summons blood explosions and inflicts [cbuff:CalamityMod/WitherDebuff] and [cbuff:CalamityMod/Laceration] on hit [cbuff:CalamityMod/WitherDebuff] lowers enemy defense by {0} 'A deadly morning star befitting its demonic owner' ''' @@ -1079,6 +1109,7 @@ Respiteblock: { ''' A glistening white chainsaw that spews green and purple blood all over Hitting enemies with the blade will heal you and deal immense damage + The blade and spewed blood inflict [cbuff:CalamityMod/HeavyBleeding] onto enemies [c/0e8401:'It's Ok To Be Dangerous'] ''' } @@ -1134,6 +1165,7 @@ SeekingScorcher: { Crystallizes in place if all bounces have not been exhausted Crystallized hatchets can be shattered by another axe Doing so empowers the hatchet based on the amount shattered but prevents it from crystallizing + Hatchets inflict [cbuff:CalamityMod/HolyFlames] on hit 'May your enemies burn in hell for the sins they have committed' ''' } @@ -1143,7 +1175,7 @@ Shimmerspark: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Fires stars when enemies are near + Inflicts [cbuff:Frostburn2] and fires stars when enemies are near ''' } @@ -1154,6 +1186,7 @@ SkytideDragoon: { Calls down a thunderbolt to strike and charge the tip of the spear Press to discharge the electricity as a spread of bolts that narrows as you spend the energy Hold when the spear catches the thunderbolt to redirect it to the cursor + Both attack modes inflict [cbuff:Electrified] ''' } @@ -1191,19 +1224,20 @@ SpineOfThanatos: { Releases 3 fast metallic whips outward Once all three collide, a prism of light is shot outward If an enemy is within the line of sight of the whips on collision, the light will fire towards it + Enemies bathed in light are annihilated by [cbuff:CalamityMod/MiracleBlight] ''' } StarnightLance: { DisplayName: Starnight Lance - Tooltip: Shoots a frigid starnight beam + Tooltip: Shoots a frigid starnight beam that inflicts [cbuff:Frostburn2] } StellarContempt: { DisplayName: Stellar Contempt Tooltip: ''' - Throws a heavy, gravity-affected hammer that will return to you after striking an enemy + Throws a heavy, gravity-affected hammer that inflicts [cbuff:CalamityMod/Nightwither] and will return to you after striking an enemy Consecutive hits call down more and more lunar flares from the sky After hitting five times, the hammer supercharges with lunar energy to pulverize your target ''' @@ -1211,7 +1245,7 @@ StellarContempt: { StellarStriker: { DisplayName: Stellar Striker - Tooltip: Summons a swarm of lunar flares from the sky on enemy hits + Tooltip: Summons a swarm of lunar flares from the sky on enemy hits which [cbuff:CalamityMod/Nightwither] enemies } StormRuler: { @@ -1240,6 +1274,7 @@ StreamGouge: { Summons a portal that the spear crosses through Shortly after going through the portal, portals appear near the mouse that release copies of the spear's cutting edge Enemies hit by the copies create lacerations in space, revealing a cosmic background + Struck foes are purged by [cbuff:CalamityMod/GodSlayerInferno] ''' } @@ -1256,7 +1291,7 @@ StygianShield: { SubmarineShocker: { DisplayName: Submarine Shocker - Tooltip: Enemies release electric sparks on hit + Tooltip: Enemies release electric sparks on hit, inflicting [cbuff:CalamityMod/StaticDischarge] } SulphurousGrabber: { @@ -1264,7 +1299,7 @@ SulphurousGrabber: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Occasionally releases a ring of colored bubbles + Inflicts [cbuff:CalamityMod/Irradiated] on foes and occasionally releases a ring of colored bubbles The yoyo powers up after touching a green bubble ''' } @@ -1293,7 +1328,7 @@ TenebreusTides: { Tooltip: ''' Shoots a water spear that pierces enemies and terrain - Striking enemies summon liquid blades and spears to assault the struck foe + Striking enemies inflicts [cbuff:CalamityMod/CrushDepth] and summons liquid blades and spears to assault the struck foe 'Inundatio ex Laminis' ''' } @@ -1346,13 +1381,17 @@ TheGodsGambit: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Fires a stream of slime when enemies are near + Fires a stream of [cbuff:Slimed] when enemies are near ''' } TheLastMourning: { DisplayName: The Last Mourning - Tooltip: Summons flaming pumpkins and mourning skulls that split into fire orbs on enemy hits + Tooltip: + ''' + Summons flaming pumpkins and mourning skulls that inflict [cbuff:CalamityMod/Daybroken] + Pumpkins and skulls split into homing [cbuff:OnFire3] orbs on enemy hits + ''' } TheMicrowave: { @@ -1360,7 +1399,7 @@ TheMicrowave: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Fries nearby enemies with radiation and inflicts [cbuff:CalamityMod/AstralInfectionDebuff] + Fries nearby enemies with radiation and spreads the [cbuff:CalamityMod/AstralInfectionDebuff] 'Cooking, Astral Infection style' ''' } @@ -1369,7 +1408,7 @@ TheMutilator: { DisplayName: The Mutilator Tooltip: ''' - Striking enemies empowers The Mutilator, increasing its damage + Striking enemies inflicts [cbuff:CalamityMod/Laceration] and empowers The Mutilator, increasing its damage At full charge, striking enemies causes a blood orb explosion Picking up these blood orbs reduces the duration of [cbuffplr:PotionSickness] ''' @@ -1382,7 +1421,12 @@ TheObliterator: { {$Common.YoyoStatsInfinite} [GFB] ''' - TooltipNormal: Occasionally performs a miniature [c/ff00ff:Dimensional Drive] at nearby foes + TooltipNormal: + ''' + Occasionally performs a miniature [c/ff00ff:Dimensional Drive] at nearby foes + [c/ff00ff:Dimensional Drive] obliterates targets with [cbuff:CalamityMod/GodSlayerInferno] + The yoyo inflicts [cbuff:CalamityMod/WhisperingDeath] on hit + ''' TooltipGFB: just a slight bit of dust spam on this weapon im afraid } @@ -1401,7 +1445,7 @@ TitanArm: { DisplayName: Titan Arm Tooltip: ''' - Sends enemies straight to the stars at the speed of light and inflicts [cbuff:CalamityMod/AstralInfectionDebuff] + Sends enemies straight to the stars at the speed of light and spreads the [cbuff:CalamityMod/AstralInfectionDebuff] Slap Hand but better ''' } @@ -1474,14 +1518,14 @@ TyphonsGreed: { DisplayName: Typhon's Greed Tooltip: ''' - Summons water spirits while in use + Summons water spirits that inflict [cbuff:CalamityMod/CrushDepth] while in use These water spirits will home in on enemies after traveling towards the player ''' } UltimusCleaver: { DisplayName: Ultimus Cleaver - Tooltip: Launches damaging homing sparks and explodes on enemy hits + Tooltip: Launches damaging homing sparks and explodes into [cbuff:OnFire3] on enemy hits } UrchinMace: { @@ -1489,6 +1533,7 @@ UrchinMace: { Tooltip: ''' Throws out a whirlpool when released + Struck enemies are lashed by [cbuff:CalamityMod/RiptideDebuff] [c/5C95A1:'The people of the sea were adept hunters, but they abhorred unnecessary violence.] [c/5C95A1:Unfortunately, neighboring nations were brutish, so they fashioned their tools for war.'] ''' @@ -1500,6 +1545,7 @@ VanishingPoint: { TooltipNormal: ''' Fires a lance beam that splits multiple times as it travels + Inflicts [cbuff:CalamityMod/ElementalMix] 'Rend the cosmos asunder!' ''' TooltipGFB: @@ -1511,7 +1557,11 @@ VanishingPoint: { VeinBurster: { DisplayName: Vein Burster - Tooltip: Fires a blood ball that sticks to tiles and explodes + Tooltip: + ''' + Fires a blood ball that sticks to tiles and explodes + Inflicts [cbuff:CalamityMod/BurningBlood] + ''' } Violence: { @@ -1540,7 +1590,7 @@ VoidEdge: { VulcaniteLance: { DisplayName: Vulcanite Lance - Tooltip: Explodes on enemy hits and summons homing flares on critical hits + Tooltip: Explodes into [cbuff:OnFire3] on enemy hits and summons homing flares on critical hits } WindBlade: { @@ -1568,6 +1618,7 @@ YateveoBloom: { A synthesis of jungle flora Throws a powerful rose flail Press to stab with a flower spear + Inflicts [cbuff:Poisoned] onto enemies ''' } From 20dc4355eb824737f72a0e8d7a0c95ca3ea27851 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Mon, 9 Mar 2026 19:39:14 -0700 Subject: [PATCH 02/26] Ranged --- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 132 ++++++++++-------- Projectiles/Ranged/NorfleetExplosion.cs | 7 - 2 files changed, 77 insertions(+), 62 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index f272922918..1bf273dc67 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -60,7 +60,7 @@ AntiMaterielRifle: { DisplayName: Anti-materiel Rifle Tooltip: ''' - Converts musket balls into .50 caliber sniper rounds that rip apart enemy defense and DR + Converts musket balls into .50 caliber sniper rounds that inflict [cbuff:CalamityMod/MarkedforDeath] Unleashes a second swarm of bullets on hit, with additional bullets on critical strikes ''' } @@ -80,6 +80,7 @@ Archerfish: { Tooltip: ''' Converts musket balls into streams of water +Water jets inflict [cbuff:CalamityMod/RiptideDebuff] and [cbuff:Wet] {$CommonItemTooltip.PercentChanceToSaveAmmo} ''' } @@ -98,7 +99,7 @@ Arietes41: { DisplayName: Arietes 41 Tooltip: ''' - Alternates between firing bullets imbued with lifesteal and electricity + Alternates between firing bullets imbued with lifesteal and [cbuff:Electrified] Electric imbued bullets create a small shockblast on impact, dealing additional damage to the enemy they hit ''' } @@ -115,12 +116,16 @@ ArterialAssault: { AstralBlaster: { DisplayName: Astral Blaster - Tooltip: Converts musket balls into homing astral rounds that inflict [cbuff:CalamityMod/AstralInfectionDebuff] + Tooltip: Converts musket balls into homing astral rounds that spread the [cbuff:CalamityMod/AstralInfectionDebuff] } AstrealDefeat: { DisplayName: Astreal Defeat - Tooltip: All arrows are converted to Astreal Arrows that emit flames as they travel + Tooltip: + ''' + All arrows are converted to Astreal Arrows that emit flames as they travel + Astreal Arrows inflict [cbuff:CalamityMod/Shadowflame] on hit + ''' } Auralis: { @@ -140,7 +145,7 @@ AuroraBlazer: { DisplayName: Aurora Blazer Tooltip: ''' - Spews a nebula stream which forms a star shaped pattern and inflicts [cbuff:CalamityMod/AstralInfectionDebuff] + Spews a nebula stream which forms a star shaped pattern and spreads the [cbuff:CalamityMod/AstralInfectionDebuff] Uses gel for ammo ''' } @@ -152,12 +157,12 @@ Barinade: { Barinautical: { DisplayName: Barinautical - Tooltip: Converts wooden arrows into strings of 3 electric bolt arrows that explode + Tooltip: Converts wooden arrows into strings of 3 [cbuff:Electrified] bolt arrows that explode } BarracudaGun: { DisplayName: Barracuda Gun - Tooltip: Fires four barracudas that latch onto enemies and shred them + Tooltip: Fires four barracudas that latch onto enemies and inflict [cbuff:CalamityMod/Laceration] } BladedgeRailbow: { @@ -182,7 +187,8 @@ BlissfulBombardier: { Tooltip: ''' Launches a crystalline missile high into the sky, raining holy fire on the cursor - The missile relentlessly seeks out a target before bursting into a massive [cbuff:CalamityMod/HolyFlames] explosion + The missile relentlessly seeks out a target before bursting into a massive explosion +All rockets inflict [cbuff:CalamityMod/HolyFlames] ''' } @@ -192,6 +198,7 @@ BloodBoiler: { ''' Fires twin streams of bloodfire that returns to you Returning bloodfire reduces [cbuffplr:PotionSickness] if it struck an enemy +Bloodfire streams inflict [cbuff:CalamityMod/Laceration] and [cbuff:CalamityMod/BurningBlood] onto enemies Uses your health as ammo 20% chance to save health ''' @@ -217,7 +224,11 @@ BlossomFlux: { BrimstoneFury: { DisplayName: Brimstone Fury - Tooltip: Converts wooden arrows into spreads of 3 brimstone bolts + Tooltip: + ''' + Converts wooden arrows into a spread of 3 brimstone bolts + Bolts inflict [cbuff:CalamityMod/BrimstoneFlames] + ''' } BulletFilledShotgun: { @@ -252,6 +263,7 @@ ChromaticEruption: { Tooltip: ''' Charges up to spew rainbow flames and pairs of homing chromatic flares +Flames and flares inflict enemies with [cbuff:CalamityMod/ElementalMix] Uses gel for ammo {$CommonItemTooltip.PercentChanceToSaveAmmo} ''' @@ -259,14 +271,18 @@ ChromaticEruption: { ClamorRifle: { DisplayName: Clamor Rifle - Tooltip: Converts musket balls into homing energy bolts + Tooltip: + ''' + Converts musket balls into homing energy bolts + Energy bolts briefly stun enemies, inflicting [cbuff:CalamityMod/Eutrophication] + ''' } CleansingBlaze: { DisplayName: Cleansing Blaze Tooltip: ''' - Unleashes a torrent of [cbuff:CalamityMod/GodSlayerInferno] flames which can pass through tiles + Unleashes a torrent of [cbuff:CalamityMod/GodSlayerInferno] which can pass through tiles Uses gel for ammo ''' } @@ -308,9 +324,9 @@ ContinentalGreatbow: { DisplayName: Continental Greatbow Tooltip: ''' - Wooden arrows are set alight with fire + Wooden arrows are set alight and catch foes [cbuff:OnFire] Fires 3 arrows at once - Fires 2 additional hellfire or ichor arrows + Fires 2 additional hellfire or [cbuff:Ichor] arrows ''' } @@ -384,9 +400,9 @@ DragonsBreath: { DisplayName: Dragon's Breath Tooltip: ''' - Fires [cbuff:CalamityMod/Dragonfire] fireballs at an accelerating pace + Fires intense blasts of [cbuff:CalamityMod/Dragonfire] at an accelerating pace Upon firing for long enough, you will begin using a cartridge of energy - While using a cartridge you will shoot a draconic beam of [cbuff:CalamityMod/Dragonfire] that doesn't consume ammo + While using a cartridge you will shoot a draconic beam of pure [cbuff:CalamityMod/Dragonfire] that doesn't consume ammo Once a cartridge has been ejected you will return to the original fire rate {$CommonItemTooltip.PercentChanceToSaveAmmo} ''' @@ -400,6 +416,7 @@ Drataliornus: { Fireballs rain meteors, leave dragon dust trails, and launch additional bolts at max speed Taking damage while firing the stream will interrupt it and reduce your wing flight time Press to fire two devastating barrages of five empowered fireballs +All attacks from the bow inflict an inferno of [cbuff:CalamityMod/Dragonfire] 'Just don't get hit' ''' } @@ -411,7 +428,7 @@ DriftwoodBow: { EternalBlizzard: { DisplayName: Eternal Blizzard - Tooltip: Fires an additional icicle arrow that freezes into a falling icicle + Tooltip: Fires an additional icicle arrow that freezes into a falling icicle and inflicts [cbuff:Frostburn2] } Eviscerator: { @@ -427,6 +444,7 @@ FetidEmesis: { When the barrel overheats, a spread of fetid chunks is vomited out After firing, the gun must cool back down before it can be used again Pressing while firing will instantly launch the chunks +Fetid chunks inflict [cbuff:CalamityMod/SulphuricPoisoning] {$CommonItemTooltip.PercentChanceToSaveAmmo} ''' } @@ -436,7 +454,7 @@ FirestormCannon: { Tooltip: ''' Fires a rapid barrage of flares that builds up a searing heat in the weapon - Firing for too long overheats the weapon, leaving it unusable for a short period + Firing for too long overheats the weapon, leaving it unusable for a short period and setting you [cbuffplr:OnFire] Press to put away the weapon, which preserves its heat {$CommonItemTooltip.PercentChanceToSaveAmmo} 'What could go wrong?' @@ -450,6 +468,7 @@ FlakKraken: { Fires pairs of abyssal flak shells that explode into wide cones of ink shrapnel Abyssal flak shells burst when they reach the cursor's position Direct hits with the flak shell will deal reduced shrapnel damage +All shells inflict [cbuff:CalamityMod/CrushDepth] on hit ''' } @@ -457,7 +476,7 @@ FlakToxicannon: { DisplayName: Flak Toxicannon Tooltip: ''' - Fires a toxic shell that explodes into a cone of radioactive sludge + Fires a toxic shell that explodes into a cone of [cbuff:CalamityMod/Irradiated] sludge Toxic shells burst when they reach the cursor's position Direct hits with the toxic shell will reduce the damage dealt by the sludge Uses rockets for ammo @@ -469,7 +488,8 @@ FlarewingBow: { Tooltip: ''' Shoots a spread of 3 arrows - Wooden arrows are converted into obsidian bats which home in after piercing once + Wooden arrows are converted into obsidian bats +Obsidian Bats home onto enemies after piercing once and inflict [cbuff:OnFire3] ''' } @@ -478,7 +498,7 @@ FlurrystormCannon: { Tooltip: ''' Fires a chain of snowballs that become faster over time - Has a chance to also fire an ice chunk that shatters into shards + Has a chance to also fire an ice chunk that shatters into shards and inflicts [cbuff:Frostburn] {$CommonItemTooltip.PercentChanceToSaveAmmo} ''' } @@ -488,7 +508,7 @@ FreedomStar: { Tooltip: ''' Tap to fire energy orbs - Hold to charge and fire a beam that explodes on hit + Hold to charge and fire a beam that explodes and inflicts [cbuff:CalamityMod/Nightwither] on hit ''' } @@ -497,7 +517,7 @@ FrostbiteBlaster: { Tooltip: ''' Fires a spread of 6 bullets - Converts musket balls into icicles + Converts musket balls into icicles that [cbuff:Frostburn2] enemies ''' } @@ -518,7 +538,7 @@ GoldenEagle: { Goobow: { DisplayName: Goobow - Tooltip: Fires two streams of slime + Tooltip: Addtionally fires two streams of [cbuff:Slimed] } GunkShot: { @@ -563,9 +583,10 @@ HeavenlyGale: { DisplayName: Heavenly Gale Tooltip: ''' - Fires a rapid stream of supercharged exo-crystals that inflict [cbuff:CalamityMod/MiracleBlight] + Fires a rapid stream of supercharged exo-crystals Holding the bow and waiting for some time before firing causes the crystals to become more powerful If the crystals are sufficiently powerful enough they will summon torrents of exo-lightning above whatever target they hit +Exo-lightning disintegrates hit enemies with [cbuff:CalamityMod/MiracleBlight] ''' } @@ -586,7 +607,7 @@ Helstorm: { Tooltip: ''' Fires two bullets at once - The gun also deals damage to enemies that touch it + The gun also deals damage and inflicts [cbuff:OnFire3] to enemies that touch it ''' } @@ -595,7 +616,7 @@ HoarfrostBow: { Tooltip: ''' Fires two arrows at once - Converts wooden arrows into mist arrows that spread frost mist on collision + Converts wooden arrows into mist arrows that spread frost mist on collision and inflict [cbuff:Frostburn2] ''' } @@ -643,7 +664,7 @@ Leviatitan: { DisplayName: Leviatitan Tooltip: ''' - Fires high velocity aqua blasts + Fires high velocity aqua blasts that [cbuff:CalamityMod/RiptideDebuff] foes Releases homing aberrations that cause [cbuff:CalamityMod/ArmorCrunch] every six shots to vomit a meteor that explodes on hit 'The L in LMG stands for Leviathan' @@ -713,7 +734,7 @@ Megalodon: { Tooltip: ''' Rapidly fires alternating bullets and pressurized water jets - Water jets consume no ammo + Water jets inflict [cbuff:CalamityMod/CrushDepth] and consume no ammo ''' } @@ -769,7 +790,7 @@ Monsoon: { Needler: { DisplayName: Needler - Tooltip: Converts musket balls into needles that stick to enemies and explode + Tooltip: Converts musket balls into [cbuff:Venom] infused needles that stick to enemies and explode } NettlevineGreatbow: { @@ -777,7 +798,7 @@ NettlevineGreatbow: { Tooltip: ''' Shoots 4 arrows at once - Fires 2 additional venom or chlorophyte arrows + Fires 2 additional [cbuff:Venom] or chlorophyte arrows ''' } @@ -846,8 +867,8 @@ OpalStriker: { DisplayName: Opal Striker Tooltip: ''' - Fires a chargeable heated energy bolt that pierces - Fully charged shots deal extra damage and move faster + Fires a chargeable heated energy bolt that pierces and sets enemies [cbuff:OnFire] + Fully charged shots deal extra damage, move faster and inflict [cbuff:OnFire3] ''' } @@ -892,7 +913,7 @@ Photoviscerator: { DisplayName: Photoviscerator Tooltip: ''' - Emits a continuous beam of [cbuff:CalamityMod/MiracleBlight] radiation that disintegrates everything + Emits a continuous beam of [cbuff:CalamityMod/MiracleBlight] that disintegrates everything Press to fire homing exo flares which stick to and incinerate enemies Uses gel for ammo The beam has a {0}% chance to save ammo @@ -905,7 +926,7 @@ PlagueTaintedSMG: { ''' Shoots [cbuff:CalamityMod/Plague] bullets that spawn drones on critical hits Bullets deal more damage and knockback the closer the enemy is - Drones have a much higher crit chance upon hitting a plagued enemy + Drones have a much higher crit chance upon hitting an enemy inflicted with [cbuff:CalamityMod/Plague] Press to fire a drone swarm ''' } @@ -915,7 +936,7 @@ PlanetaryAnnihilation: { Tooltip: ''' Fires a storm of 7 arrows from the sky - Wooden arrows are converted into homing energy bolts + Wooden arrows are converted into homing energy bolts that inflict [cbuff:CalamityMod/ElementalMix] ''' } @@ -989,7 +1010,7 @@ ReedBlowgun: { DisplayName: Reed Blowgun Tooltip: ''' - Fires a high-pressure stream of bubbles + Fires a high-pressure stream of bubbles that inflicts [cbuff:CalamityMod/RiptideDebuff] [c/5C95A1:'The Old Sea Kingdom never truly sought to expand beyond its initial borders.] [c/5C95A1:However, they had a perfect track record of repelling any invasions, thanks to their insurmountable advantage in the water.'] ''' @@ -1028,7 +1049,7 @@ ScorchedEarth: { Tooltip: ''' Fires a burst of four heat seeking missiles that rapidly accelerate after a short delay - All rockets explode into napalm cluster bombs on impact + All rockets explode into napalm cluster bombs on impact, inflicting [cbuff:Oiled] and [cbuff:CalamityMod/Daybroken] {$CommonItemTooltip.PercentChanceToSaveAmmo} 'Burns your targets to a fine crisp' ''' @@ -1068,7 +1089,7 @@ SeasSearing: { DisplayName: Sea's Searing Tooltip: ''' - Fires a string of bubbles summoning a shower of bubbles on hit + Fires a string of bubbles summoning a shower of bubbles on hit, inflicting [cbuff:Venom] and [cbuff:Wet] Press to fire a slower, larger water blast that summons a water spout ''' } @@ -1101,8 +1122,8 @@ Shardshocker: { ''' Fires an electrically charged crystal that travels a short distance before stopping The crystal will hang in the air and occasionally give off damaging pulses of electricity - Hitting a stopped crystal with a moving one will detonate both in a massive explosion that lets off homing shards - Direct hits with the crystal will create a smaller explosion and stun enemies + Hitting a stopped crystal with a moving one will detonate both in a massive [cbuff:Electrified] explosion that lets off homing shards + Direct hits with the crystal will create a smaller explosion and inflict [cbuff:CalamityMod/GalvanicCorrosion] 'Plasmaaaaaa!' ''' } @@ -1136,14 +1157,14 @@ SlagfireDouser: { Tooltip: ''' Sprays bursts of molten pollen - Molten pollen ignores 10 points of enemy defense and inflicts [cbuff:CalamityMod/SearingLava] + Molten pollen ignores 10 points of enemy defense and covers your enemies in [cbuff:CalamityMod/SearingLava] [c/FF9900:Capable of dousing townsfolk in lava too...] ''' } SlagMagnum: { DisplayName: Slag Magnum - Tooltip: Converts musket balls into fossil shards that split into additional shards on impact + Tooltip: Converts musket balls into fossil shards that inflict [cbuff:CalamityMod/ArmorCrunch] and split into additional shards on impact } SomaPrime: { @@ -1164,7 +1185,7 @@ SparkSpreader: { DisplayName: Spark Spreader Tooltip: ''' - Ignites your foe with flaming sparks + Fires sparks that set your foe [cbuff:OnFire] Uses gel for ammo ''' } @@ -1173,9 +1194,9 @@ SpectralstormCannon: { DisplayName: Spectralstorm Cannon Tooltip: ''' - Fires a barrage of spectral flares that builds up a searing heat in the weapon + Fires a barrage of [cbuff:CalamityMod/Nightwither] infused flares that builds up a searing heat in the weapon While cooling down, heat-seeking phantoms are continuously released - Firing for too long overheats the weapon, leaving it unusable for a short period + Firing for too long overheats the weapon, leaving it unusable for a short period and inflicting you with [cbuffplr:CalamityMod/Nightwither] However, triggering overheat releases a powerful burst of souls and resets heat Press to put away the weapon, which preserves its heat {$CommonItemTooltip.PercentChanceToSaveAmmo} @@ -1197,7 +1218,7 @@ SpeedBlaster: { Spyker: { DisplayName: Spyker - Tooltip: Converts musket balls into spikes that stick to enemies, tiles and explode into shrapnel + Tooltip: Converts musket balls into [cbuff:Venom] infused spikes that stick to enemies, tiles and explode into shrapnel } Starfleet: { @@ -1238,7 +1259,7 @@ StarSputter: { DisplayName: Star Sputter Tooltip: ''' - Fires a chain of comets that inflict [cbuff:CalamityMod/AstralInfectionDebuff] + Fires a chain of comets that spread the [cbuff:CalamityMod/AstralInfectionDebuff] Fires a bigger, more powerful comet every four rounds 'Look to the stars for a galaxy far, far away' ''' @@ -1246,7 +1267,7 @@ StarSputter: { StellarCannon: { DisplayName: Stellar Cannon - Tooltip: Launches an explosive astral crystal that inflicts [cbuff:CalamityMod/AstralInfectionDebuff] + Tooltip: Launches an explosive astral crystal that spreads the [cbuff:CalamityMod/AstralInfectionDebuff] } StormSurge: { @@ -1263,8 +1284,8 @@ SulphuricAcidCannon: { DisplayName: Sulphuric Acid Cannon Tooltip: ''' - Fires homing Acid Rockets - Acid Rockets stick to enemies and explode into [cbuff:CalamityMod/SulphuricPoisoning] mist after a short delay + Fires homing Acid Rockets that inflict [cbuff:CalamityMod/SulphuricPoisoning] + Acid Rockets stick to enemies and explode into toxic mist after a short delay ''' } @@ -1295,7 +1316,7 @@ SurgeDriver: { DisplayName: Surge Driver Tooltip: ''' - Press to release a laser ray that explodes on collision + Press to release a ray of [cbuff:CalamityMod/MiracleBlight] that explodes on collision Press to release a barrage of laser beams that release homing energy on enemy hits ''' } @@ -1328,7 +1349,7 @@ TelluricGlare: { DisplayName: Telluric Glare Tooltip: ''' - Rapidly fires volleys of arrows + Rapidly fires volleys of arrows infused with [cbuff:CalamityMod/HolyFlames] Every other arrow is converted into radiant greatarrows which pierce but quicky disappear after striking Wooden arrows are converted into more powerful greatarrows that deal increased damage ''' @@ -1344,7 +1365,7 @@ TheBlunderbass: { Tooltip: ''' Fires a large crystal that travels a short distance before bursting into homing shards - Direct hits with the crystal stun enemies and increase the amount of shards created + Direct hits with the crystal inflict [cbuff:CalamityMod/Eutrophication], stunning enemies and increase the amount of shards created ''' } @@ -1400,8 +1421,8 @@ TheStorm: { DisplayName: The Storm Tooltip: ''' - Fires a spread of homing lightning bolts and arrows from the sky - Converts wooden arrows into powerful electric beams + Fires a spread of homing [cbuff:Electrified] bolts and arrows from the sky + Converts wooden arrows into powerful lightning bolts ''' } @@ -1412,6 +1433,7 @@ ThreadOfEradication: { Charges up [c/ff00ff:God's Bane Doombeam] Channelling the weapon causes it to charge up [c/ff00ff:Hyperdeath Rift] instead While charging [c/ff00ff:Hyperdeath Rift], the bow's turning speed is slowed down +Eradicates enemies with [cbuff:CalamityMod/GodSlayerInferno] ''' } diff --git a/Projectiles/Ranged/NorfleetExplosion.cs b/Projectiles/Ranged/NorfleetExplosion.cs index d1bb85209d..5c54050e99 100644 --- a/Projectiles/Ranged/NorfleetExplosion.cs +++ b/Projectiles/Ranged/NorfleetExplosion.cs @@ -25,13 +25,6 @@ namespace CalamityMod.Projectiles.Ranged } public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) { - if (Projectile.ai[1] == 0) - target.AddBuff(BuffID.Daybreak, 300); - if (Projectile.ai[1] == 1) - target.AddBuff(BuffID.Electrified, 300); - if (Projectile.ai[1] == 2) - target.AddBuff(ModContent.BuffType(), 300); - if (Projectile.numHits > 0) Projectile.damage = (int)(Projectile.damage * 0.8f); if (Projectile.damage < 1) From 79c127f7d33ea8cc6e67d373bce40bd0d1367677 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Fri, 20 Mar 2026 13:14:25 -0700 Subject: [PATCH 03/26] Begin work on mage --- .../en-US/Mods.CalamityMod.Buffs.hjson | 2 +- ...Mods.CalamityMod.Items.Weapons.Magic.hjson | 54 ++++++++++++------- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 48 ++++++++--------- Projectiles/Magic/PhasedGodRay.cs | 2 - 4 files changed, 61 insertions(+), 45 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 52a94b32e7..c3fe4db96a 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -1005,7 +1005,7 @@ SandsWindBuff: { You are strengthened by the powers of sand Defense increased by {0}, damage increased by {1}%, and greatly buffed mana regen ''' - ItemTooltipPlayer: Increases damage, defense, and mana regeneration + ItemTooltipPlayer: Increases your defense by 12, damage by 12%, and greatly buffs mana regen } SilvaRevival: { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index 2081186560..f2d6a463b3 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -5,12 +5,16 @@ AbyssalTome: { AbyssShocker: { DisplayName: Abyss Shocker - Tooltip: Fires an erratic lightning bolt that arcs and bounces between enemies + Tooltip: + ''' + Fires an erratic lightning bolt that arcs and bounces between enemies + Inflicts [cbuff:CalamityMod/StaticDischarge] + ''' } AcidGun: { DisplayName: Acid Gun - Tooltip: Releases three streams of acid + Tooltip: Releases three streams of [cbuff:CalamityMod/Irradiated] acid } AetherfluxCannon: { @@ -22,14 +26,14 @@ AethersWhisper: { DisplayName: Aether's Whisper Tooltip: ''' - Inflicts long-lasting [cbuff:CalamityMod/Shadowflame] and splits on tile hits + Fires void beams that inflict long-lasting [cbuff:CalamityMod/Shadowflame] and split on tile hits Projectiles gain damage as they travel ''' } AlulaAustralis: { DisplayName: Alula Australis - Tooltip: Fires a beautiful aurora that inflicts [cbuff:CalamityMod/AstralInfectionDebuff] trailed by a star shower + Tooltip: Fires a beautiful aurora that spreads the [cbuff:CalamityMod/AstralInfectionDebuff] trailed by a star shower } AlphaDraconis: { @@ -53,6 +57,7 @@ AnahitasArpeggio: { Holding casts up to 6 treble clefs that orbit the player Releasing causes the treble clefs to converge at the cursor After converging, treble clefs seek your cursor + Treble clefs inflict [cbuff:Confused] on impact and apply [cbuff:Wet] ''' TooltipGFB: ''' @@ -87,13 +92,14 @@ Apotheosis: { Tooltip: ''' Unleashes interdimensional projection magic + Inflicts [cbuff:CalamityMod/WhisperingDeath] and [cbuff:CalamityMod/GodSlayerInferno] Eat worms ''' } AquamarineStaff: { DisplayName: Aquamarine Staff - Tooltip: Shoots two blue bolts + Tooltip: Shoots two blue bolts that [cbuff:CalamityMod/RiptideDebuff] enemies } ArchAmaryllis: { @@ -105,7 +111,7 @@ ArcticBearPaw: { DisplayName: Arctic Bear Paw Tooltip: ''' - Fires spiritual claws that ignore walls + Fires spiritual claws that ignore walls and inflict [cbuff:Frostburn2] 'The savage mauling that fits in your pocket' ''' } @@ -122,12 +128,12 @@ ArtAttack: { AstralachneaStaff: { DisplayName: Astralachnea Staff - Tooltip: Fires a spread of homing astral spider fangs that inflict [cbuff:CalamityMod/AstralInfectionDebuff] + Tooltip: Fires a spread of homing astral spider fangs that spread the [cbuff:CalamityMod/AstralInfectionDebuff] } AstralStaff: { DisplayName: Astral Staff - Tooltip: Summons a large crystal from the sky that has a large area of effect on impact and inflicts [cbuff:CalamityMod/AstralInfectionDebuff] + Tooltip: Summons a large crystal from the sky that has a large area of effect on impact and soread the [cbuff:CalamityMod/AstralInfectionDebuff] } Atlantis: { @@ -137,7 +143,11 @@ Atlantis: { AuguroftheVoid: { DisplayName: Augur of the Void - Tooltip: Casts a burst of elemental tentacles to spear your enemies + Tooltip: + ''' + Casts a burst of elemental tentacles to spear your enemies + Tentacles inflict enemies with [cbuff:CalamityMod/ElementalMix] + ''' } BelchingSaxophone: { @@ -145,6 +155,7 @@ BelchingSaxophone: { Tooltip: ''' Fires an array of dirty reeds, music notes, and sulphuric bubbles +Inflicts [cbuff:CalamityMod/Irradiated] onto enemies Doot ''' } @@ -166,7 +177,11 @@ BloodBath: { BrimroseStaff: { DisplayName: Brimrose Staff - Tooltip: Fires a spread of splitting beams of [cbuff:CalamityMod/BrimstoneFlames] + Tooltip: + ''' + Fires a spread of splitting brimstone beams + Inflicts [cbuff:CalamityMod/BrimstoneFlames] + ''' } BurningSea: { @@ -183,7 +198,7 @@ ChronomancersScythe: { DisplayName: Chronomancer's Scythe Tooltip: ''' - Rapidly fires icicles + Rapidly fires icicles that cause [cbuff:CalamityMod/TimeDistortion] on enemies Press to swing the scythe around you, creating a clock pattern of homing icicles Direct hits with the scythe have a chance to spawn clocks Collecting the clocks increases movement speed and acceleration by 5% for each clock collected @@ -193,7 +208,7 @@ ChronomancersScythe: { ClothiersWrath: { DisplayName: Clothier's Wrath - Tooltip: Shoots 3 shadowflame skulls + Tooltip: Shoots 3 [cbuff:CalamityMod/Shadowflame] skulls } CoralSpout: { @@ -220,6 +235,7 @@ Cryophobia: { Tooltip: ''' Fires an icy wave that splits multiple times and explodes into shards +Inflicts [cbuff:Frostburn2] 'Chill' ''' } @@ -239,7 +255,6 @@ DeathValleyDuster: { ''' Casts an enchanted blast of sand that passes through enemies and tiles Casting this spell at max mana while without mana sickness will cause it to give you and any player it hits the [cbuffplr:CalamityMod/SandsWindBuff] buff - [cbuffplr:CalamityMod/SandsWindBuff] increases your defense by {0}, damage by {1}%, and greatly buffs mana regen ''' } @@ -262,6 +277,7 @@ EidolicWail: { Tooltip: ''' Fires a string of bouncing sound waves that slow down on enemy hits +Sound waves crush enemies with [cbuff:CalamityMod/HadopelagicPressure] RIP headphone users ''' } @@ -320,14 +336,14 @@ FlareBolt: { DisplayName: Flare Bolt Tooltip: ''' - Casts a ball of flame + Casts a ball of flame that inflicts with [cbuff:OnFire] Balls of flame collapse into a swirling backdraft which pulls in enemies ''' } ForbiddenSun: { DisplayName: Forbidden Sun - Tooltip: Casts a fire orb that emits a gigantic explosion on hit + Tooltip: Casts a with [cbuff:OnFire3] orb that emits a gigantic explosion on hit } FrigidflashBolt: { @@ -337,6 +353,7 @@ FrigidflashBolt: { Casts a fast ball of flash-freezing magma that bounces off tiles When hitting a tile, a flarefrost burst is produced Press to cast an empowered ball that creates a collapsing flarefrost vortex which explodes +Inflicts both [cbuff:OnFire3] and [cbuff:Frostburn2] ''' } @@ -344,7 +361,7 @@ FrostBolt: { DisplayName: Frost Bolt Tooltip: ''' - Casts a ball of frost that bounces off tiles + Casts a ball of frost that bounces off tiles and inflicts with [cbuff:Frostburn] When hitting a tile, a small frost burst is produced Frost projectiles will fall to the ground after enough time has passed ''' @@ -402,6 +419,7 @@ HadalUrn: { Tooltip: ''' Fires a random assortment of ocean creatures +Inflicts [cbuff:CalamityMod/CrushDepth] and [cbuff:Venom] onto enemies 'There's no telling how long it was down there... or what lurks inside' ''' } @@ -410,14 +428,14 @@ HeliumFlash: { DisplayName: Helium Flash Tooltip: ''' - Launches volatile star cores which erupt into colossal fusion blasts + Launches volatile star cores which erupt into colossal fusion blasts and inflicts [cbuff:CalamityMod/Daybroken] 'The power of a galaxy, if only for mere moments' ''' } HellwingStaff: { DisplayName: Hellwing Staff - Tooltip: Casts flaming bats + Tooltip: Casts flaming bats that light enemies [cbuff:OnFire] } Hematemesis: { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 1bf273dc67..10afdb312b 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -80,7 +80,7 @@ Archerfish: { Tooltip: ''' Converts musket balls into streams of water -Water jets inflict [cbuff:CalamityMod/RiptideDebuff] and [cbuff:Wet] + Water jets inflict [cbuff:CalamityMod/RiptideDebuff] and [cbuff:Wet] {$CommonItemTooltip.PercentChanceToSaveAmmo} ''' } @@ -121,11 +121,11 @@ AstralBlaster: { AstrealDefeat: { DisplayName: Astreal Defeat - Tooltip: - ''' - All arrows are converted to Astreal Arrows that emit flames as they travel - Astreal Arrows inflict [cbuff:CalamityMod/Shadowflame] on hit - ''' + Tooltip: + ''' + All arrows are converted to Astreal Arrows that emit flames as they travel + Astreal Arrows inflict [cbuff:CalamityMod/Shadowflame] on hit + ''' } Auralis: { @@ -188,7 +188,7 @@ BlissfulBombardier: { ''' Launches a crystalline missile high into the sky, raining holy fire on the cursor The missile relentlessly seeks out a target before bursting into a massive explosion -All rockets inflict [cbuff:CalamityMod/HolyFlames] + All rockets inflict [cbuff:CalamityMod/HolyFlames] ''' } @@ -198,7 +198,7 @@ BloodBoiler: { ''' Fires twin streams of bloodfire that returns to you Returning bloodfire reduces [cbuffplr:PotionSickness] if it struck an enemy -Bloodfire streams inflict [cbuff:CalamityMod/Laceration] and [cbuff:CalamityMod/BurningBlood] onto enemies + Bloodfire streams inflict [cbuff:CalamityMod/Laceration] and [cbuff:CalamityMod/BurningBlood] onto enemies Uses your health as ammo 20% chance to save health ''' @@ -225,10 +225,10 @@ BlossomFlux: { BrimstoneFury: { DisplayName: Brimstone Fury Tooltip: - ''' - Converts wooden arrows into a spread of 3 brimstone bolts - Bolts inflict [cbuff:CalamityMod/BrimstoneFlames] - ''' + ''' + Converts wooden arrows into a spread of 3 brimstone bolts + Bolts inflict [cbuff:CalamityMod/BrimstoneFlames] + ''' } BulletFilledShotgun: { @@ -263,7 +263,7 @@ ChromaticEruption: { Tooltip: ''' Charges up to spew rainbow flames and pairs of homing chromatic flares -Flames and flares inflict enemies with [cbuff:CalamityMod/ElementalMix] + Flames and flares inflict enemies with [cbuff:CalamityMod/ElementalMix] Uses gel for ammo {$CommonItemTooltip.PercentChanceToSaveAmmo} ''' @@ -271,11 +271,11 @@ Flames and flares inflict enemies with [cbuff:CalamityMod/ElementalMix] ClamorRifle: { DisplayName: Clamor Rifle - Tooltip: - ''' - Converts musket balls into homing energy bolts - Energy bolts briefly stun enemies, inflicting [cbuff:CalamityMod/Eutrophication] - ''' + Tooltip: + ''' + Converts musket balls into homing energy bolts + Energy bolts briefly stun enemies, inflicting [cbuff:CalamityMod/Eutrophication] + ''' } CleansingBlaze: { @@ -416,7 +416,7 @@ Drataliornus: { Fireballs rain meteors, leave dragon dust trails, and launch additional bolts at max speed Taking damage while firing the stream will interrupt it and reduce your wing flight time Press to fire two devastating barrages of five empowered fireballs -All attacks from the bow inflict an inferno of [cbuff:CalamityMod/Dragonfire] + All attacks from the bow inflict an inferno of [cbuff:CalamityMod/Dragonfire] 'Just don't get hit' ''' } @@ -444,7 +444,7 @@ FetidEmesis: { When the barrel overheats, a spread of fetid chunks is vomited out After firing, the gun must cool back down before it can be used again Pressing while firing will instantly launch the chunks -Fetid chunks inflict [cbuff:CalamityMod/SulphuricPoisoning] + Fetid chunks inflict [cbuff:CalamityMod/SulphuricPoisoning] {$CommonItemTooltip.PercentChanceToSaveAmmo} ''' } @@ -468,7 +468,7 @@ FlakKraken: { Fires pairs of abyssal flak shells that explode into wide cones of ink shrapnel Abyssal flak shells burst when they reach the cursor's position Direct hits with the flak shell will deal reduced shrapnel damage -All shells inflict [cbuff:CalamityMod/CrushDepth] on hit + All shells inflict [cbuff:CalamityMod/CrushDepth] on hit ''' } @@ -489,7 +489,7 @@ FlarewingBow: { ''' Shoots a spread of 3 arrows Wooden arrows are converted into obsidian bats -Obsidian Bats home onto enemies after piercing once and inflict [cbuff:OnFire3] + Obsidian Bats home onto enemies after piercing once and inflict [cbuff:OnFire3] ''' } @@ -586,7 +586,7 @@ HeavenlyGale: { Fires a rapid stream of supercharged exo-crystals Holding the bow and waiting for some time before firing causes the crystals to become more powerful If the crystals are sufficiently powerful enough they will summon torrents of exo-lightning above whatever target they hit -Exo-lightning disintegrates hit enemies with [cbuff:CalamityMod/MiracleBlight] + Exo-lightning disintegrates hit enemies with [cbuff:CalamityMod/MiracleBlight] ''' } @@ -1433,7 +1433,7 @@ ThreadOfEradication: { Charges up [c/ff00ff:God's Bane Doombeam] Channelling the weapon causes it to charge up [c/ff00ff:Hyperdeath Rift] instead While charging [c/ff00ff:Hyperdeath Rift], the bow's turning speed is slowed down -Eradicates enemies with [cbuff:CalamityMod/GodSlayerInferno] + Eradicates enemies with [cbuff:CalamityMod/GodSlayerInferno] ''' } diff --git a/Projectiles/Magic/PhasedGodRay.cs b/Projectiles/Magic/PhasedGodRay.cs index a175116a5a..50547e5260 100644 --- a/Projectiles/Magic/PhasedGodRay.cs +++ b/Projectiles/Magic/PhasedGodRay.cs @@ -133,7 +133,6 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 180); for (int i = 0; i< 2; i++) { Color color = AetherfluxCannon.accentColor; @@ -147,7 +146,6 @@ namespace CalamityMod.Projectiles.Magic Projectile.damage = (int)(Projectile.damage * 0.865f); } - public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 180); public override Color? GetAlpha(Color lightColor) => new Color(222, 166, 44, 0); From 130671204d1b7c39ca57d2ecbd4ec5368a0e4074 Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Fri, 20 Mar 2026 16:14:07 -0500 Subject: [PATCH 04/26] Added sets for using debuff display without being in tooltip, burning sea as example for how to do so (even though it has it in tooltip) --- Items/CalamityGlobalItemTooltip.cs | 16 ++++++++++++++++ Items/Weapons/Magic/BurningSea.cs | 10 +++++++++- Systems/Collections/CalamityItemSets.cs | 13 ++++++++++++- 3 files changed, 37 insertions(+), 2 deletions(-) diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 9a29265148..42de2f1b16 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -304,6 +304,22 @@ namespace CalamityMod.Items } } + foreach (var buffID in CalamityItemSets.ExtraDebuffTooltip_Enemy[item.type]) + { + if (!buffIdsInTooltip.ContainsKey(buffID)) + buffIdsInTooltip.Add(buffID, 0); + else if (buffIdsInTooltip[buffID] == 1) + buffIdsInTooltip[buffID] = 2; + } + foreach (var buffID in CalamityItemSets.ExtraDebuffTooltip_Player[item.type]) + { + if (!buffIdsInTooltip.ContainsKey(buffID)) + buffIdsInTooltip.Add(buffID, 1); + else if (buffIdsInTooltip[buffID] == 0) + buffIdsInTooltip[buffID] = 2; + + } + if (buffIdsInTooltip.Count > 0) { bool showTheTip = false; diff --git a/Items/Weapons/Magic/BurningSea.cs b/Items/Weapons/Magic/BurningSea.cs index 91257ae1d1..21cfc40d29 100644 --- a/Items/Weapons/Magic/BurningSea.cs +++ b/Items/Weapons/Magic/BurningSea.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -15,6 +17,12 @@ namespace CalamityMod.Items.Weapons.Magic public const int BurnOutReuseDelay = 150; public const float FizzleOutTime = 40f; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Player[Type] = [ModContent.BuffType()]; + } + public override void SetDefaults() { Item.width = 28; diff --git a/Systems/Collections/CalamityItemSets.cs b/Systems/Collections/CalamityItemSets.cs index 5c01ead45c..49b8fbf3c2 100644 --- a/Systems/Collections/CalamityItemSets.cs +++ b/Systems/Collections/CalamityItemSets.cs @@ -1,4 +1,5 @@ -using CalamityMod.Items.Accessories; +using System.Collections.Generic; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Fishing.FishingRods; using CalamityMod.Items.LoreItems; @@ -135,5 +136,15 @@ namespace CalamityMod.Systems.Collections /// public static bool[] RogueSpikyBall = Factory.CreateBoolSet(ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType()); + + /// + /// Force display expandable tooltip debuff info for infliction on an enemy + /// + public static List[] ExtraDebuffTooltip_Enemy = Factory.CreateCustomSet>(new()); + + /// + /// Force display expandable tooltip debuff info for infliction on a player + /// + public static List[] ExtraDebuffTooltip_Player = Factory.CreateCustomSet>(new()); } } From 34073c5914e3de98581b4ab44a6fc2dda20bcfd8 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Fri, 20 Mar 2026 17:31:13 -0700 Subject: [PATCH 05/26] Melee, again --- Items/Weapons/Melee/AbsoluteZero.cs | 10 +- Items/Weapons/Melee/AbyssBlade.cs | 8 +- Items/Weapons/Melee/ArkoftheElements.cs | 6 + Items/Weapons/Melee/BallOFugu.cs | 7 +- Items/Weapons/Melee/Basher.cs | 9 +- Items/Weapons/Melee/BlightedCleaver.cs | 6 + Items/Weapons/Melee/BurningRevelation.cs | 5 +- Items/Weapons/Melee/CosmicDischarge.cs | 8 +- Items/Weapons/Melee/CosmicShiv.cs | 9 +- Items/Weapons/Melee/DarklightGreatsword.cs | 9 +- Items/Weapons/Melee/DefiledGreatsword.cs | 6 + Items/Weapons/Melee/DepthCrusher.cs | 9 +- Items/Weapons/Melee/DevilsSunrise.cs | 8 +- Items/Weapons/Melee/DraconicDestruction.cs | 11 +- Items/Weapons/Melee/Earth.cs | 6 + Items/Weapons/Melee/EssenceFlayer.cs | 6 +- Items/Weapons/Melee/Exoblade.cs | 6 + Items/Weapons/Melee/FallenPaladinsHammer.cs | 9 +- Items/Weapons/Melee/FaultLine.cs | 2 + Items/Weapons/Melee/FeralthornClaymore.cs | 5 + Items/Weapons/Melee/GalaxySmasher.cs | 8 +- Items/Weapons/Melee/GildedProboscis.cs | 9 +- Items/Weapons/Melee/Greentide.cs | 8 +- Items/Weapons/Melee/HellfireFlamberge.cs | 5 + Items/Weapons/Melee/HellionFlowerSpear.cs | 3 +- Items/Weapons/Melee/HolyCollider.cs | 8 +- Items/Weapons/Melee/InsidiousImpaler.cs | 8 +- Items/Weapons/Melee/Lightspeed.cs | 8 +- Items/Weapons/Melee/LionHeart.cs | 5 + Items/Weapons/Melee/MantisClaws.cs | 8 +- Items/Weapons/Melee/MirrorBlade.cs | 5 +- Items/Weapons/Melee/Mourningstar.cs | 8 +- Items/Weapons/Melee/Nadir.cs | 5 +- Items/Weapons/Melee/NeptunesBounty.cs | 8 +- Items/Weapons/Melee/Oblivion.cs | 5 +- Items/Weapons/Melee/OldLordClaymore.cs | 5 + Items/Weapons/Melee/Omniblade.cs | 9 +- Items/Weapons/Melee/Orderbringer.cs | 8 +- Items/Weapons/Melee/PerfectDark.cs | 5 + Items/Weapons/Melee/PhotonRipper.cs | 5 +- Items/Weapons/Melee/PrismaticBreaker.cs | 10 +- Items/Weapons/Melee/Quagmire.cs | 2 + Items/Weapons/Melee/RedSun.cs | 5 + Items/Weapons/Melee/RemsRevenge.cs | 10 +- Items/Weapons/Melee/Respiteblock.cs | 9 +- Items/Weapons/Melee/SausageMaker.cs | 5 +- Items/Weapons/Melee/SeekingScorcher.cs | 10 +- Items/Weapons/Melee/Shimmerspark.cs | 2 + Items/Weapons/Melee/SkytideDragoon.cs | 5 + Items/Weapons/Melee/SoulHarvester.cs | 6 + Items/Weapons/Melee/StarnightLance.cs | 2 + Items/Weapons/Melee/StellarContempt.cs | 9 +- Items/Weapons/Melee/StellarStriker.cs | 9 +- Items/Weapons/Melee/StreamGouge.cs | 9 +- Items/Weapons/Melee/SubmarineShocker.cs | 8 +- Items/Weapons/Melee/SulphurousGrabber.cs | 6 +- Items/Weapons/Melee/TeardropCleaver.cs | 8 +- Items/Weapons/Melee/TenebreusTides.cs | 5 +- Items/Weapons/Melee/TheGodsGambit.cs | 2 + Items/Weapons/Melee/TheLastMourning.cs | 9 +- Items/Weapons/Melee/TheMutilator.cs | 8 +- Items/Weapons/Melee/TheObliterator.cs | 5 + Items/Weapons/Melee/TheOracle.cs | 5 +- Items/Weapons/Melee/TyphonsGreed.cs | 8 +- Items/Weapons/Melee/UltimusCleaver.cs | 5 + Items/Weapons/Melee/UrchinMace.cs | 10 +- Items/Weapons/Melee/VanishingPoint.cs | 3 + Items/Weapons/Melee/VeinBurster.cs | 5 + Items/Weapons/Melee/VulcaniteLance.cs | 2 + Items/Weapons/Melee/YateveoBloom.cs | 2 + .../en-US/Mods.CalamityMod.Buffs.hjson | 2 +- ...Mods.CalamityMod.Items.Weapons.Magic.hjson | 20 +-- ...Mods.CalamityMod.Items.Weapons.Melee.hjson | 158 +++++++----------- 73 files changed, 472 insertions(+), 170 deletions(-) diff --git a/Items/Weapons/Melee/AbsoluteZero.cs b/Items/Weapons/Melee/AbsoluteZero.cs index 1b9615ad9c..accb547e0a 100644 --- a/Items/Weapons/Melee/AbsoluteZero.cs +++ b/Items/Weapons/Melee/AbsoluteZero.cs @@ -1,5 +1,7 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -9,7 +11,11 @@ namespace CalamityMod.Items.Weapons.Melee { public class AbsoluteZero : ModItem, ILocalizedModType { - public new string LocalizationCategory => "Items.Weapons.Melee"; + public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/AbyssBlade.cs b/Items/Weapons/Melee/AbyssBlade.cs index 3261dd0d92..3a8120a2be 100644 --- a/Items/Weapons/Melee/AbyssBlade.cs +++ b/Items/Weapons/Melee/AbyssBlade.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Abyss; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Melee { public new string LocalizationCategory => "Items.Weapons.Melee"; public static readonly SoundStyle SpinSound = new("CalamityMod/Sounds/Item/SpinningWoosh") { Volume = 0.65f }; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 74; diff --git a/Items/Weapons/Melee/ArkoftheElements.cs b/Items/Weapons/Melee/ArkoftheElements.cs index 4dc95aa92f..13cd093f00 100644 --- a/Items/Weapons/Melee/ArkoftheElements.cs +++ b/Items/Weapons/Melee/ArkoftheElements.cs @@ -2,8 +2,10 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -49,6 +51,10 @@ namespace CalamityMod.Items.Weapons.Melee parryTooltip.OverrideColor = Color.Orange; } } + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/BallOFugu.cs b/Items/Weapons/Melee/BallOFugu.cs index 475588999f..0cfb8bacb4 100644 --- a/Items/Weapons/Melee/BallOFugu.cs +++ b/Items/Weapons/Melee/BallOFugu.cs @@ -1,4 +1,5 @@ using CalamityMod.Projectiles.Melee.MaceFlails; +using CalamityMod.Systems.Collections; using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; @@ -11,7 +12,11 @@ namespace CalamityMod.Items.Weapons.Melee public static readonly SoundStyle BlowSound = new("CalamityMod/Sounds/Item/FuguBlow") { PitchVariance = 0.1f }; - public override void SetStaticDefaults() => ItemID.Sets.ToolTipDamageMultiplier[Type] = 2f; + public override void SetStaticDefaults() + { + ItemID.Sets.ToolTipDamageMultiplier[Type] = 2f; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Poisoned]; + } public override void SetDefaults() { Item.width = 30; diff --git a/Items/Weapons/Melee/Basher.cs b/Items/Weapons/Melee/Basher.cs index 99890c2b25..51df8be5f0 100644 --- a/Items/Weapons/Melee/Basher.cs +++ b/Items/Weapons/Melee/Basher.cs @@ -1,7 +1,10 @@ -using CalamityMod.Items.BaseItems; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Items.BaseItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.FurnitureAcidwood; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -11,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Melee public class Basher : CustomUseProjItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 56; diff --git a/Items/Weapons/Melee/BlightedCleaver.cs b/Items/Weapons/Melee/BlightedCleaver.cs index 978212c6eb..4af7e76f9f 100644 --- a/Items/Weapons/Melee/BlightedCleaver.cs +++ b/Items/Weapons/Melee/BlightedCleaver.cs @@ -1,4 +1,5 @@ using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +12,11 @@ namespace CalamityMod.Items.Weapons.Melee public class BlightedCleaver : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Venom]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/BurningRevelation.cs b/Items/Weapons/Melee/BurningRevelation.cs index 2770675015..02713762c5 100644 --- a/Items/Weapons/Melee/BurningRevelation.cs +++ b/Items/Weapons/Melee/BurningRevelation.cs @@ -1,5 +1,7 @@ -using CalamityMod.Projectiles.Melee.Yoyos; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Melee.Yoyos; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria.ID; @@ -23,6 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee ItemID.Sets.Yoyo[Type] = true; ItemID.Sets.GamepadExtraRange[Type] = 15; ItemID.Sets.GamepadSmartQuickReach[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Melee/CosmicDischarge.cs b/Items/Weapons/Melee/CosmicDischarge.cs index b9a87ab485..f88ed15754 100644 --- a/Items/Weapons/Melee/CosmicDischarge.cs +++ b/Items/Weapons/Melee/CosmicDischarge.cs @@ -1,5 +1,7 @@ -using CalamityMod.Projectiles.Melee; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Melee public class CosmicDischarge : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 50; diff --git a/Items/Weapons/Melee/CosmicShiv.cs b/Items/Weapons/Melee/CosmicShiv.cs index 0c5bdfb0f6..ba39ea2a6e 100644 --- a/Items/Weapons/Melee/CosmicShiv.cs +++ b/Items/Weapons/Melee/CosmicShiv.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Shortswords; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ID; using Terraria.ModLoader; @@ -10,7 +12,10 @@ namespace CalamityMod.Items.Weapons.Melee public class CosmicShiv : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 44; diff --git a/Items/Weapons/Melee/DarklightGreatsword.cs b/Items/Weapons/Melee/DarklightGreatsword.cs index 62b7bcfe59..828a7366d9 100644 --- a/Items/Weapons/Melee/DarklightGreatsword.cs +++ b/Items/Weapons/Melee/DarklightGreatsword.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -23,6 +25,11 @@ namespace CalamityMod.Items.Weapons.Melee internal const int SlashProjectileLimit = 4; internal const int SlashCreationRate = 18; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/DefiledGreatsword.cs b/Items/Weapons/Melee/DefiledGreatsword.cs index 54b6418ceb..3f700aa1de 100644 --- a/Items/Weapons/Melee/DefiledGreatsword.cs +++ b/Items/Weapons/Melee/DefiledGreatsword.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -21,6 +22,11 @@ namespace CalamityMod.Items.Weapons.Melee public const float ProjectileFullyVisibleDurationIncreasePerAdditionalProjectile = 8f; public const float ShootSpeed = 16f; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Venom]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/DepthCrusher.cs b/Items/Weapons/Melee/DepthCrusher.cs index fbae45ccaa..1b475aa4c1 100644 --- a/Items/Weapons/Melee/DepthCrusher.cs +++ b/Items/Weapons/Melee/DepthCrusher.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Melee; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.ModLoader; @@ -8,7 +10,10 @@ namespace CalamityMod.Items.Weapons.Melee public class DepthCrusher : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 56; diff --git a/Items/Weapons/Melee/DevilsSunrise.cs b/Items/Weapons/Melee/DevilsSunrise.cs index e9c89a9a0c..803e40bb4d 100644 --- a/Items/Weapons/Melee/DevilsSunrise.cs +++ b/Items/Weapons/Melee/DevilsSunrise.cs @@ -1,7 +1,9 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Crags; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Melee public class DevilsSunrise : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/DraconicDestruction.cs b/Items/Weapons/Melee/DraconicDestruction.cs index 7a99bb4606..bf443673ac 100644 --- a/Items/Weapons/Melee/DraconicDestruction.cs +++ b/Items/Weapons/Melee/DraconicDestruction.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -12,6 +14,13 @@ namespace CalamityMod.Items.Weapons.Melee public class DraconicDestruction : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Oiled]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Slimed]; + } public override void SetDefaults() { Item.width = 90; diff --git a/Items/Weapons/Melee/Earth.cs b/Items/Weapons/Melee/Earth.cs index 24d310a7ab..bad5ef2a16 100644 --- a/Items/Weapons/Melee/Earth.cs +++ b/Items/Weapons/Melee/Earth.cs @@ -1,9 +1,11 @@ using System.Collections.Generic; using System.Linq; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.BaseItems; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -16,6 +18,10 @@ namespace CalamityMod.Items.Weapons.Melee public class Earth : CustomUseProjItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 186; diff --git a/Items/Weapons/Melee/EssenceFlayer.cs b/Items/Weapons/Melee/EssenceFlayer.cs index 7d6a21fa2c..2154aef30e 100644 --- a/Items/Weapons/Melee/EssenceFlayer.cs +++ b/Items/Weapons/Melee/EssenceFlayer.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -14,7 +15,10 @@ namespace CalamityMod.Items.Weapons.Melee public class EssenceFlayer : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 100; diff --git a/Items/Weapons/Melee/Exoblade.cs b/Items/Weapons/Melee/Exoblade.cs index 928c535962..54b46b3bf1 100644 --- a/Items/Weapons/Melee/Exoblade.cs +++ b/Items/Weapons/Melee/Exoblade.cs @@ -1,7 +1,9 @@ using System.Linq; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -51,6 +53,10 @@ namespace CalamityMod.Items.Weapons.Melee public static int BaseUseTime = 49; public static int BeamsPerSwing = 4; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/FallenPaladinsHammer.cs b/Items/Weapons/Melee/FallenPaladinsHammer.cs index 4f655380f6..4415eec8c9 100644 --- a/Items/Weapons/Melee/FallenPaladinsHammer.cs +++ b/Items/Weapons/Melee/FallenPaladinsHammer.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.ModLoader; @@ -10,8 +12,11 @@ namespace CalamityMod.Items.Weapons.Melee { public new string LocalizationCategory => "Items.Weapons.Melee"; public static float Speed = 27f; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() - { Item.width = 14; Item.height = 28; diff --git a/Items/Weapons/Melee/FaultLine.cs b/Items/Weapons/Melee/FaultLine.cs index 28a6fd39e3..51436cd0e4 100644 --- a/Items/Weapons/Melee/FaultLine.cs +++ b/Items/Weapons/Melee/FaultLine.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Yoyos; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; @@ -20,6 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee ItemID.Sets.Yoyo[Type] = true; ItemID.Sets.GamepadExtraRange[Type] = 15; ItemID.Sets.GamepadSmartQuickReach[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; } public override void SetDefaults() diff --git a/Items/Weapons/Melee/FeralthornClaymore.cs b/Items/Weapons/Melee/FeralthornClaymore.cs index 4822393f51..62e01c0075 100644 --- a/Items/Weapons/Melee/FeralthornClaymore.cs +++ b/Items/Weapons/Melee/FeralthornClaymore.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -10,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Melee public class FeralthornClaymore : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Venom]; + } public override void SetDefaults() { Item.width = 68; diff --git a/Items/Weapons/Melee/GalaxySmasher.cs b/Items/Weapons/Melee/GalaxySmasher.cs index eba0964390..34f08880f9 100644 --- a/Items/Weapons/Melee/GalaxySmasher.cs +++ b/Items/Weapons/Melee/GalaxySmasher.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -15,6 +17,10 @@ namespace CalamityMod.Items.Weapons.Melee { public new string LocalizationCategory => "Items.Weapons.Melee"; public static float Speed = 35f; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/GildedProboscis.cs b/Items/Weapons/Melee/GildedProboscis.cs index 6fdeb93033..ae7af30e29 100644 --- a/Items/Weapons/Melee/GildedProboscis.cs +++ b/Items/Weapons/Melee/GildedProboscis.cs @@ -1,11 +1,13 @@ -using CalamityMod.Projectiles.BaseProjectiles; +using System.Collections.Generic; +using System.Linq; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Projectiles.BaseProjectiles; using CalamityMod.Projectiles.Melee.Spears; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; -using System.Collections.Generic; -using System.Linq; namespace CalamityMod.Items.Weapons.Melee { @@ -17,6 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; base.SetStaticDefaults(); } public override bool SizeModifiers => false; diff --git a/Items/Weapons/Melee/Greentide.cs b/Items/Weapons/Melee/Greentide.cs index 7311c1be59..df7546130e 100644 --- a/Items/Weapons/Melee/Greentide.cs +++ b/Items/Weapons/Melee/Greentide.cs @@ -1,6 +1,8 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -22,7 +24,11 @@ namespace CalamityMod.Items.Weapons.Melee internal const int TotalRows = 2; internal const int TotalTeeth = 3; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Wet]; + } public override void SetDefaults() { Item.width = 62; diff --git a/Items/Weapons/Melee/HellfireFlamberge.cs b/Items/Weapons/Melee/HellfireFlamberge.cs index 089e30c529..e4e2d52b0e 100644 --- a/Items/Weapons/Melee/HellfireFlamberge.cs +++ b/Items/Weapons/Melee/HellfireFlamberge.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -12,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Melee public class HellfireFlamberge : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; + } public override void SetDefaults() { Item.width = 58; diff --git a/Items/Weapons/Melee/HellionFlowerSpear.cs b/Items/Weapons/Melee/HellionFlowerSpear.cs index 94a013896c..362f888b31 100644 --- a/Items/Weapons/Melee/HellionFlowerSpear.cs +++ b/Items/Weapons/Melee/HellionFlowerSpear.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Spears; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -11,9 +12,9 @@ namespace CalamityMod.Items.Weapons.Melee public new string LocalizationCategory => "Items.Weapons.Melee"; public override void SetStaticDefaults() { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Venom]; ItemID.Sets.Spears[Type] = true; } - public override void SetDefaults() { Item.width = 64; diff --git a/Items/Weapons/Melee/HolyCollider.cs b/Items/Weapons/Melee/HolyCollider.cs index 51133ffcf2..a0d8a82f4c 100644 --- a/Items/Weapons/Melee/HolyCollider.cs +++ b/Items/Weapons/Melee/HolyCollider.cs @@ -1,7 +1,9 @@ -using CalamityMod.Items.BaseItems; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.BaseItems; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -15,6 +17,10 @@ namespace CalamityMod.Items.Weapons.Melee public class HolyCollider : CustomUseProjItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 114; diff --git a/Items/Weapons/Melee/InsidiousImpaler.cs b/Items/Weapons/Melee/InsidiousImpaler.cs index 8ccf621c19..f26a660a6f 100644 --- a/Items/Weapons/Melee/InsidiousImpaler.cs +++ b/Items/Weapons/Melee/InsidiousImpaler.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Melee public class InsidiousImpaler : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 66; diff --git a/Items/Weapons/Melee/Lightspeed.cs b/Items/Weapons/Melee/Lightspeed.cs index 28e525dd29..2b6cae8972 100644 --- a/Items/Weapons/Melee/Lightspeed.cs +++ b/Items/Weapons/Melee/Lightspeed.cs @@ -1,7 +1,9 @@ -using CalamityMod.Cooldowns; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Cooldowns; using CalamityMod.Items.Materials; using CalamityMod.Particles; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -16,6 +18,10 @@ namespace CalamityMod.Items.Weapons.Melee public new string LocalizationCategory => "Items.Weapons.Melee"; public static int MaxEnergy = 100; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/LionHeart.cs b/Items/Weapons/Melee/LionHeart.cs index 0d1e6e1441..7e1889280e 100644 --- a/Items/Weapons/Melee/LionHeart.cs +++ b/Items/Weapons/Melee/LionHeart.cs @@ -2,6 +2,7 @@ using CalamityMod.Projectiles.Ranged; using CalamityMod.Projectiles.Typeless; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -13,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Melee public class LionHeart : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Electrified]; + } public override void SetDefaults() { Item.width = 60; diff --git a/Items/Weapons/Melee/MantisClaws.cs b/Items/Weapons/Melee/MantisClaws.cs index 74d26cb6f7..2aa0ee6693 100644 --- a/Items/Weapons/Melee/MantisClaws.cs +++ b/Items/Weapons/Melee/MantisClaws.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.BaseItems; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.BaseItems; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -9,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Melee public class MantisClaws : CustomUseProjItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 26; diff --git a/Items/Weapons/Melee/MirrorBlade.cs b/Items/Weapons/Melee/MirrorBlade.cs index 3152bb7eb5..a27de21467 100644 --- a/Items/Weapons/Melee/MirrorBlade.cs +++ b/Items/Weapons/Melee/MirrorBlade.cs @@ -1,8 +1,10 @@ -using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Summon; using CalamityMod.Projectiles.BaseProjectiles; using CalamityMod.Projectiles.Boss; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -29,6 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 5)); ItemID.Sets.AnimatesAsSoul[Type] = true; ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; base.SetStaticDefaults(); } public override void SetDefaults() diff --git a/Items/Weapons/Melee/Mourningstar.cs b/Items/Weapons/Melee/Mourningstar.cs index 672286eabd..b1aa4ad348 100644 --- a/Items/Weapons/Melee/Mourningstar.cs +++ b/Items/Weapons/Melee/Mourningstar.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Melee public class Mourningstar : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 16; diff --git a/Items/Weapons/Melee/Nadir.cs b/Items/Weapons/Melee/Nadir.cs index e8edf14bad..d872e4b634 100644 --- a/Items/Weapons/Melee/Nadir.cs +++ b/Items/Weapons/Melee/Nadir.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Spears; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; using Terraria.ID; @@ -16,6 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; ItemID.Sets.Spears[Type] = true; } diff --git a/Items/Weapons/Melee/NeptunesBounty.cs b/Items/Weapons/Melee/NeptunesBounty.cs index 4e680798df..599732a4a1 100644 --- a/Items/Weapons/Melee/NeptunesBounty.cs +++ b/Items/Weapons/Melee/NeptunesBounty.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Melee { public new string LocalizationCategory => "Items.Weapons.Melee"; public static readonly SoundStyle SpinSound = new("CalamityMod/Sounds/Item/SpinningWoosh") { Volume = 0.65f }; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 122; diff --git a/Items/Weapons/Melee/Oblivion.cs b/Items/Weapons/Melee/Oblivion.cs index 142c3e5f28..178a6e626d 100644 --- a/Items/Weapons/Melee/Oblivion.cs +++ b/Items/Weapons/Melee/Oblivion.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Projectiles.Melee.Yoyos; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; @@ -20,6 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee ItemID.Sets.Yoyo[Type] = true; ItemID.Sets.GamepadExtraRange[Type] = 15; ItemID.Sets.GamepadSmartQuickReach[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Melee/OldLordClaymore.cs b/Items/Weapons/Melee/OldLordClaymore.cs index d3673b326a..d7f835582f 100644 --- a/Items/Weapons/Melee/OldLordClaymore.cs +++ b/Items/Weapons/Melee/OldLordClaymore.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.BaseItems; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -12,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Melee public class OldLordClaymore : CustomUseProjItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/Omniblade.cs b/Items/Weapons/Melee/Omniblade.cs index ac56bb47f4..597c7dcf3f 100644 --- a/Items/Weapons/Melee/Omniblade.cs +++ b/Items/Weapons/Melee/Omniblade.cs @@ -1,5 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -9,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Melee public class Omniblade : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 64; diff --git a/Items/Weapons/Melee/Orderbringer.cs b/Items/Weapons/Melee/Orderbringer.cs index 83631fe7fb..2733b2f20a 100644 --- a/Items/Weapons/Melee/Orderbringer.cs +++ b/Items/Weapons/Melee/Orderbringer.cs @@ -1,10 +1,12 @@ using System; using System.Collections.Generic; using System.Linq; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Particles; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -31,6 +33,10 @@ namespace CalamityMod.Items.Weapons.Melee public bool spawnProj = true; public bool spawnTrueMeleeProj = true; public bool playSound = true; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = Item.height = 112; @@ -185,7 +191,7 @@ namespace CalamityMod.Items.Weapons.Melee Color currentColor = eColors[colorIndex]; Color nextColor = eColors[(colorIndex + 1) % eColors.Count]; Color finalColor = Color.Lerp(currentColor, nextColor, rate % 2f > 1f ? 1f : rate % 1f); - TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip3"); + TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2"); if (line != null) line.OverrideColor = Color.Lerp(finalColor, Color.White, 0.3f); } diff --git a/Items/Weapons/Melee/PerfectDark.cs b/Items/Weapons/Melee/PerfectDark.cs index 1579b0affa..c97e8bf4bd 100644 --- a/Items/Weapons/Melee/PerfectDark.cs +++ b/Items/Weapons/Melee/PerfectDark.cs @@ -1,6 +1,7 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -10,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Melee public class PerfectDark : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 50; diff --git a/Items/Weapons/Melee/PhotonRipper.cs b/Items/Weapons/Melee/PhotonRipper.cs index ca5701977f..627a04d27c 100644 --- a/Items/Weapons/Melee/PhotonRipper.cs +++ b/Items/Weapons/Melee/PhotonRipper.cs @@ -1,8 +1,10 @@ -using CalamityMod.Projectiles.Melee; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.ModLoader; @@ -13,6 +15,7 @@ namespace CalamityMod.Items.Weapons.Melee public new string LocalizationCategory => "Items.Weapons.Melee"; public override void SetStaticDefaults() { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true; } diff --git a/Items/Weapons/Melee/PrismaticBreaker.cs b/Items/Weapons/Melee/PrismaticBreaker.cs index 369c603161..c46f5daea2 100644 --- a/Items/Weapons/Melee/PrismaticBreaker.cs +++ b/Items/Weapons/Melee/PrismaticBreaker.cs @@ -1,7 +1,9 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -15,7 +17,11 @@ namespace CalamityMod.Items.Weapons.Melee { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() => Item.staff[Type] = true; + public override void SetStaticDefaults() + { + Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 50; diff --git a/Items/Weapons/Melee/Quagmire.cs b/Items/Weapons/Melee/Quagmire.cs index 4e6f6f1fcd..111b1073f8 100644 --- a/Items/Weapons/Melee/Quagmire.cs +++ b/Items/Weapons/Melee/Quagmire.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Yoyos; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; @@ -16,6 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Venom]; ItemID.Sets.Yoyo[Type] = true; ItemID.Sets.GamepadExtraRange[Type] = 15; ItemID.Sets.GamepadSmartQuickReach[Type] = true; diff --git a/Items/Weapons/Melee/RedSun.cs b/Items/Weapons/Melee/RedSun.cs index 71c7e89b04..4e9bb39a95 100644 --- a/Items/Weapons/Melee/RedSun.cs +++ b/Items/Weapons/Melee/RedSun.cs @@ -3,6 +3,7 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -15,6 +16,10 @@ namespace CalamityMod.Items.Weapons.Melee public class RedSun : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 62; diff --git a/Items/Weapons/Melee/RemsRevenge.cs b/Items/Weapons/Melee/RemsRevenge.cs index 9be51a7c3a..2982d6c903 100644 --- a/Items/Weapons/Melee/RemsRevenge.cs +++ b/Items/Weapons/Melee/RemsRevenge.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.MaceFlails; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; @@ -13,7 +15,11 @@ namespace CalamityMod.Items.Weapons.Melee public static int WitherDefenseReduction = 20; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(WitherDefenseReduction); - public override void SetStaticDefaults() => ItemID.Sets.ToolTipDamageMultiplier[Type] = 2f; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + ItemID.Sets.ToolTipDamageMultiplier[Type] = 2f; + } public override void SetDefaults() { Item.width = 44; diff --git a/Items/Weapons/Melee/Respiteblock.cs b/Items/Weapons/Melee/Respiteblock.cs index b7fff3656f..bff7e669c5 100644 --- a/Items/Weapons/Melee/Respiteblock.cs +++ b/Items/Weapons/Melee/Respiteblock.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -9,7 +11,10 @@ namespace CalamityMod.Items.Weapons.Melee public class Respiteblock : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 108; diff --git a/Items/Weapons/Melee/SausageMaker.cs b/Items/Weapons/Melee/SausageMaker.cs index a68101c08b..2ac51b673b 100644 --- a/Items/Weapons/Melee/SausageMaker.cs +++ b/Items/Weapons/Melee/SausageMaker.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Melee.Spears; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Melee.Spears; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -11,6 +13,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { ItemID.Sets.Spears[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Melee/SeekingScorcher.cs b/Items/Weapons/Melee/SeekingScorcher.cs index 8fb360e91a..4878d64fc1 100644 --- a/Items/Weapons/Melee/SeekingScorcher.cs +++ b/Items/Weapons/Melee/SeekingScorcher.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; @@ -14,7 +16,11 @@ namespace CalamityMod.Items.Weapons.Melee public static readonly SoundStyle ThrowSound = new("CalamityMod/Sounds/Item/SwingMid") { Volume = 0.5f, Pitch = -0.35f, PitchVariance = 0.1f }; public static readonly SoundStyle HitSound = new("CalamityMod/Sounds/Custom/Providence/ProvidenceHolyBlastImpact") { Volume = 0.5f, Pitch = 0.2f, PitchVariance = 0.2f }; public static readonly SoundStyle ShatterSound = new("CalamityMod/Sounds/Item/BlazingCoreParry") { Volume = 0.4f, PitchVariance = 0.2f }; - public static readonly SoundStyle LightShatterSound = new("CalamityMod/Sounds/NPCKilled/CrownJewelShatter") { Pitch = 0.4f, PitchVariance = 0.3f }; + public static readonly SoundStyle LightShatterSound = new("CalamityMod/Sounds/NPCKilled/CrownJewelShatter") { Pitch = 0.4f, PitchVariance = 0.3f }; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/Shimmerspark.cs b/Items/Weapons/Melee/Shimmerspark.cs index 464e024176..d4e3ce1078 100644 --- a/Items/Weapons/Melee/Shimmerspark.cs +++ b/Items/Weapons/Melee/Shimmerspark.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Yoyos; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; @@ -16,6 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; ItemID.Sets.Yoyo[Type] = true; ItemID.Sets.GamepadExtraRange[Type] = 15; ItemID.Sets.GamepadSmartQuickReach[Type] = true; diff --git a/Items/Weapons/Melee/SkytideDragoon.cs b/Items/Weapons/Melee/SkytideDragoon.cs index fea9b76093..8815a58f7b 100644 --- a/Items/Weapons/Melee/SkytideDragoon.cs +++ b/Items/Weapons/Melee/SkytideDragoon.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria.ID; @@ -12,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Melee public class SkytideDragoon : CustomUseProjItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Electrified]; + } public override void SetDefaults() { Item.width = 86; diff --git a/Items/Weapons/Melee/SoulHarvester.cs b/Items/Weapons/Melee/SoulHarvester.cs index 5e96d09f84..9bf464b713 100644 --- a/Items/Weapons/Melee/SoulHarvester.cs +++ b/Items/Weapons/Melee/SoulHarvester.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using CalamityMod.Projectiles.Typeless; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -13,6 +14,11 @@ namespace CalamityMod.Items.Weapons.Melee public class SoulHarvester : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.CursedInferno]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 62; diff --git a/Items/Weapons/Melee/StarnightLance.cs b/Items/Weapons/Melee/StarnightLance.cs index 8dc323f208..78aa68e9ab 100644 --- a/Items/Weapons/Melee/StarnightLance.cs +++ b/Items/Weapons/Melee/StarnightLance.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Spears; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -11,6 +12,7 @@ namespace CalamityMod.Items.Weapons.Melee public new string LocalizationCategory => "Items.Weapons.Melee"; public override void SetStaticDefaults() { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; ItemID.Sets.Spears[Type] = true; } diff --git a/Items/Weapons/Melee/StellarContempt.cs b/Items/Weapons/Melee/StellarContempt.cs index ca015ca064..68fb83607c 100644 --- a/Items/Weapons/Melee/StellarContempt.cs +++ b/Items/Weapons/Melee/StellarContempt.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.ModLoader; @@ -10,7 +12,10 @@ namespace CalamityMod.Items.Weapons.Melee { public new string LocalizationCategory => "Items.Weapons.Melee"; public static float Speed = 30f; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 74; diff --git a/Items/Weapons/Melee/StellarStriker.cs b/Items/Weapons/Melee/StellarStriker.cs index 9445abfed3..87193b5c73 100644 --- a/Items/Weapons/Melee/StellarStriker.cs +++ b/Items/Weapons/Melee/StellarStriker.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.BaseItems; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.BaseItems; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.ModLoader; @@ -8,7 +10,10 @@ namespace CalamityMod.Items.Weapons.Melee public class StellarStriker : CustomUseProjItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 100; diff --git a/Items/Weapons/Melee/StreamGouge.cs b/Items/Weapons/Melee/StreamGouge.cs index 759d565a3d..9d6763fb07 100644 --- a/Items/Weapons/Melee/StreamGouge.cs +++ b/Items/Weapons/Melee/StreamGouge.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Spears; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -18,7 +20,10 @@ namespace CalamityMod.Items.Weapons.Melee public const int SpearFireTime = 24; public const int PortalLifetime = 30; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 100; diff --git a/Items/Weapons/Melee/SubmarineShocker.cs b/Items/Weapons/Melee/SubmarineShocker.cs index d2c61af5a5..11eb6c8190 100644 --- a/Items/Weapons/Melee/SubmarineShocker.cs +++ b/Items/Weapons/Melee/SubmarineShocker.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Projectiles.Melee.Shortswords; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.ModLoader; @@ -8,6 +10,10 @@ namespace CalamityMod.Items.Weapons.Melee public class SubmarineShocker : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 32; diff --git a/Items/Weapons/Melee/SulphurousGrabber.cs b/Items/Weapons/Melee/SulphurousGrabber.cs index 91e8f8d9e9..300a79e127 100644 --- a/Items/Weapons/Melee/SulphurousGrabber.cs +++ b/Items/Weapons/Melee/SulphurousGrabber.cs @@ -1,4 +1,7 @@ -using CalamityMod.Projectiles.Melee.Yoyos; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Projectiles.Melee.Yoyos; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; @@ -15,6 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; ItemID.Sets.Yoyo[Type] = true; ItemID.Sets.GamepadExtraRange[Type] = 15; ItemID.Sets.GamepadSmartQuickReach[Type] = true; diff --git a/Items/Weapons/Melee/TeardropCleaver.cs b/Items/Weapons/Melee/TeardropCleaver.cs index 939db3f77d..391a4455f5 100644 --- a/Items/Weapons/Melee/TeardropCleaver.cs +++ b/Items/Weapons/Melee/TeardropCleaver.cs @@ -1,4 +1,6 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -8,6 +10,10 @@ namespace CalamityMod.Items.Weapons.Melee public class TeardropCleaver : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 56; diff --git a/Items/Weapons/Melee/TenebreusTides.cs b/Items/Weapons/Melee/TenebreusTides.cs index 9721c5f584..cea7bfd71a 100644 --- a/Items/Weapons/Melee/TenebreusTides.cs +++ b/Items/Weapons/Melee/TenebreusTides.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Projectiles.Melee.Spears; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -13,6 +15,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { ItemID.Sets.Spears[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Melee/TheGodsGambit.cs b/Items/Weapons/Melee/TheGodsGambit.cs index 2a95e484ab..e013c7fb45 100644 --- a/Items/Weapons/Melee/TheGodsGambit.cs +++ b/Items/Weapons/Melee/TheGodsGambit.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Yoyos; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; @@ -16,6 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Slimed]; ItemID.Sets.Yoyo[Type] = true; ItemID.Sets.GamepadExtraRange[Type] = 15; ItemID.Sets.GamepadSmartQuickReach[Type] = true; diff --git a/Items/Weapons/Melee/TheLastMourning.cs b/Items/Weapons/Melee/TheLastMourning.cs index ee6e286544..0986477bef 100644 --- a/Items/Weapons/Melee/TheLastMourning.cs +++ b/Items/Weapons/Melee/TheLastMourning.cs @@ -1,8 +1,10 @@ -using CalamityMod.CalPlayer; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.NPCs.DevourerofGods; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -13,6 +15,11 @@ namespace CalamityMod.Items.Weapons.Melee public class TheLastMourning : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; + } public override void SetDefaults() { Item.width = 94; diff --git a/Items/Weapons/Melee/TheMutilator.cs b/Items/Weapons/Melee/TheMutilator.cs index 3f71b02898..1ce3d7ff66 100644 --- a/Items/Weapons/Melee/TheMutilator.cs +++ b/Items/Weapons/Melee/TheMutilator.cs @@ -1,7 +1,9 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.BaseProjectiles; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -18,6 +20,10 @@ namespace CalamityMod.Items.Weapons.Melee public int DecayTimer = 0; public new string LocalizationCategory => "Items.Weapons.Melee"; public override int ProjectileType => ModContent.ProjectileType(); + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 90; diff --git a/Items/Weapons/Melee/TheObliterator.cs b/Items/Weapons/Melee/TheObliterator.cs index 274426a673..d3da3d4688 100644 --- a/Items/Weapons/Melee/TheObliterator.cs +++ b/Items/Weapons/Melee/TheObliterator.cs @@ -1,8 +1,11 @@ using System.Collections.Generic; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.NPCs.DevourerofGods; using CalamityMod.Projectiles.Melee.Yoyos; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.Localization; @@ -26,6 +29,8 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; ItemID.Sets.Yoyo[Type] = true; ItemID.Sets.GamepadExtraRange[Type] = 15; ItemID.Sets.GamepadSmartQuickReach[Type] = true; diff --git a/Items/Weapons/Melee/TheOracle.cs b/Items/Weapons/Melee/TheOracle.cs index ad16f5eeab..f56ce80071 100644 --- a/Items/Weapons/Melee/TheOracle.cs +++ b/Items/Weapons/Melee/TheOracle.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Yoyos; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria.ID; using Terraria.Localization; @@ -21,6 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; ItemID.Sets.Yoyo[Type] = true; ItemID.Sets.GamepadExtraRange[Type] = 15; ItemID.Sets.GamepadSmartQuickReach[Type] = true; diff --git a/Items/Weapons/Melee/TyphonsGreed.cs b/Items/Weapons/Melee/TyphonsGreed.cs index cb45e00330..b328e8f134 100644 --- a/Items/Weapons/Melee/TyphonsGreed.cs +++ b/Items/Weapons/Melee/TyphonsGreed.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Abyss; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.ModLoader; @@ -9,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Melee public class TyphonsGreed : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 16; diff --git a/Items/Weapons/Melee/UltimusCleaver.cs b/Items/Weapons/Melee/UltimusCleaver.cs index 32c44c88ba..8c304f867a 100644 --- a/Items/Weapons/Melee/UltimusCleaver.cs +++ b/Items/Weapons/Melee/UltimusCleaver.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Projectiles.Melee; using CalamityMod.Projectiles.Typeless; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -13,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Melee public class UltimusCleaver : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; + } public override void SetDefaults() { Item.width = 72; diff --git a/Items/Weapons/Melee/UrchinMace.cs b/Items/Weapons/Melee/UrchinMace.cs index b41bea3fbe..23fe817f40 100644 --- a/Items/Weapons/Melee/UrchinMace.cs +++ b/Items/Weapons/Melee/UrchinMace.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.MaceFlails; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -11,7 +13,11 @@ namespace CalamityMod.Items.Weapons.Melee { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() => ItemID.Sets.ToolTipDamageMultiplier[Type] = 2f; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + ItemID.Sets.ToolTipDamageMultiplier[Type] = 2f; + } public override void SetDefaults() { Item.width = 42; diff --git a/Items/Weapons/Melee/VanishingPoint.cs b/Items/Weapons/Melee/VanishingPoint.cs index 5b4f875482..f89ca11f3c 100644 --- a/Items/Weapons/Melee/VanishingPoint.cs +++ b/Items/Weapons/Melee/VanishingPoint.cs @@ -1,6 +1,8 @@ using System.Collections.Generic; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Spears; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -14,6 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { ItemID.Sets.Spears[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Melee/VeinBurster.cs b/Items/Weapons/Melee/VeinBurster.cs index 3da0ed1b9e..d9e51352cd 100644 --- a/Items/Weapons/Melee/VeinBurster.cs +++ b/Items/Weapons/Melee/VeinBurster.cs @@ -1,6 +1,7 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -10,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Melee public class VeinBurster : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 52; diff --git a/Items/Weapons/Melee/VulcaniteLance.cs b/Items/Weapons/Melee/VulcaniteLance.cs index b61b432b67..f92e908d6c 100644 --- a/Items/Weapons/Melee/VulcaniteLance.cs +++ b/Items/Weapons/Melee/VulcaniteLance.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Spears; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -13,6 +14,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { ItemID.Sets.Spears[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; } public override void SetDefaults() diff --git a/Items/Weapons/Melee/YateveoBloom.cs b/Items/Weapons/Melee/YateveoBloom.cs index 9a88f1eec0..93be1a7e95 100644 --- a/Items/Weapons/Melee/YateveoBloom.cs +++ b/Items/Weapons/Melee/YateveoBloom.cs @@ -1,5 +1,6 @@ using CalamityMod.Projectiles.Melee.MaceFlails; using CalamityMod.Projectiles.Melee.Spears; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -17,6 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Poisoned]; // Flail already does half damage. No tooltip mutliplier required. } diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index c3fe4db96a..26488c036f 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -1209,7 +1209,7 @@ WitherDebuff: { Withered... Defense decreased by {0} ''' - ItemTooltipPlayer: Decreases defense + ItemTooltipEnemy: Decreases defense by 20 } // Summons diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index f2d6a463b3..f951411c97 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -155,7 +155,7 @@ BelchingSaxophone: { Tooltip: ''' Fires an array of dirty reeds, music notes, and sulphuric bubbles -Inflicts [cbuff:CalamityMod/Irradiated] onto enemies + Inflicts [cbuff:CalamityMod/Irradiated] onto enemies Doot ''' } @@ -177,11 +177,11 @@ BloodBath: { BrimroseStaff: { DisplayName: Brimrose Staff - Tooltip: - ''' - Fires a spread of splitting brimstone beams - Inflicts [cbuff:CalamityMod/BrimstoneFlames] - ''' + Tooltip: + ''' + Fires a spread of splitting brimstone beams + Inflicts [cbuff:CalamityMod/BrimstoneFlames] + ''' } BurningSea: { @@ -235,7 +235,7 @@ Cryophobia: { Tooltip: ''' Fires an icy wave that splits multiple times and explodes into shards -Inflicts [cbuff:Frostburn2] + Inflicts [cbuff:Frostburn2] 'Chill' ''' } @@ -277,7 +277,7 @@ EidolicWail: { Tooltip: ''' Fires a string of bouncing sound waves that slow down on enemy hits -Sound waves crush enemies with [cbuff:CalamityMod/HadopelagicPressure] + Sound waves crush enemies with [cbuff:CalamityMod/HadopelagicPressure] RIP headphone users ''' } @@ -353,7 +353,7 @@ FrigidflashBolt: { Casts a fast ball of flash-freezing magma that bounces off tiles When hitting a tile, a flarefrost burst is produced Press to cast an empowered ball that creates a collapsing flarefrost vortex which explodes -Inflicts both [cbuff:OnFire3] and [cbuff:Frostburn2] + Inflicts both [cbuff:OnFire3] and [cbuff:Frostburn2] ''' } @@ -419,7 +419,7 @@ HadalUrn: { Tooltip: ''' Fires a random assortment of ocean creatures -Inflicts [cbuff:CalamityMod/CrushDepth] and [cbuff:Venom] onto enemies + Inflicts [cbuff:CalamityMod/CrushDepth] and [cbuff:Venom] onto enemies 'There's no telling how long it was down there... or what lurks inside' ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index d29908c703..85042077f8 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -2,8 +2,8 @@ AbsoluteZero: { DisplayName: Absolute Zero Tooltip: ''' - Shoots dark ice crystals that [cbuff:Frostburn2] enemies - The blade creates [cbuff:Frostburn2] explosions on direct hits + Shoots dark ice crystals + The blade creates frost explosions on direct hits Ancient blade imbued with the Archmage of Ice's magic ''' } @@ -14,7 +14,6 @@ AbyssBlade: { ''' Tosses a spinning abyssal sword that slices through enemies and releases water energy upon hitting a tile The sword will fly towards enemies after a ricochet, dealing 2x damage - Both the blade and the energy inflict [cbuff:CalamityMod/CrushDepth] ''' } @@ -155,7 +154,7 @@ BallOFugu: { Tooltip: ''' Throws a flailing abyssal pufferfish - Builds up [cbuff:Poisoned] spikes as it spins + Builds up poisonous spikes as it spins Spikes blow out of the fish as it retracts ''' } @@ -167,7 +166,7 @@ BansheeHook: { Basher: { DisplayName: Basher - Tooltip: Swings a rotten club that inflicts [cbuff:CalamityMod/Irradiated] while knocking you back in the process + Tooltip: Swings a rotten club while knocking you back in the process } BladecrestOathsword: { @@ -187,11 +186,7 @@ BladecrestOathsword: { BlightedCleaver: { DisplayName: Blighted Cleaver - Tooltip: - ''' - Fires homing, blazing blades - Blazing blades inflict [cbuff:OnFire3] and [cbuff:Venom] - ''' + Tooltip: Fires homing, blazing blades } Bonebreaker: { @@ -199,7 +194,7 @@ Bonebreaker: { Tooltip: ''' Fires javelins that stick to enemies before bursting into shrapnel - Javelins cause [cbuff:CalamityMod/HeavyBleeding], [cbuff:Venom], and [cbuff:CalamityMod/ArmorCrunch] + Stuck javelins cause [cbuff:CalamityMod/HeavyBleeding], [cbuff:Venom], and [cbuff:CalamityMod/ArmorCrunch] ''' } @@ -255,7 +250,7 @@ BurningRevelation: { Tooltip: ''' {$Common.YoyoStatsInfinite} - An ever burning yoyo that constantly charges power and inflicts [cbuff:CalamityMod/HolyFlames] + An ever burning yoyo that constantly charges power Direct hits greatly increase the charge and release profaned energy that scales with charge level At maximum charge, the yoyo unleashes a volley of homing stars that gain damage the farther they travel Stars with maximum damage let off an additional explosion on hit @@ -296,7 +291,7 @@ CosmicDischarge: { DisplayName: Cosmic Discharge Tooltip: ''' - Striking an enemy with the whip causes glacial explosions that inflict [cbuff:CalamityMod/Nightwither] and grant the player the [cbuffplr:CalamityMod/CosmicFreeze] buff + Striking an enemy with the whip causes glacial explosions that grant the player the [cbuffplr:CalamityMod/CosmicFreeze] buff [cbuffplr:CalamityMod/CosmicFreeze] gives the player +2 HP/s life regen while standing still and freezes enemies near the player ''' } @@ -308,7 +303,6 @@ CosmicShiv: { Fires a cosmic star that homes in on enemies Upon hitting an enemy, a barrage of blades will persistently strike Landing more stars causes more blades to strike - Cosmic stars and blades inflict [cbuff:CalamityMod/GodSlayerInferno] ''' } @@ -326,11 +320,7 @@ CrescentMoon: { DarklightGreatsword: { DisplayName: Darklight Greatsword - Tooltip: - ''' - Fires darklight blades that slice through enemies, creating additional slashes - Violet blades inflict [cbuff:CalamityMod/Shadowflame], Cyan blades inflict [cbuff:Frostburn2] - ''' + Tooltip: Fires darklight blades that slice through enemies, creating additional slashes } DeathsAscension: { @@ -347,11 +337,7 @@ DeathsAscension: { DefiledGreatsword: { DisplayName: Defiled Greatsword - Tooltip: - ''' - Fires blazing, hyper, and sunlight blades - All blades inflict [cbuff:OnFire3] and [cbuff:Venom] - ''' + Tooltip: Fires blazing, hyper, and sunlight blades } DepthCrusher: { @@ -360,7 +346,6 @@ DepthCrusher: { ''' Tosses a heavy abyssal crusher that releases water energy upon hitting a tile The crusher will ricochet off of tiles and enemies - Water energy will home onto enemies and inflict [cbuff:CalamityMod/RiptideDebuff] ''' } @@ -389,7 +374,7 @@ DevilsSunrise: { DisplayName: Devil's Sunrise Tooltip: ''' - Unleashes a devilish flurry of swipes that inflict [cbuff:CalamityMod/BrimstoneFlames] + Unleashes a devilish flurry of swipes Hellish energy charges in the blades over time, which is accelerated by striking foes Press while swinging the blades with full energy to throw the spinning blades to your cursor The spinning blades lodge into and repeatedly slice the first foe they meet, stealing their life @@ -403,7 +388,6 @@ DraconicDestruction: { ''' Fires a draconic sword beam that explodes into additional beams Additional beams fly up and down to shred enemies - Draconic beams inflict [cbuff:CalamityMod/Dragonfire], [cbuff:CalamityMod/Daybroken], [cbuff:Slimed] and [cbuff:Oiled] ''' } @@ -436,7 +420,7 @@ Earth: { ''' A beautiful prismatic blade with unrivaled close combat proficiency Heals you greatly on hit - Every other swing will summon three Gaia meteors to annihilate nearby enemies with [cbuff:CalamityMod/MiracleBlight] + Every other swing will summon three Gaia meteors to annihilate nearby enemies 'All Its spawn shall know the beauty and wrath of their creator' ''' } @@ -446,7 +430,7 @@ EarthenPike: { Tooltip: ''' Sprays fossil shards on swing - Inflicts [cbuff:CalamityMod/ArmorCrunch] + Inflicts [cbuff:CalamityMod/ArmorCrunch] on enemies ''' } @@ -467,7 +451,7 @@ EntropicClaymore: { EssenceFlayer: { DisplayName: Essence Flayer - Tooltip: Shoots an essence scythe that inflicts [cbuff:CalamityMod/GodSlayerInferno] and generates healing spirits on enemy kills + Tooltip: Shoots an essence scythe that generates healing spirits on enemy kills } EvilSmasher: { @@ -518,7 +502,6 @@ Exoblade: { Enemy hits from the blade during the dash result in massive damage and a rebound Press immediately after a rebound to perform a powerful slash Powerful slashes are larger, heal you, and create a large explosion - Inflicts [cbuff:CalamityMod/MiracleBlight] ''' } @@ -528,7 +511,6 @@ FallenPaladinsHammer: { ''' Throws a heavy, gravity-affected hammer that will explode and return to you after striking an enemy After returning three times, a homing spectral hammer is summoned with devastating impact - Inflicts [cbuff:CalamityMod/BrimstoneFlames] ''' } @@ -537,18 +519,22 @@ FaultLine: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Explodes into [cbuff:OnFire3] on enemy hits + Explodes on enemy hits ''' } FeralthornClaymore: { DisplayName: Feralthorn Claymore - Tooltip: Inflicts [cbuff:Venom] and sprouts thorns from enemies on hit + Tooltip: Sprouts thorns from enemies on hit } FlarefrostBlade: { DisplayName: Flarefrost Blade - Tooltip: Fires a homing flarefrost orb that inflicts [cbuff:OnFire3] and [cbuff:Frostburn2] + Tooltip: + ''' + Fires a homing flarefrost orb + Inflicts [cbuff:OnFire3] and [cbuff:Frostburn2] + ''' } Floodtide: { @@ -636,7 +622,7 @@ GalaxySmasher: { DisplayName: Galaxy Smasher Tooltip: ''' - Throws a heavy, gravity-affected hammer that inflicts [cbuff:CalamityMod/GodSlayerInferno] and will return to you after striking an enemy + Throws a heavy, gravity-affected hammer that will return to you after striking an enemy Consecutive hits summon more and more cosmic shards After hitting eight times, the hammer supercharges itself with galactic energies, delivering an apocalyptic strike that reverberates through space and time @@ -666,7 +652,7 @@ GildedProboscis: { DisplayName: Gilded Proboscis Tooltip: ''' - Steals life proportional to the damage dealt to foes and inflicts [cbuff:CalamityMod/VermillionFlux] + Steals life proportional to the damage dealt to foes to charge up a precise thrust The thrust begins weak, but becomes more powerful the longer it's held to dash forward with a mighty upstrike @@ -724,21 +710,21 @@ Greentide: { DisplayName: Greentide Tooltip: ''' - Launches a spread of four teeth with one stronger piercing tooth in the center that inflicts [cbuff:CalamityMod/RiptideDebuff] and [cbuff:Wet] + Launches a spread of four teeth with one stronger piercing tooth in the center Hitting with the blade creates two jaws of teeth to chomp on the enemy closest to your cursor, causing [cbuff:CalamityMod/HeavyBleeding] ''' } HellfireFlamberge: { DisplayName: Hellfire Flamberge - Tooltip: Fires a spread of volcanic fireballs that sear enemies with [cbuff:OnFire3] + Tooltip: Fires a spread of volcanic fireballs } HellionFlowerSpear: { DisplayName: Hellion Flower Spear Tooltip: ''' - Shoots a flower spear tip that inflicts [cbuff:Venom] + Shoots a flower spear tip Summons petals from the sky on critical hits ''' } @@ -768,7 +754,7 @@ HolyCollider: { DisplayName: Holy Collider Tooltip: ''' - Swings a holy greatsword that can be charged for higher damage and purifies all with [cbuff:CalamityMod/HolyFlames] + Swings a holy greatsword that can be charged for higher damage Charged swings create four lingering flares that float around the point of impact Striking a flare with an uncharged strike will push it around and extend its lifetime Charged swings can empower flares, turning them into massive fireballs on hit and launching them to your cursor @@ -784,7 +770,7 @@ InsidiousImpaler: { DisplayName: Insidious Impaler Tooltip: ''' - Throws self-propelling radioactive harpoons which chase foes and cause [cbuff:CalamityMod/SulphuricPoisoning] + Throws self-propelling radioactive harpoons which chase foes Harpoons ricochet at close range for additional hits ''' } @@ -825,7 +811,7 @@ LionHeart: { DisplayName: Lion Heart Tooltip: ''' - Summons an energy explosion on hit that leaves enemies [cbuff:Electrified] + Summons an energy explosion on hit Press to summon an energy shell for a few seconds that halves all damage sources This has a 45 second cooldown ''' @@ -855,7 +841,7 @@ MantisClaws: { DisplayName: Mantis Claws Tooltip: ''' - Rapidly swing a mantis claw which slashes foes in short range, causing [cbuff:CalamityMod/HeavyBleeding] + Rapidly swing a mantis claw which slashes foes in short range Press to form a pressurized bubble in front of you Once fully formed, the bubble is instantly snapped down on, blasting foes with a water jet 'It's just that shrimple' @@ -878,7 +864,6 @@ MirrorBlade: { DisplayName: Mirror Blade Tooltip: ''' - Inflicts [cbuff:CalamityMod/Nightwither] on hit Striking an enemy or a hostile projectile summons up to 10 orbiting mirror shards Any shards above 10 instead seek out enemies Holding coalesces the orbiting mirror shards into a shield @@ -904,7 +889,7 @@ MonstrousKnives: { Mourningstar: { DisplayName: Mourningstar - Tooltip: Launches two solar whip swords that explode on hit and inflict [cbuff:CalamityMod/Daybroken] + Tooltip: Launches two solar whip swords that explode on hit } Murasama: { @@ -927,7 +912,7 @@ Nadir: { DisplayName: Nadir Tooltip: ''' - Fires void essences which flay nearby enemies with [cbuff:CalamityMod/Nightwither] tentacles + Fires void essences which flay nearby enemies with tentacles 'The abyss has stared back at you long enough. It now speaks, and it does not speak softly' ''' } @@ -943,7 +928,6 @@ NeptunesBounty: { ''' Tosses a spinning abyssal sword which constantly sprays water energy Once the blade begins falling, it will redirect itself towards enemies with increased velocity and 2x damage - The abyssal sword and water energy crushes your foes with [cbuff:CalamityMod/HadopelagicPressure] ''' } @@ -952,13 +936,13 @@ Oblivion: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Fires darts infused with [cbuff:CalamityMod/BrimstoneFlames] when enemies are near + Fires brimstone darts when enemies are near ''' } OldLordClaymore: { DisplayName: Old Lord Claymore - Tooltip: A slow but powerful blade that lights enemies with [cbuff:OnFire3] and has substantial knockback + Tooltip: A slow but powerful blade that sets enemies ablaze and has substantial knockback HoldShiftTooltip: ''' [c/df4420:A gift to outstanding Demons, a replica of the sword used by the greatest of all Demon Lords.] @@ -988,11 +972,7 @@ OmegaBiomeBlade: { Omniblade: { DisplayName: Omniblade - Tooltip: - ''' - An ancient blade forged by the legendary Omnir - Inflicts [cbuff:CalamityMod/WhisperingDeath] - ''' + Tooltip: An ancient blade forged by the legendary Omnir } Orderbringer: { @@ -1001,7 +981,6 @@ Orderbringer: { ''' Fires piercing energy waves and summons four homing stars near your cursor Hits with the blade summon two beams from the sky - Struck enemies are left with a lethal rainbow of [cbuff:CalamityMod/ElementalMix] 'No matter where you may be you are never alone' ''' } @@ -1027,11 +1006,7 @@ Pandemic: { PerfectDark: { DisplayName: Perfect Dark - Tooltip: - ''' - Fires a vile ball that sticks to tiles and explodes - Inflicts [cbuff:CalamityMod/BrainRot] - ''' + Tooltip: Fires a vile ball that sticks to tiles and explodes } PhosphorescentGauntlet: { @@ -1048,7 +1023,7 @@ PhotonRipper: { DisplayName: Photon Ripper Tooltip: ''' - Projects a directed stream of hardlight teeth at ultra high velocity which cause [cbuff:CalamityMod/MiracleBlight] + Projects a directed stream of hardlight teeth at ultra high velocity This weapon and its projectiles function as a chainsaw Press to use without chopping down trees ''' @@ -1062,7 +1037,6 @@ PrismaticBreaker: { After charging up, a massive rainbow laser is unleashed to devastate your foes This weapon is boosted by both melee and ranged damage Seems to belong to a certain magical girl. Radiates with intense cosmic energy - COME BACK FOR ELE MIX INFILCTION TEXT ''' } @@ -1080,7 +1054,7 @@ Quagmire: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Fires spore clouds that inflict [cbuff:Venom] + Fires spore clouds ''' } @@ -1088,7 +1062,7 @@ RedSun: { DisplayName: Red Sun Tooltip: ''' - Drops a barrage of solar flares from the sky that explode into homing bolts and inflict [cbuff:CalamityMod/Daybroken] + Drops a barrage of solar flares from the sky 'Over paradise' ''' } @@ -1097,8 +1071,7 @@ RemsRevenge: { DisplayName: Rem's Revenge Tooltip: ''' - Summons blood explosions and inflicts [cbuff:CalamityMod/WitherDebuff] and [cbuff:CalamityMod/Laceration] on hit - [cbuff:CalamityMod/WitherDebuff] lowers enemy defense by {0} + Summons blood explosions and inflicts [cbuff:CalamityMod/WitherDebuff] on hit 'A deadly morning star befitting its demonic owner' ''' } @@ -1109,7 +1082,6 @@ Respiteblock: { ''' A glistening white chainsaw that spews green and purple blood all over Hitting enemies with the blade will heal you and deal immense damage - The blade and spewed blood inflict [cbuff:CalamityMod/HeavyBleeding] onto enemies [c/0e8401:'It's Ok To Be Dangerous'] ''' } @@ -1149,7 +1121,7 @@ SaharaSlicers: { SausageMaker: { DisplayName: Sausage Maker - Tooltip: Sprays homing blood and causes [cbuff:CalamityMod/BurningBlood] on hit + Tooltip: Sprays homing blood on hit } ScourgeoftheCosmos: { @@ -1165,7 +1137,6 @@ SeekingScorcher: { Crystallizes in place if all bounces have not been exhausted Crystallized hatchets can be shattered by another axe Doing so empowers the hatchet based on the amount shattered but prevents it from crystallizing - Hatchets inflict [cbuff:CalamityMod/HolyFlames] on hit 'May your enemies burn in hell for the sins they have committed' ''' } @@ -1175,7 +1146,7 @@ Shimmerspark: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Inflicts [cbuff:Frostburn2] and fires stars when enemies are near + Fires stars when enemies are near ''' } @@ -1186,7 +1157,6 @@ SkytideDragoon: { Calls down a thunderbolt to strike and charge the tip of the spear Press to discharge the electricity as a spread of bolts that narrows as you spend the energy Hold when the spear catches the thunderbolt to redirect it to the cursor - Both attack modes inflict [cbuff:Electrified] ''' } @@ -1213,7 +1183,7 @@ SoulHarvester: { Tooltip: ''' Shoots a soul scythe - Enemies explode when on low health, spreading the [cbuff:CalamityMod/Plague] + Enemies explode when on low health, spreading the plague ''' } @@ -1230,14 +1200,14 @@ SpineOfThanatos: { StarnightLance: { DisplayName: Starnight Lance - Tooltip: Shoots a frigid starnight beam that inflicts [cbuff:Frostburn2] + Tooltip: Shoots a frigid starnight beam } StellarContempt: { DisplayName: Stellar Contempt Tooltip: ''' - Throws a heavy, gravity-affected hammer that inflicts [cbuff:CalamityMod/Nightwither] and will return to you after striking an enemy + Throws a heavy, gravity-affected hammer that will return to you after striking an enemy Consecutive hits call down more and more lunar flares from the sky After hitting five times, the hammer supercharges with lunar energy to pulverize your target ''' @@ -1245,7 +1215,7 @@ StellarContempt: { StellarStriker: { DisplayName: Stellar Striker - Tooltip: Summons a swarm of lunar flares from the sky on enemy hits which [cbuff:CalamityMod/Nightwither] enemies + Tooltip: Summons a swarm of lunar flares from the sky on enemy hits } StormRuler: { @@ -1274,7 +1244,6 @@ StreamGouge: { Summons a portal that the spear crosses through Shortly after going through the portal, portals appear near the mouse that release copies of the spear's cutting edge Enemies hit by the copies create lacerations in space, revealing a cosmic background - Struck foes are purged by [cbuff:CalamityMod/GodSlayerInferno] ''' } @@ -1291,7 +1260,7 @@ StygianShield: { SubmarineShocker: { DisplayName: Submarine Shocker - Tooltip: Enemies release electric sparks on hit, inflicting [cbuff:CalamityMod/StaticDischarge] + Tooltip: Enemies release electric sparks on hit } SulphurousGrabber: { @@ -1299,7 +1268,7 @@ SulphurousGrabber: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Inflicts [cbuff:CalamityMod/Irradiated] on foes and occasionally releases a ring of colored bubbles + Occasionally releases a ring of colored bubbles The yoyo powers up after touching a green bubble ''' } @@ -1320,7 +1289,7 @@ TaintedBlade: { TeardropCleaver: { DisplayName: Teardrop Cleaver - Tooltip: Gives your enemies [cbuff:CalamityMod/TemporalSadness] + Tooltip: Makes your enemies cry } TenebreusTides: { @@ -1328,7 +1297,7 @@ TenebreusTides: { Tooltip: ''' Shoots a water spear that pierces enemies and terrain - Striking enemies inflicts [cbuff:CalamityMod/CrushDepth] and summons liquid blades and spears to assault the struck foe + Striking enemies summons liquid blades and spears to assault the struck foe 'Inundatio ex Laminis' ''' } @@ -1381,7 +1350,7 @@ TheGodsGambit: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Fires a stream of [cbuff:Slimed] when enemies are near + Fires a stream of damaging slime when enemies are near ''' } @@ -1389,8 +1358,8 @@ TheLastMourning: { DisplayName: The Last Mourning Tooltip: ''' - Summons flaming pumpkins and mourning skulls that inflict [cbuff:CalamityMod/Daybroken] - Pumpkins and skulls split into homing [cbuff:OnFire3] orbs on enemy hits + Summons flaming pumpkins and mourning skulls + Pumpkins and skulls split into homing fire orbs on enemy hits ''' } @@ -1408,7 +1377,7 @@ TheMutilator: { DisplayName: The Mutilator Tooltip: ''' - Striking enemies inflicts [cbuff:CalamityMod/Laceration] and empowers The Mutilator, increasing its damage + Striking enemies empowers The Mutilator, increasing its damage At full charge, striking enemies causes a blood orb explosion Picking up these blood orbs reduces the duration of [cbuffplr:PotionSickness] ''' @@ -1424,8 +1393,6 @@ TheObliterator: { TooltipNormal: ''' Occasionally performs a miniature [c/ff00ff:Dimensional Drive] at nearby foes - [c/ff00ff:Dimensional Drive] obliterates targets with [cbuff:CalamityMod/GodSlayerInferno] - The yoyo inflicts [cbuff:CalamityMod/WhisperingDeath] on hit ''' TooltipGFB: just a slight bit of dust spam on this weapon im afraid } @@ -1435,7 +1402,7 @@ TheOracle: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Emits an aura of [cbuff:CalamityMod/AuricRebuke] lightning which charges up when hitting enemies + Emits an aura of auric lightning which charges up when hitting enemies Fires auric orbs when supercharged 'Gaze into the past, the present, the future... and the circumstances of your inevitable demise' ''' @@ -1518,14 +1485,14 @@ TyphonsGreed: { DisplayName: Typhon's Greed Tooltip: ''' - Summons water spirits that inflict [cbuff:CalamityMod/CrushDepth] while in use + Summons water spirits while in use These water spirits will home in on enemies after traveling towards the player ''' } UltimusCleaver: { DisplayName: Ultimus Cleaver - Tooltip: Launches damaging homing sparks and explodes into [cbuff:OnFire3] on enemy hits + Tooltip: Launches damaging homing sparks and explodes on enemy hits } UrchinMace: { @@ -1533,7 +1500,6 @@ UrchinMace: { Tooltip: ''' Throws out a whirlpool when released - Struck enemies are lashed by [cbuff:CalamityMod/RiptideDebuff] [c/5C95A1:'The people of the sea were adept hunters, but they abhorred unnecessary violence.] [c/5C95A1:Unfortunately, neighboring nations were brutish, so they fashioned their tools for war.'] ''' @@ -1545,7 +1511,6 @@ VanishingPoint: { TooltipNormal: ''' Fires a lance beam that splits multiple times as it travels - Inflicts [cbuff:CalamityMod/ElementalMix] 'Rend the cosmos asunder!' ''' TooltipGFB: @@ -1557,11 +1522,7 @@ VanishingPoint: { VeinBurster: { DisplayName: Vein Burster - Tooltip: - ''' - Fires a blood ball that sticks to tiles and explodes - Inflicts [cbuff:CalamityMod/BurningBlood] - ''' + Tooltip: Fires a blood ball that sticks to tiles and explodes } Violence: { @@ -1590,7 +1551,7 @@ VoidEdge: { VulcaniteLance: { DisplayName: Vulcanite Lance - Tooltip: Explodes into [cbuff:OnFire3] on enemy hits and summons homing flares on critical hits + Tooltip: Explodes on enemy hits and summons homing flares on critical hits } WindBlade: { @@ -1618,7 +1579,6 @@ YateveoBloom: { A synthesis of jungle flora Throws a powerful rose flail Press to stab with a flower spear - Inflicts [cbuff:Poisoned] onto enemies ''' } From 43057963df3e8af7dd90f3008aad9de3f46c4634 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Fri, 20 Mar 2026 20:02:16 -0700 Subject: [PATCH 06/26] Ranged, again --- Items/Weapons/Ranged/Archerfish.cs | 7 ++ Items/Weapons/Ranged/AstrealDefeat.cs | 9 +- Items/Weapons/Ranged/Barinautical.cs | 5 + Items/Weapons/Ranged/BarracudaGun.cs | 5 +- Items/Weapons/Ranged/BlissfulBombardier.cs | 8 +- Items/Weapons/Ranged/BloodBoiler.cs | 6 +- Items/Weapons/Ranged/BrimstoneFury.cs | 8 +- Items/Weapons/Ranged/ChromaticEruption.cs | 9 +- Items/Weapons/Ranged/ClamorRifle.cs | 9 +- Items/Weapons/Ranged/ContinentalGreatbow.cs | 6 + Items/Weapons/Ranged/EternalBlizzard.cs | 2 + Items/Weapons/Ranged/Eviscerator.cs | 8 +- Items/Weapons/Ranged/FetidEmesis.cs | 8 +- Items/Weapons/Ranged/FlakKraken.cs | 9 +- Items/Weapons/Ranged/FlakToxicannon.cs | 9 +- Items/Weapons/Ranged/FlarewingBow.cs | 5 + Items/Weapons/Ranged/FlurrystormCannon.cs | 5 + Items/Weapons/Ranged/FreedomStar.cs | 8 +- Items/Weapons/Ranged/FrostbiteBlaster.cs | 7 +- Items/Weapons/Ranged/Goobow.cs | 5 + Items/Weapons/Ranged/Helstorm.cs | 5 + Items/Weapons/Ranged/HoarfrostBow.cs | 5 + Items/Weapons/Ranged/Leviatitan.cs | 5 + Items/Weapons/Ranged/Megalodon.cs | 6 + Items/Weapons/Ranged/NettlevineGreatbow.cs | 5 + Items/Weapons/Ranged/Norfleet.cs | 7 +- Items/Weapons/Ranged/PlanetaryAnnihilation.cs | 6 + Items/Weapons/Ranged/ReedBlowgun.cs | 5 +- Items/Weapons/Ranged/ScorchedEarth.cs | 9 +- Items/Weapons/Ranged/Seadragon.cs | 7 ++ Items/Weapons/Ranged/SeasSearing.cs | 6 +- Items/Weapons/Ranged/SparkSpreader.cs | 5 + Items/Weapons/Ranged/SulphuricAcidCannon.cs | 10 +- .../Weapons/Ranged/SuperradiantSlaughterer.cs | 9 +- Items/Weapons/Ranged/TauCannon.cs | 8 +- Items/Weapons/Ranged/TelluricGlare.cs | 5 +- Items/Weapons/Ranged/TheMaelstrom.cs | 8 +- Items/Weapons/Ranged/TheStorm.cs | 2 + Items/Weapons/Ranged/ThreadOfEradication.cs | 6 + Items/Weapons/Ranged/Ultima.cs | 8 +- Items/Weapons/Ranged/Voidragon.cs | 8 +- ...Mods.CalamityMod.Items.Weapons.Melee.hjson | 5 +- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 105 +++++++----------- Projectiles/Ranged/NorfleetExplosion.cs | 7 ++ 44 files changed, 292 insertions(+), 98 deletions(-) diff --git a/Items/Weapons/Ranged/Archerfish.cs b/Items/Weapons/Ranged/Archerfish.cs index 860c80bc8b..21ae7de037 100644 --- a/Items/Weapons/Ranged/Archerfish.cs +++ b/Items/Weapons/Ranged/Archerfish.cs @@ -1,5 +1,7 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -15,6 +17,11 @@ namespace CalamityMod.Items.Weapons.Ranged public static int AmmoSavedPercent = 33; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Wet]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/AstrealDefeat.cs b/Items/Weapons/Ranged/AstrealDefeat.cs index fdc11428a1..c822108f08 100644 --- a/Items/Weapons/Ranged/AstrealDefeat.cs +++ b/Items/Weapons/Ranged/AstrealDefeat.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,7 +13,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class AstrealDefeat : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 40; diff --git a/Items/Weapons/Ranged/Barinautical.cs b/Items/Weapons/Ranged/Barinautical.cs index 188376a253..5d35c3dcf0 100644 --- a/Items/Weapons/Ranged/Barinautical.cs +++ b/Items/Weapons/Ranged/Barinautical.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Weapons.Magic; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class Barinautical : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Electrified]; + } public override void SetDefaults() { Item.width = 30; diff --git a/Items/Weapons/Ranged/BarracudaGun.cs b/Items/Weapons/Ranged/BarracudaGun.cs index 9264c360f9..998857649d 100644 --- a/Items/Weapons/Ranged/BarracudaGun.cs +++ b/Items/Weapons/Ranged/BarracudaGun.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Ranged; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -14,6 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { ItemID.Sets.IsRangedSpecialistWeapon[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/BlissfulBombardier.cs b/Items/Weapons/Ranged/BlissfulBombardier.cs index 0e5d044d87..8ca3a3f0dc 100644 --- a/Items/Weapons/Ranged/BlissfulBombardier.cs +++ b/Items/Weapons/Ranged/BlissfulBombardier.cs @@ -1,5 +1,7 @@ -using CalamityMod.Projectiles.Ranged; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -14,6 +16,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class BlissfulBombardier : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 88; diff --git a/Items/Weapons/Ranged/BloodBoiler.cs b/Items/Weapons/Ranged/BloodBoiler.cs index 35eabb4e58..8a7ee6e8b5 100644 --- a/Items/Weapons/Ranged/BloodBoiler.cs +++ b/Items/Weapons/Ranged/BloodBoiler.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -20,6 +22,8 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; ItemID.Sets.IsRangedSpecialistWeapon[Type] = true; } public override void SetDefaults() diff --git a/Items/Weapons/Ranged/BrimstoneFury.cs b/Items/Weapons/Ranged/BrimstoneFury.cs index c4d586c689..ab7d33004b 100644 --- a/Items/Weapons/Ranged/BrimstoneFury.cs +++ b/Items/Weapons/Ranged/BrimstoneFury.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class BrimstoneFury : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 30; diff --git a/Items/Weapons/Ranged/ChromaticEruption.cs b/Items/Weapons/Ranged/ChromaticEruption.cs index 8b5d134047..338835cb44 100644 --- a/Items/Weapons/Ranged/ChromaticEruption.cs +++ b/Items/Weapons/Ranged/ChromaticEruption.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -18,7 +20,10 @@ namespace CalamityMod.Items.Weapons.Ranged public static int AmmoSavedPercent = 50; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); - public override void SetStaticDefaults() => ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/ClamorRifle.cs b/Items/Weapons/Ranged/ClamorRifle.cs index 83d1c7daac..26e1441a09 100644 --- a/Items/Weapons/Ranged/ClamorRifle.cs +++ b/Items/Weapons/Ranged/ClamorRifle.cs @@ -1,5 +1,8 @@ -using CalamityMod.Projectiles.Ranged; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Projectiles.Ranged; using CalamityMod.Sounds; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class ClamorRifle : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 64; diff --git a/Items/Weapons/Ranged/ContinentalGreatbow.cs b/Items/Weapons/Ranged/ContinentalGreatbow.cs index e82feae262..b2c6a1f345 100644 --- a/Items/Weapons/Ranged/ContinentalGreatbow.cs +++ b/Items/Weapons/Ranged/ContinentalGreatbow.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Materials; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +12,11 @@ namespace CalamityMod.Items.Weapons.Ranged public class ContinentalGreatbow : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Ichor]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire]; + } public override void SetDefaults() { Item.width = 18; diff --git a/Items/Weapons/Ranged/EternalBlizzard.cs b/Items/Weapons/Ranged/EternalBlizzard.cs index 6fa526b7e7..624d645d7f 100644 --- a/Items/Weapons/Ranged/EternalBlizzard.cs +++ b/Items/Weapons/Ranged/EternalBlizzard.cs @@ -1,4 +1,5 @@ using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,6 +13,7 @@ namespace CalamityMod.Items.Weapons.Ranged public new string LocalizationCategory => "Items.Weapons.Ranged"; public override void SetStaticDefaults() { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/Eviscerator.cs b/Items/Weapons/Ranged/Eviscerator.cs index d0b79472dc..c2ab5ea6c2 100644 --- a/Items/Weapons/Ranged/Eviscerator.cs +++ b/Items/Weapons/Ranged/Eviscerator.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Weapons.Magic; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Magic; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class Eviscerator : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 58; diff --git a/Items/Weapons/Ranged/FetidEmesis.cs b/Items/Weapons/Ranged/FetidEmesis.cs index 6e437428fa..69acc217e6 100644 --- a/Items/Weapons/Ranged/FetidEmesis.cs +++ b/Items/Weapons/Ranged/FetidEmesis.cs @@ -1,5 +1,7 @@ -using CalamityMod.Projectiles.Ranged; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -15,6 +17,10 @@ namespace CalamityMod.Items.Weapons.Ranged public static int AmmoSavedPercent = 66; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 76; diff --git a/Items/Weapons/Ranged/FlakKraken.cs b/Items/Weapons/Ranged/FlakKraken.cs index 76ccecc30f..23b247d1e1 100644 --- a/Items/Weapons/Ranged/FlakKraken.cs +++ b/Items/Weapons/Ranged/FlakKraken.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Abyss; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -34,7 +36,10 @@ namespace CalamityMod.Items.Weapons.Ranged public static int ClusterShrapnelAmount = 8; public static float ClusterShrapnelAngleOffset = MathHelper.PiOver2 + MathHelper.ToRadians(50f); #endregion - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 152; diff --git a/Items/Weapons/Ranged/FlakToxicannon.cs b/Items/Weapons/Ranged/FlakToxicannon.cs index 956f36a2e7..55e00acd97 100644 --- a/Items/Weapons/Ranged/FlakToxicannon.cs +++ b/Items/Weapons/Ranged/FlakToxicannon.cs @@ -1,4 +1,7 @@ -using CalamityMod.Projectiles.Ranged; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -27,6 +30,10 @@ namespace CalamityMod.Items.Weapons.Ranged public static int ClusterShrapnelAmount = 7; public static float ClusterShrapnelAngleOffset = 0.53f; #endregion + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/FlarewingBow.cs b/Items/Weapons/Ranged/FlarewingBow.cs index b5320a069d..d0c1675bce 100644 --- a/Items/Weapons/Ranged/FlarewingBow.cs +++ b/Items/Weapons/Ranged/FlarewingBow.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class FlarewingBow : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; + } public override void SetDefaults() { Item.width = 40; diff --git a/Items/Weapons/Ranged/FlurrystormCannon.cs b/Items/Weapons/Ranged/FlurrystormCannon.cs index 3e1221e805..5a04634a05 100644 --- a/Items/Weapons/Ranged/FlurrystormCannon.cs +++ b/Items/Weapons/Ranged/FlurrystormCannon.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -14,6 +15,10 @@ namespace CalamityMod.Items.Weapons.Ranged public static int AmmoSavedPercent = 50; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/FreedomStar.cs b/Items/Weapons/Ranged/FreedomStar.cs index e237779ec0..c98cf1157e 100644 --- a/Items/Weapons/Ranged/FreedomStar.cs +++ b/Items/Weapons/Ranged/FreedomStar.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class FreedomStar : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/FrostbiteBlaster.cs b/Items/Weapons/Ranged/FrostbiteBlaster.cs index 9712968aa5..c9927ed0dd 100644 --- a/Items/Weapons/Ranged/FrostbiteBlaster.cs +++ b/Items/Weapons/Ranged/FrostbiteBlaster.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Systems.Collections; +using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; using Terraria.DataStructures; @@ -10,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class FrostbiteBlaster : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + } public override void SetDefaults() { Item.width = 56; diff --git a/Items/Weapons/Ranged/Goobow.cs b/Items/Weapons/Ranged/Goobow.cs index b4ecc5f53c..5f0fd31abf 100644 --- a/Items/Weapons/Ranged/Goobow.cs +++ b/Items/Weapons/Ranged/Goobow.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Typeless; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class Goobow : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Slimed]; + } public override void SetDefaults() { Item.width = 32; diff --git a/Items/Weapons/Ranged/Helstorm.cs b/Items/Weapons/Ranged/Helstorm.cs index 759c3af8c5..9f58bbae14 100644 --- a/Items/Weapons/Ranged/Helstorm.cs +++ b/Items/Weapons/Ranged/Helstorm.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Materials; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -10,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class Helstorm : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; + } public override void SetDefaults() { Item.width = 50; diff --git a/Items/Weapons/Ranged/HoarfrostBow.cs b/Items/Weapons/Ranged/HoarfrostBow.cs index 0fa9153c7b..b7c96261ad 100644 --- a/Items/Weapons/Ranged/HoarfrostBow.cs +++ b/Items/Weapons/Ranged/HoarfrostBow.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Weapons.Magic; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class HoarfrostBow : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + } public override void SetDefaults() { Item.width = 26; diff --git a/Items/Weapons/Ranged/Leviatitan.cs b/Items/Weapons/Ranged/Leviatitan.cs index 31f5298295..9e5cf0aeba 100644 --- a/Items/Weapons/Ranged/Leviatitan.cs +++ b/Items/Weapons/Ranged/Leviatitan.cs @@ -1,6 +1,9 @@ using System; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -19,6 +22,8 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Ranged/Megalodon.cs b/Items/Weapons/Ranged/Megalodon.cs index deaea9191e..b7c92aff99 100644 --- a/Items/Weapons/Ranged/Megalodon.cs +++ b/Items/Weapons/Ranged/Megalodon.cs @@ -1,7 +1,9 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Abyss; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -14,6 +16,10 @@ namespace CalamityMod.Items.Weapons.Ranged { public new string LocalizationCategory => "Items.Weapons.Ranged"; private bool fireWater = false; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/NettlevineGreatbow.cs b/Items/Weapons/Ranged/NettlevineGreatbow.cs index 486f5f7cf7..1e4380b475 100644 --- a/Items/Weapons/Ranged/NettlevineGreatbow.cs +++ b/Items/Weapons/Ranged/NettlevineGreatbow.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class NettlevineGreatbow : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Venom]; + } public override void SetDefaults() { Item.width = 36; diff --git a/Items/Weapons/Ranged/Norfleet.cs b/Items/Weapons/Ranged/Norfleet.cs index 5e1b8da3e9..e1859ab4ee 100644 --- a/Items/Weapons/Ranged/Norfleet.cs +++ b/Items/Weapons/Ranged/Norfleet.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -17,6 +19,9 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { ItemID.Sets.IsRangedSpecialistWeapon[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Electrified]; } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/PlanetaryAnnihilation.cs b/Items/Weapons/Ranged/PlanetaryAnnihilation.cs index 380832d89e..a8b829520c 100644 --- a/Items/Weapons/Ranged/PlanetaryAnnihilation.cs +++ b/Items/Weapons/Ranged/PlanetaryAnnihilation.cs @@ -1,6 +1,8 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class PlanetaryAnnihilation : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 58; diff --git a/Items/Weapons/Ranged/ReedBlowgun.cs b/Items/Weapons/Ranged/ReedBlowgun.cs index 0a3672d8c9..31a1c71bed 100644 --- a/Items/Weapons/Ranged/ReedBlowgun.cs +++ b/Items/Weapons/Ranged/ReedBlowgun.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -14,6 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { ItemID.Sets.IsRangedSpecialistWeapon[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Ranged/ScorchedEarth.cs b/Items/Weapons/Ranged/ScorchedEarth.cs index eedf099b8c..d73676f1a2 100644 --- a/Items/Weapons/Ranged/ScorchedEarth.cs +++ b/Items/Weapons/Ranged/ScorchedEarth.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -24,6 +26,11 @@ namespace CalamityMod.Items.Weapons.Ranged public static int OriginalUseTime = 60; public static int TimeBetweenBursts = 10; public static int ProjectilesPerBurst = 4; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Oiled]; + } public override void SetDefaults() { Item.damage = 550; diff --git a/Items/Weapons/Ranged/Seadragon.cs b/Items/Weapons/Ranged/Seadragon.cs index 60d2fadde4..135b671d8b 100644 --- a/Items/Weapons/Ranged/Seadragon.cs +++ b/Items/Weapons/Ranged/Seadragon.cs @@ -1,8 +1,10 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.SunkenSea; using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -19,6 +21,11 @@ namespace CalamityMod.Items.Weapons.Ranged // The 9th shot adds a rocket. The 17th shot adds an ultra powerful muzzle blast, then resets the counter to 2. // This is intentional so you don't get the muzzle blast instantly when you start firing and have to play around it. private int shotCounter = 1; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/SeasSearing.cs b/Items/Weapons/Ranged/SeasSearing.cs index 11d8e3fa93..1234f830ba 100644 --- a/Items/Weapons/Ranged/SeasSearing.cs +++ b/Items/Weapons/Ranged/SeasSearing.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Ranged; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -15,6 +17,8 @@ namespace CalamityMod.Items.Weapons.Ranged { ItemID.Sets.IsRangedSpecialistWeapon[Type] = true; ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Venom]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Wet]; } public override void SetDefaults() diff --git a/Items/Weapons/Ranged/SparkSpreader.cs b/Items/Weapons/Ranged/SparkSpreader.cs index fcb17bdbb2..1f33cb839c 100644 --- a/Items/Weapons/Ranged/SparkSpreader.cs +++ b/Items/Weapons/Ranged/SparkSpreader.cs @@ -1,4 +1,5 @@ using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; @@ -8,6 +9,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class SparkSpreader : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire]; + } public override void SetDefaults() { Item.width = 56; diff --git a/Items/Weapons/Ranged/SulphuricAcidCannon.cs b/Items/Weapons/Ranged/SulphuricAcidCannon.cs index 0b06d218fa..dff15fdead 100644 --- a/Items/Weapons/Ranged/SulphuricAcidCannon.cs +++ b/Items/Weapons/Ranged/SulphuricAcidCannon.cs @@ -1,11 +1,13 @@ -using CalamityMod.Projectiles.Ranged; +using System; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; -using Terraria.DataStructures; using Terraria; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; -using System; namespace CalamityMod.Items.Weapons.Ranged { @@ -15,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { - ItemID.Sets.IsRangedSpecialistWeapon[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/SuperradiantSlaughterer.cs b/Items/Weapons/Ranged/SuperradiantSlaughterer.cs index 69a4afb43a..176fe3a172 100644 --- a/Items/Weapons/Ranged/SuperradiantSlaughterer.cs +++ b/Items/Weapons/Ranged/SuperradiantSlaughterer.cs @@ -1,10 +1,12 @@ -using CalamityMod.CalPlayer.Dashes; +using System.Collections.Generic; +using System.Linq; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer.Dashes; using CalamityMod.Cooldowns; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; -using System.Collections.Generic; -using System.Linq; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -50,6 +52,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { ItemID.Sets.IsRangedSpecialistWeapon[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/TauCannon.cs b/Items/Weapons/Ranged/TauCannon.cs index 8b3fae30d1..c4c90395fd 100644 --- a/Items/Weapons/Ranged/TauCannon.cs +++ b/Items/Weapons/Ranged/TauCannon.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -10,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class TauCannon : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/TelluricGlare.cs b/Items/Weapons/Ranged/TelluricGlare.cs index 417ab80d6c..2ff0366f3e 100644 --- a/Items/Weapons/Ranged/TelluricGlare.cs +++ b/Items/Weapons/Ranged/TelluricGlare.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Weapons.Magic; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Magic; using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -22,6 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Main.RegisterItemAnimation(Type, new DrawAnimationVertical(3, 5)); ItemID.Sets.AnimatesAsSoul[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/TheMaelstrom.cs b/Items/Weapons/Ranged/TheMaelstrom.cs index d84ae38408..b44fe7e7ed 100644 --- a/Items/Weapons/Ranged/TheMaelstrom.cs +++ b/Items/Weapons/Ranged/TheMaelstrom.cs @@ -1,7 +1,9 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Abyss; using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -13,6 +15,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class TheMaelstrom : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 20; diff --git a/Items/Weapons/Ranged/TheStorm.cs b/Items/Weapons/Ranged/TheStorm.cs index c3b443304c..ed4760d7f1 100644 --- a/Items/Weapons/Ranged/TheStorm.cs +++ b/Items/Weapons/Ranged/TheStorm.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Weapons.Magic; using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -19,6 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged { ItemID.Sets.AnimatesAsSoul[Type] = true; Main.RegisterItemAnimation(Type, new DrawAnimationVertical(5, 9)); + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Electrified]; } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/ThreadOfEradication.cs b/Items/Weapons/Ranged/ThreadOfEradication.cs index 2e959a2428..47f1323925 100644 --- a/Items/Weapons/Ranged/ThreadOfEradication.cs +++ b/Items/Weapons/Ranged/ThreadOfEradication.cs @@ -1,8 +1,10 @@ using System.Collections.Generic; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Weapons.Magic; using CalamityMod.NPCs.DevourerofGods; using CalamityMod.Projectiles.Typeless; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -20,6 +22,10 @@ namespace CalamityMod.Items.Weapons.Ranged { tooltips.FindAndReplaceAll("ff00ff", Utils.Hex3(DevourerofGodsHead.SpecialMoveColor)); } + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 40; diff --git a/Items/Weapons/Ranged/Ultima.cs b/Items/Weapons/Ranged/Ultima.cs index 82e09e2fc7..227ccc907e 100644 --- a/Items/Weapons/Ranged/Ultima.cs +++ b/Items/Weapons/Ranged/Ultima.cs @@ -1,7 +1,9 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -20,6 +22,10 @@ namespace CalamityMod.Items.Weapons.Ranged public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); public const float FullChargeTime = 420f; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 44; diff --git a/Items/Weapons/Ranged/Voidragon.cs b/Items/Weapons/Ranged/Voidragon.cs index 955813f31c..186d8660f2 100644 --- a/Items/Weapons/Ranged/Voidragon.cs +++ b/Items/Weapons/Ranged/Voidragon.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -19,6 +21,10 @@ namespace CalamityMod.Items.Weapons.Ranged public static int AmmoSavedPercent = 50; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index 85042077f8..e2445508b2 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -1390,10 +1390,7 @@ TheObliterator: { {$Common.YoyoStatsInfinite} [GFB] ''' - TooltipNormal: - ''' - Occasionally performs a miniature [c/ff00ff:Dimensional Drive] at nearby foes - ''' + TooltipNormal: Occasionally performs a miniature [c/ff00ff:Dimensional Drive] at nearby foes TooltipGFB: just a slight bit of dust spam on this weapon im afraid } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 10afdb312b..cd2d6328f8 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -45,7 +45,7 @@ Animosity: { Tooltip: "[GFB]" TooltipNormal: ''' - Fires a shotgun blast with a tight spread which is imbued with [cbuff:CalamityMod/BrimstoneFlames] + Fires a shotgun blast with a tight spread imbued with [cbuff:CalamityMod/BrimstoneFlames] Press to fire a powerful brimstone round that inflicts [cbuff:CalamityMod/WhisperingDeath] ''' TooltipGFB: @@ -60,7 +60,7 @@ AntiMaterielRifle: { DisplayName: Anti-materiel Rifle Tooltip: ''' - Converts musket balls into .50 caliber sniper rounds that inflict [cbuff:CalamityMod/MarkedforDeath] + Converts musket balls into .50 caliber sniper rounds that cause enemies to become [cbuff:CalamityMod/MarkedforDeath] Unleashes a second swarm of bullets on hit, with additional bullets on critical strikes ''' } @@ -80,7 +80,6 @@ Archerfish: { Tooltip: ''' Converts musket balls into streams of water - Water jets inflict [cbuff:CalamityMod/RiptideDebuff] and [cbuff:Wet] {$CommonItemTooltip.PercentChanceToSaveAmmo} ''' } @@ -121,18 +120,14 @@ AstralBlaster: { AstrealDefeat: { DisplayName: Astreal Defeat - Tooltip: - ''' - All arrows are converted to Astreal Arrows that emit flames as they travel - Astreal Arrows inflict [cbuff:CalamityMod/Shadowflame] on hit - ''' + Tooltip: All arrows are converted to Astreal Arrows that emit flames as they travel } Auralis: { DisplayName: Auralis Tooltip: ''' - Fires a high speed glowing bullet that inflicts [cbuff:CalamityMod/MarkedforDeath] + Fires a high speed glowing bullet that cause enemies to become [cbuff:CalamityMod/MarkedforDeath] Press to zoom out Standing still provides increasing damage bonuses up to 25% Standing still for 5 or more seconds while using the scope ability will summon an aurora @@ -157,12 +152,12 @@ Barinade: { Barinautical: { DisplayName: Barinautical - Tooltip: Converts wooden arrows into strings of 3 [cbuff:Electrified] bolt arrows that explode + Tooltip: Converts wooden arrows into strings of 3 electric bolt arrows that explode } BarracudaGun: { DisplayName: Barracuda Gun - Tooltip: Fires four barracudas that latch onto enemies and inflict [cbuff:CalamityMod/Laceration] + Tooltip: Fires four barracudas that latch onto enemies and shred them } BladedgeRailbow: { @@ -188,7 +183,6 @@ BlissfulBombardier: { ''' Launches a crystalline missile high into the sky, raining holy fire on the cursor The missile relentlessly seeks out a target before bursting into a massive explosion - All rockets inflict [cbuff:CalamityMod/HolyFlames] ''' } @@ -198,7 +192,6 @@ BloodBoiler: { ''' Fires twin streams of bloodfire that returns to you Returning bloodfire reduces [cbuffplr:PotionSickness] if it struck an enemy - Bloodfire streams inflict [cbuff:CalamityMod/Laceration] and [cbuff:CalamityMod/BurningBlood] onto enemies Uses your health as ammo 20% chance to save health ''' @@ -224,11 +217,7 @@ BlossomFlux: { BrimstoneFury: { DisplayName: Brimstone Fury - Tooltip: - ''' - Converts wooden arrows into a spread of 3 brimstone bolts - Bolts inflict [cbuff:CalamityMod/BrimstoneFlames] - ''' + Tooltip: Converts wooden arrows into a spread of 3 brimstone bolts } BulletFilledShotgun: { @@ -255,7 +244,7 @@ Buzzkill: { ChickenCannon: { DisplayName: Chicken Cannon - Tooltip: Fires chicken flares which create enormous incendiary explosions of [cbuff:CalamityMod/Dragonfire] + Tooltip: Fires chicken flares which create enormous [cbuff:CalamityMod/Dragonfire] explosions } ChromaticEruption: { @@ -263,7 +252,6 @@ ChromaticEruption: { Tooltip: ''' Charges up to spew rainbow flames and pairs of homing chromatic flares - Flames and flares inflict enemies with [cbuff:CalamityMod/ElementalMix] Uses gel for ammo {$CommonItemTooltip.PercentChanceToSaveAmmo} ''' @@ -274,7 +262,7 @@ ClamorRifle: { Tooltip: ''' Converts musket balls into homing energy bolts - Energy bolts briefly stun enemies, inflicting [cbuff:CalamityMod/Eutrophication] + Energy bolts briefly stun enemies ''' } @@ -324,9 +312,9 @@ ContinentalGreatbow: { DisplayName: Continental Greatbow Tooltip: ''' - Wooden arrows are set alight and catch foes [cbuff:OnFire] - Fires 3 arrows at once - Fires 2 additional hellfire or [cbuff:Ichor] arrows + Wooden arrows are set alight with fire + Fires 3 arrows at once + Fires 2 additional hellfire or ichor arrows ''' } @@ -412,11 +400,10 @@ Drataliornus: { DisplayName: Drataliornus Tooltip: ''' - Fires an escalating stream of fireballs + Fires an escalating stream of [cbuff:CalamityMod/Dragonfire] arrows Fireballs rain meteors, leave dragon dust trails, and launch additional bolts at max speed Taking damage while firing the stream will interrupt it and reduce your wing flight time Press to fire two devastating barrages of five empowered fireballs - All attacks from the bow inflict an inferno of [cbuff:CalamityMod/Dragonfire] 'Just don't get hit' ''' } @@ -428,12 +415,12 @@ DriftwoodBow: { EternalBlizzard: { DisplayName: Eternal Blizzard - Tooltip: Fires an additional icicle arrow that freezes into a falling icicle and inflicts [cbuff:Frostburn2] + Tooltip: Fires an additional icicle arrow that freezes into a falling icicle } Eviscerator: { DisplayName: Eviscerator - Tooltip: Converts musket balls into fast-moving blood clots that cause [cbuff:CalamityMod/BurningBlood] + Tooltip: Converts musket balls into fast-moving blood clots } FetidEmesis: { @@ -444,7 +431,6 @@ FetidEmesis: { When the barrel overheats, a spread of fetid chunks is vomited out After firing, the gun must cool back down before it can be used again Pressing while firing will instantly launch the chunks - Fetid chunks inflict [cbuff:CalamityMod/SulphuricPoisoning] {$CommonItemTooltip.PercentChanceToSaveAmmo} ''' } @@ -468,7 +454,6 @@ FlakKraken: { Fires pairs of abyssal flak shells that explode into wide cones of ink shrapnel Abyssal flak shells burst when they reach the cursor's position Direct hits with the flak shell will deal reduced shrapnel damage - All shells inflict [cbuff:CalamityMod/CrushDepth] on hit ''' } @@ -476,7 +461,7 @@ FlakToxicannon: { DisplayName: Flak Toxicannon Tooltip: ''' - Fires a toxic shell that explodes into a cone of [cbuff:CalamityMod/Irradiated] sludge + Fires a toxic shell that explodes into a cone of sludge Toxic shells burst when they reach the cursor's position Direct hits with the toxic shell will reduce the damage dealt by the sludge Uses rockets for ammo @@ -488,8 +473,7 @@ FlarewingBow: { Tooltip: ''' Shoots a spread of 3 arrows - Wooden arrows are converted into obsidian bats - Obsidian Bats home onto enemies after piercing once and inflict [cbuff:OnFire3] + Wooden arrows are converted into obsidian bats which home in after piercing once ''' } @@ -498,7 +482,7 @@ FlurrystormCannon: { Tooltip: ''' Fires a chain of snowballs that become faster over time - Has a chance to also fire an ice chunk that shatters into shards and inflicts [cbuff:Frostburn] + Has a chance to also fire an ice chunk that shatters into shards {$CommonItemTooltip.PercentChanceToSaveAmmo} ''' } @@ -508,7 +492,7 @@ FreedomStar: { Tooltip: ''' Tap to fire energy orbs - Hold to charge and fire a beam that explodes and inflicts [cbuff:CalamityMod/Nightwither] on hit + Hold to charge and fire a beam that explodes on hit ''' } @@ -517,7 +501,7 @@ FrostbiteBlaster: { Tooltip: ''' Fires a spread of 6 bullets - Converts musket balls into icicles that [cbuff:Frostburn2] enemies + Converts musket balls into icicles ''' } @@ -538,7 +522,7 @@ GoldenEagle: { Goobow: { DisplayName: Goobow - Tooltip: Addtionally fires two streams of [cbuff:Slimed] + Tooltip: Addtionally fires two streams of damaging } GunkShot: { @@ -607,7 +591,7 @@ Helstorm: { Tooltip: ''' Fires two bullets at once - The gun also deals damage and inflicts [cbuff:OnFire3] to enemies that touch it + The gun also deals damage to enemies that touch it ''' } @@ -616,7 +600,7 @@ HoarfrostBow: { Tooltip: ''' Fires two arrows at once - Converts wooden arrows into mist arrows that spread frost mist on collision and inflict [cbuff:Frostburn2] + Converts wooden arrows into mist arrows that spread frost mist on collision ''' } @@ -664,8 +648,8 @@ Leviatitan: { DisplayName: Leviatitan Tooltip: ''' - Fires high velocity aqua blasts that [cbuff:CalamityMod/RiptideDebuff] foes - Releases homing aberrations that cause [cbuff:CalamityMod/ArmorCrunch] every six shots + Fires high velocity aqua blasts + Releases homing aberrations that shred enemy defense every six shots to vomit a meteor that explodes on hit 'The L in LMG stands for Leviathan' ''' @@ -734,7 +718,7 @@ Megalodon: { Tooltip: ''' Rapidly fires alternating bullets and pressurized water jets - Water jets inflict [cbuff:CalamityMod/CrushDepth] and consume no ammo + Water jets consume no ammo ''' } @@ -798,7 +782,7 @@ NettlevineGreatbow: { Tooltip: ''' Shoots 4 arrows at once - Fires 2 additional [cbuff:Venom] or chlorophyte arrows + Fires 2 additional venom or chlorophyte arrows ''' } @@ -936,7 +920,7 @@ PlanetaryAnnihilation: { Tooltip: ''' Fires a storm of 7 arrows from the sky - Wooden arrows are converted into homing energy bolts that inflict [cbuff:CalamityMod/ElementalMix] + Wooden arrows are converted into homing energy bolts ''' } @@ -1010,7 +994,7 @@ ReedBlowgun: { DisplayName: Reed Blowgun Tooltip: ''' - Fires a high-pressure stream of bubbles that inflicts [cbuff:CalamityMod/RiptideDebuff] + Fires a high-pressure stream of bubbles [c/5C95A1:'The Old Sea Kingdom never truly sought to expand beyond its initial borders.] [c/5C95A1:However, they had a perfect track record of repelling any invasions, thanks to their insurmountable advantage in the water.'] ''' @@ -1049,7 +1033,7 @@ ScorchedEarth: { Tooltip: ''' Fires a burst of four heat seeking missiles that rapidly accelerate after a short delay - All rockets explode into napalm cluster bombs on impact, inflicting [cbuff:Oiled] and [cbuff:CalamityMod/Daybroken] + All rockets explode into napalm cluster bombs on impact {$CommonItemTooltip.PercentChanceToSaveAmmo} 'Burns your targets to a fine crisp' ''' @@ -1080,7 +1064,7 @@ Seadragon: { Tooltip: ''' Unleashes a deluge of alternating bullets and pressurized water jets - Additionally fires rockets and emits devastating muzzle blasts + Additionally fires rockets and emits devastating [cbuff:OnFire3] muzzle blasts Water jets consume no ammo ''' } @@ -1089,7 +1073,7 @@ SeasSearing: { DisplayName: Sea's Searing Tooltip: ''' - Fires a string of bubbles summoning a shower of bubbles on hit, inflicting [cbuff:Venom] and [cbuff:Wet] + Fires a string of bubbles summoning a shower of bubbles on hit Press to fire a slower, larger water blast that summons a water spout ''' } @@ -1185,7 +1169,7 @@ SparkSpreader: { DisplayName: Spark Spreader Tooltip: ''' - Fires sparks that set your foe [cbuff:OnFire] + Ignites your foe with flaming sparks Uses gel for ammo ''' } @@ -1194,7 +1178,7 @@ SpectralstormCannon: { DisplayName: Spectralstorm Cannon Tooltip: ''' - Fires a barrage of [cbuff:CalamityMod/Nightwither] infused flares that builds up a searing heat in the weapon + Fires a barrage of spectral [cbuff:CalamityMod/Nightwither] flares that builds up a searing heat in the weapon While cooling down, heat-seeking phantoms are continuously released Firing for too long overheats the weapon, leaving it unusable for a short period and inflicting you with [cbuffplr:CalamityMod/Nightwither] However, triggering overheat releases a powerful burst of souls and resets heat @@ -1284,7 +1268,7 @@ SulphuricAcidCannon: { DisplayName: Sulphuric Acid Cannon Tooltip: ''' - Fires homing Acid Rockets that inflict [cbuff:CalamityMod/SulphuricPoisoning] + Fires homing Acid Rockets Acid Rockets stick to enemies and explode into toxic mist after a short delay ''' } @@ -1299,9 +1283,8 @@ SuperradiantSlaughterer: { ''' MainInfo: ''' - Hold to rev up an elemental buzzsaw that deals close-range damage + Hold to rev up an elemental buzzsaw that deals close-range damage and causes [cbuff:CalamityMod/Laceration] Release to fire the buzzsaw which bounces off tiles, releasing homing bolts when returning depending on hits - Buzzsaws inflict [cbuff:CalamityMod/ElementalMix] and [cbuff:CalamityMod/Laceration] Revving up the saw increases its damage and allows it to pierce more enemies ''' AltInfo: @@ -1340,7 +1323,6 @@ TauCannon: { Charge level one fires a burst of bolts Charge level two fires a beam of energy that quickly fizzles out Charge level three fires a massive laser and creates astral portals around you - Inflicts [cbuff:CalamityMod/AstralInfectionDebuff] 'This weapon is very ethically questionable' ''' } @@ -1349,7 +1331,7 @@ TelluricGlare: { DisplayName: Telluric Glare Tooltip: ''' - Rapidly fires volleys of arrows infused with [cbuff:CalamityMod/HolyFlames] + Rapidly fires volleys of arrows Every other arrow is converted into radiant greatarrows which pierce but quicky disappear after striking Wooden arrows are converted into more powerful greatarrows that deal increased damage ''' @@ -1373,7 +1355,7 @@ TheHive: { DisplayName: The Hive Tooltip: ''' - Launches a wide spread of 4 [cbuff:CalamityMod/Plague] missiles that explode on contact with enemies and tiles + Launches a wide spread of 4 missiles that explode on contact with enemies and tiles Charging the launcher decreases the spread and increases the velocity of the missile barrage Fully charging the launcher will cause it to fire a [cbuff:CalamityMod/Plague] nuke to decimate a massive area on impact ''' @@ -1386,7 +1368,7 @@ TheJailor: { TheMaelstrom: { DisplayName: The Maelstrom - Tooltip: Fires charged Reaper Sharks that cause [cbuff:CalamityMod/HadopelagicPressure] water explosions + Tooltip: Fires charged Reaper Sharks that cause water explosions } ThePack: { @@ -1421,7 +1403,7 @@ TheStorm: { DisplayName: The Storm Tooltip: ''' - Fires a spread of homing [cbuff:Electrified] bolts and arrows from the sky + Fires a spread of homing lightning bolts and arrows from the sky Converts wooden arrows into powerful lightning bolts ''' } @@ -1433,7 +1415,6 @@ ThreadOfEradication: { Charges up [c/ff00ff:God's Bane Doombeam] Channelling the weapon causes it to charge up [c/ff00ff:Hyperdeath Rift] instead While charging [c/ff00ff:Hyperdeath Rift], the bow's turning speed is slowed down - Eradicates enemies with [cbuff:CalamityMod/GodSlayerInferno] ''' } @@ -1457,7 +1438,7 @@ TyrannysEnd: { Tooltip: ''' Converts musket balls into .70 caliber sniper rounds that deal devastating damage - Inflicts [cbuff:CalamityMod/MarkedforDeath] on enemy hits and bypasses defense + Causes enemies to become [cbuff:CalamityMod/MarkedforDeath] on enemy hits and bypasses defense Critical hits summon a swarm of 6 additional bullets 'Pierce the heart of even the most heavily-armored foe' ''' @@ -1468,7 +1449,7 @@ Ultima: { Tooltip: ''' Casts a continuous stream of plasma bolts - Over time bolts power up into solid beams that inflict [cbuff:CalamityMod/ElementalMix] as you continue shooting + Over time bolts power up into solid beams as you continue shooting {$CommonItemTooltip.PercentChanceToSaveAmmo} ''' } @@ -1496,7 +1477,7 @@ Voidragon: { DisplayName: Voidragon Tooltip: ''' - Fires [cbuff:CalamityMod/Voidfrost] blasts that explode every other shot + Fires void blasts that explode every other shot Shoots demon flame tentacles alongside every shot Void blasts consume no ammo and bullets have a {0}% chance to save ammo ''' diff --git a/Projectiles/Ranged/NorfleetExplosion.cs b/Projectiles/Ranged/NorfleetExplosion.cs index 5c54050e99..ce15cad193 100644 --- a/Projectiles/Ranged/NorfleetExplosion.cs +++ b/Projectiles/Ranged/NorfleetExplosion.cs @@ -25,6 +25,13 @@ namespace CalamityMod.Projectiles.Ranged } public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) { + if (Projectile.ai[1] == 0) + target.AddBuff(BuffID.Daybreak, 300); + if (Projectile.ai[1] == 1) + target.AddBuff(BuffID.Electrified, 300); + if (Projectile.ai[1] == 2) + target.AddBuff(ModContent.BuffType(), 300); + if (Projectile.numHits > 0) Projectile.damage = (int)(Projectile.damage * 0.8f); if (Projectile.damage < 1) From bd7452fd568766654ed8e8254cc961c4d27d2e93 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Sun, 19 Apr 2026 12:44:39 -0700 Subject: [PATCH 07/26] Fixed melee weapons with multiple debuffs --- Items/Weapons/Melee/BlightedCleaver.cs | 3 +-- Items/Weapons/Melee/DarklightGreatsword.cs | 3 +-- Items/Weapons/Melee/DefiledGreatsword.cs | 3 +-- Items/Weapons/Melee/DraconicDestruction.cs | 5 +---- Items/Weapons/Melee/Greentide.cs | 3 +-- Items/Weapons/Melee/Nadir.cs | 2 +- Items/Weapons/Melee/Omniblade.cs | 4 ---- Items/Weapons/Melee/SoulHarvester.cs | 3 +-- Items/Weapons/Melee/TheLastMourning.cs | 3 +-- Items/Weapons/Melee/TheObliterator.cs | 1 - 10 files changed, 8 insertions(+), 22 deletions(-) diff --git a/Items/Weapons/Melee/BlightedCleaver.cs b/Items/Weapons/Melee/BlightedCleaver.cs index 4af7e76f9f..9ab9a0150b 100644 --- a/Items/Weapons/Melee/BlightedCleaver.cs +++ b/Items/Weapons/Melee/BlightedCleaver.cs @@ -14,8 +14,7 @@ namespace CalamityMod.Items.Weapons.Melee public new string LocalizationCategory => "Items.Weapons.Melee"; public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Venom]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3, BuffID.Venom]; } public override void SetDefaults() diff --git a/Items/Weapons/Melee/DarklightGreatsword.cs b/Items/Weapons/Melee/DarklightGreatsword.cs index 828a7366d9..25fd6b6150 100644 --- a/Items/Weapons/Melee/DarklightGreatsword.cs +++ b/Items/Weapons/Melee/DarklightGreatsword.cs @@ -27,8 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee internal const int SlashCreationRate = 18; public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.Frostburn2]; } public override void SetDefaults() diff --git a/Items/Weapons/Melee/DefiledGreatsword.cs b/Items/Weapons/Melee/DefiledGreatsword.cs index 3f700aa1de..66e1955b04 100644 --- a/Items/Weapons/Melee/DefiledGreatsword.cs +++ b/Items/Weapons/Melee/DefiledGreatsword.cs @@ -24,8 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee public const float ShootSpeed = 16f; public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Venom]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3, BuffID.Venom]; } public override void SetDefaults() diff --git a/Items/Weapons/Melee/DraconicDestruction.cs b/Items/Weapons/Melee/DraconicDestruction.cs index bf443673ac..543e1be971 100644 --- a/Items/Weapons/Melee/DraconicDestruction.cs +++ b/Items/Weapons/Melee/DraconicDestruction.cs @@ -16,10 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee public new string LocalizationCategory => "Items.Weapons.Melee"; public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Oiled]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Slimed]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType(), BuffID.Oiled, BuffID.Slimed]; } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/Greentide.cs b/Items/Weapons/Melee/Greentide.cs index df7546130e..3adb4e0ac9 100644 --- a/Items/Weapons/Melee/Greentide.cs +++ b/Items/Weapons/Melee/Greentide.cs @@ -26,8 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee internal const int TotalTeeth = 3; public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Wet]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.Wet]; } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/Nadir.cs b/Items/Weapons/Melee/Nadir.cs index d872e4b634..32254c62a1 100644 --- a/Items/Weapons/Melee/Nadir.cs +++ b/Items/Weapons/Melee/Nadir.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; ItemID.Sets.Spears[Type] = true; } diff --git a/Items/Weapons/Melee/Omniblade.cs b/Items/Weapons/Melee/Omniblade.cs index 597c7dcf3f..ba3dd5ffb8 100644 --- a/Items/Weapons/Melee/Omniblade.cs +++ b/Items/Weapons/Melee/Omniblade.cs @@ -12,10 +12,6 @@ namespace CalamityMod.Items.Weapons.Melee public class Omniblade : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() - { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; - } public override void SetDefaults() { Item.width = 64; diff --git a/Items/Weapons/Melee/SoulHarvester.cs b/Items/Weapons/Melee/SoulHarvester.cs index 9bf464b713..b57c559428 100644 --- a/Items/Weapons/Melee/SoulHarvester.cs +++ b/Items/Weapons/Melee/SoulHarvester.cs @@ -16,8 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee public new string LocalizationCategory => "Items.Weapons.Melee"; public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.CursedInferno]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.CursedInferno, ModContent.BuffType()]; } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/TheLastMourning.cs b/Items/Weapons/Melee/TheLastMourning.cs index 0986477bef..a194ee6eec 100644 --- a/Items/Weapons/Melee/TheLastMourning.cs +++ b/Items/Weapons/Melee/TheLastMourning.cs @@ -17,8 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee public new string LocalizationCategory => "Items.Weapons.Melee"; public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.OnFire3]; } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/TheObliterator.cs b/Items/Weapons/Melee/TheObliterator.cs index d3da3d4688..00c666e316 100644 --- a/Items/Weapons/Melee/TheObliterator.cs +++ b/Items/Weapons/Melee/TheObliterator.cs @@ -29,7 +29,6 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; ItemID.Sets.Yoyo[Type] = true; ItemID.Sets.GamepadExtraRange[Type] = 15; From e1006a348386faf0125d177e79f168a928c2828d Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Sun, 19 Apr 2026 12:52:15 -0700 Subject: [PATCH 08/26] Fixed ranged weapons with multiple debuffsdebuffs --- Items/Weapons/Ranged/Archerfish.cs | 3 +-- Items/Weapons/Ranged/BloodBoiler.cs | 3 +-- Items/Weapons/Ranged/ContinentalGreatbow.cs | 3 +-- Items/Weapons/Ranged/Leviatitan.cs | 3 +-- Items/Weapons/Ranged/Norfleet.cs | 4 +--- Items/Weapons/Ranged/ScorchedEarth.cs | 3 +-- Items/Weapons/Ranged/Seadragon.cs | 3 +-- 7 files changed, 7 insertions(+), 15 deletions(-) diff --git a/Items/Weapons/Ranged/Archerfish.cs b/Items/Weapons/Ranged/Archerfish.cs index 21ae7de037..c6ac232654 100644 --- a/Items/Weapons/Ranged/Archerfish.cs +++ b/Items/Weapons/Ranged/Archerfish.cs @@ -19,8 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Wet]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Wet, ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Ranged/BloodBoiler.cs b/Items/Weapons/Ranged/BloodBoiler.cs index 8a7ee6e8b5..24a1259bde 100644 --- a/Items/Weapons/Ranged/BloodBoiler.cs +++ b/Items/Weapons/Ranged/BloodBoiler.cs @@ -22,8 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType()]; ItemID.Sets.IsRangedSpecialistWeapon[Type] = true; } public override void SetDefaults() diff --git a/Items/Weapons/Ranged/ContinentalGreatbow.cs b/Items/Weapons/Ranged/ContinentalGreatbow.cs index b2c6a1f345..ed576a2c8f 100644 --- a/Items/Weapons/Ranged/ContinentalGreatbow.cs +++ b/Items/Weapons/Ranged/ContinentalGreatbow.cs @@ -14,8 +14,7 @@ namespace CalamityMod.Items.Weapons.Ranged public new string LocalizationCategory => "Items.Weapons.Ranged"; public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Ichor]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Ichor, BuffID.OnFire]; } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/Leviatitan.cs b/Items/Weapons/Ranged/Leviatitan.cs index 9e5cf0aeba..9d73cfc86c 100644 --- a/Items/Weapons/Ranged/Leviatitan.cs +++ b/Items/Weapons/Ranged/Leviatitan.cs @@ -22,8 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Ranged/Norfleet.cs b/Items/Weapons/Ranged/Norfleet.cs index e1859ab4ee..32bb59d087 100644 --- a/Items/Weapons/Ranged/Norfleet.cs +++ b/Items/Weapons/Ranged/Norfleet.cs @@ -19,9 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { ItemID.Sets.IsRangedSpecialistWeapon[Type] = true; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Electrified]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType(), BuffID.Electrified]; } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/ScorchedEarth.cs b/Items/Weapons/Ranged/ScorchedEarth.cs index d73676f1a2..1a318858b7 100644 --- a/Items/Weapons/Ranged/ScorchedEarth.cs +++ b/Items/Weapons/Ranged/ScorchedEarth.cs @@ -28,8 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged public static int ProjectilesPerBurst = 4; public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Oiled]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.Oiled]; } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/Seadragon.cs b/Items/Weapons/Ranged/Seadragon.cs index 135b671d8b..5fe01567c1 100644 --- a/Items/Weapons/Ranged/Seadragon.cs +++ b/Items/Weapons/Ranged/Seadragon.cs @@ -23,8 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged private int shotCounter = 1; public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.OnFire3]; } public override void SetDefaults() From 5ae1f09277e634da4bb882c2d9129d7cb3e77fad Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Sun, 19 Apr 2026 13:18:22 -0700 Subject: [PATCH 09/26] Couple fixes --- Items/Weapons/Ranged/SeasSearing.cs | 3 +-- Items/Weapons/Ranged/ThreadOfEradication.cs | 3 --- Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson | 2 +- .../en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson | 4 ++-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Items/Weapons/Ranged/SeasSearing.cs b/Items/Weapons/Ranged/SeasSearing.cs index 1234f830ba..9ef2cbf177 100644 --- a/Items/Weapons/Ranged/SeasSearing.cs +++ b/Items/Weapons/Ranged/SeasSearing.cs @@ -17,8 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged { ItemID.Sets.IsRangedSpecialistWeapon[Type] = true; ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Venom]; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Wet]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Venom, BuffID.Wet]; } public override void SetDefaults() diff --git a/Items/Weapons/Ranged/ThreadOfEradication.cs b/Items/Weapons/Ranged/ThreadOfEradication.cs index 2765f0a619..96597be9d2 100644 --- a/Items/Weapons/Ranged/ThreadOfEradication.cs +++ b/Items/Weapons/Ranged/ThreadOfEradication.cs @@ -22,9 +22,6 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { CalamityItemSets.ShowScalingCritDamageTooltip[Type] = true; - } - public override void SetStaticDefaults() - { CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index e55bf18445..36dd974f51 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -1406,7 +1406,7 @@ TitanArm: { DisplayName: Titan Arm Tooltip: ''' - Sends enemies straight to the stars at the speed of light and spreads the [cbuff:CalamityMod/AstralInfectionDebuff] + Sends enemies straight to the stars at the speed of light Slap Hand but better ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 8ab7a101d1..469c5eb131 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -520,7 +520,7 @@ GoldenEagle: { Goobow: { DisplayName: Goobow - Tooltip: Addtionally fires two streams of damaging + Tooltip: Addtionally fires two streams of damaging slime } GunkShot: { @@ -849,7 +849,7 @@ OpalStriker: { DisplayName: Opal Striker Tooltip: ''' - Fires a chargeable heated energy bolt that pierces and sets enemies [cbuff:OnFire] + Fires a chargeable heated energy bolt that pierces Fully charged shots deal extra damage, move faster and inflict [cbuff:OnFire3] ''' } From 22382f6a843156e393d64c6892fd51d01374d159 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Sun, 19 Apr 2026 13:23:10 -0700 Subject: [PATCH 10/26] Update CalamityItemSets.cs --- Systems/Collections/CalamityItemSets.cs | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/Systems/Collections/CalamityItemSets.cs b/Systems/Collections/CalamityItemSets.cs index 49b8fbf3c2..9c4ee5d57d 100644 --- a/Systems/Collections/CalamityItemSets.cs +++ b/Systems/Collections/CalamityItemSets.cs @@ -93,8 +93,8 @@ namespace CalamityMod.Systems.Collections /// Defaults to . /// public static bool[] RogueBomb = Factory.CreateBoolSet(ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), - ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), - ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType()); /// @@ -102,9 +102,9 @@ namespace CalamityMod.Systems.Collections /// Currently unused, and exists as an objective classification for the sake of the Wiki.
/// Defaults to . ///
- public static bool[] RogueBoomerang = Factory.CreateBoolSet(ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), + public static bool[] RogueBoomerang = Factory.CreateBoolSet(ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), - ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType()); /// @@ -113,10 +113,10 @@ namespace CalamityMod.Systems.Collections /// Defaults to . /// public static bool[] RogueDagger = Factory.CreateBoolSet(ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), - ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), - ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType()); /// @@ -125,8 +125,8 @@ namespace CalamityMod.Systems.Collections /// Defaults to . /// public static bool[] RogueJavelin = Factory.CreateBoolSet(ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), - ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), - ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType()); /// @@ -146,5 +146,10 @@ namespace CalamityMod.Systems.Collections /// Force display expandable tooltip debuff info for infliction on a player /// public static List[] ExtraDebuffTooltip_Player = Factory.CreateCustomSet>(new()); + + public static bool[] ShowScalingCritDamageTooltip = Factory + .CreateNamedSet("ShowScalingCritDamageTooltip") + .Description("Replaces Crit Chance tooltip line with Crit Damage, getting 2% crit dmg per 1% crit chance") + .RegisterBoolSet(); } } From 349949145ce1d25fe81afc22291c4081c37fe6a6 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Sun, 19 Apr 2026 14:47:03 -0700 Subject: [PATCH 11/26] Mage --- Items/Weapons/Magic/AbyssShocker.cs | 8 ++- Items/Weapons/Magic/AcidGun.cs | 8 ++- Items/Weapons/Magic/AethersWhisper.cs | 8 ++- Items/Weapons/Magic/AnahitasArpeggio.cs | 6 ++ Items/Weapons/Magic/Apotheosis.cs | 9 ++- Items/Weapons/Magic/AquamarineStaff.cs | 5 +- Items/Weapons/Magic/ArcticBearPaw.cs | 8 ++- Items/Weapons/Magic/AuguroftheVoid.cs | 8 ++- Items/Weapons/Magic/BelchingSaxophone.cs | 7 +- Items/Weapons/Magic/BloodBath.cs | 4 +- Items/Weapons/Magic/BrimroseStaff.cs | 5 +- Items/Weapons/Magic/ClothiersWrath.cs | 8 ++- Items/Weapons/Magic/Cryophobia.cs | 8 ++- Items/Weapons/Magic/EidolicWail.cs | 8 ++- Items/Weapons/Magic/EvergladeSpray.cs | 8 ++- Items/Weapons/Magic/FlareBolt.cs | 6 ++ Items/Weapons/Magic/ForbiddenSun.cs | 8 ++- Items/Weapons/Magic/FrostBolt.cs | 6 ++ Items/Weapons/Magic/HadalUrn.cs | 8 ++- Items/Weapons/Magic/HeliumFlash.cs | 4 +- Items/Weapons/Magic/HellwingStaff.cs | 3 + Items/Weapons/Magic/Hematemesis.cs | 5 +- Items/Weapons/Magic/HyperdeathRiftScepter.cs | 3 + Items/Weapons/Magic/IceBarrage.cs | 8 ++- Items/Weapons/Magic/IcicleTrident.cs | 5 +- Items/Weapons/Magic/InfernalRift.cs | 5 +- Items/Weapons/Magic/LashesofChaos.cs | 8 ++- Items/Weapons/Magic/Miasma.cs | 5 +- Items/Weapons/Magic/Nucleosynthesis.cs | 5 +- Items/Weapons/Magic/PurgeGuzzler.cs | 8 ++- Items/Weapons/Magic/RougeSlash.cs | 8 ++- Items/Weapons/Magic/SanguineFlare.cs | 5 +- Items/Weapons/Magic/SeethingDischarge.cs | 8 ++- Items/Weapons/Magic/ShadecrystalBarrage.cs | 8 ++- Items/Weapons/Magic/ShaderainStaff.cs | 5 +- Items/Weapons/Magic/SlitheringEels.cs | 6 ++ Items/Weapons/Magic/SnowstormStaff.cs | 8 ++- Items/Weapons/Magic/SoulPiercer.cs | 5 +- Items/Weapons/Magic/SubsumingVortex.cs | 5 +- Items/Weapons/Magic/Teslastaff.cs | 2 + Items/Weapons/Magic/TheCauldron.cs | 2 + Items/Weapons/Magic/ThePrince.cs | 3 + Items/Weapons/Magic/TheSwarmer.cs | 7 +- Items/Weapons/Magic/UndinesRetribution.cs | 3 + Items/Weapons/Magic/VeeringWind.cs | 2 + Items/Weapons/Magic/VenusianTrident.cs | 5 +- Items/Weapons/Magic/Viscera.cs | 5 +- Items/Weapons/Magic/VitriolicViper.cs | 8 ++- Items/Weapons/Magic/VividClarity.cs | 5 +- Items/Weapons/Magic/VoidVortex.cs | 5 +- Items/Weapons/Magic/VoltaicClimax.cs | 2 + Items/Weapons/Magic/Volterion.cs | 5 ++ Items/Weapons/Magic/Waywasher.cs | 8 ++- Items/Weapons/Magic/WintersFury.cs | 6 +- Items/Weapons/Magic/YharimsCrystal.cs | 6 ++ Items/Weapons/Melee/FlarefrostBlade.cs | 3 +- ...Mods.CalamityMod.Items.Weapons.Magic.hjson | 66 +++++++------------ ...Mods.CalamityMod.Items.Weapons.Melee.hjson | 2 +- 58 files changed, 309 insertions(+), 89 deletions(-) diff --git a/Items/Weapons/Magic/AbyssShocker.cs b/Items/Weapons/Magic/AbyssShocker.cs index e168061648..432a737f51 100644 --- a/Items/Weapons/Magic/AbyssShocker.cs +++ b/Items/Weapons/Magic/AbyssShocker.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Magic; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -10,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Magic public class AbyssShocker : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 86; diff --git a/Items/Weapons/Magic/AcidGun.cs b/Items/Weapons/Magic/AcidGun.cs index 002238f231..f8b8d68e67 100644 --- a/Items/Weapons/Magic/AcidGun.cs +++ b/Items/Weapons/Magic/AcidGun.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.FurnitureAcidwood; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Magic public class AcidGun : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 42; diff --git a/Items/Weapons/Magic/AethersWhisper.cs b/Items/Weapons/Magic/AethersWhisper.cs index 48329f3ad6..149ceb4924 100644 --- a/Items/Weapons/Magic/AethersWhisper.cs +++ b/Items/Weapons/Magic/AethersWhisper.cs @@ -1,7 +1,9 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; using CalamityMod.Sounds; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Magic public class AethersWhisper : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 134; diff --git a/Items/Weapons/Magic/AnahitasArpeggio.cs b/Items/Weapons/Magic/AnahitasArpeggio.cs index a64e4316dd..8b07413bb3 100644 --- a/Items/Weapons/Magic/AnahitasArpeggio.cs +++ b/Items/Weapons/Magic/AnahitasArpeggio.cs @@ -1,6 +1,8 @@ using System.Collections.Generic; using System.Linq; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -19,6 +21,10 @@ namespace CalamityMod.Items.Weapons.Magic public static readonly SoundStyle CapSound = new("CalamityMod/Sounds/Item/HarpLV6"); public static readonly SoundStyle EndSound = new("CalamityMod/Sounds/Item/HarpEnd"); public static readonly SoundStyle HitSound = new("CalamityMod/Sounds/Item/HarpNoteHit"); + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Wet, BuffID.Confused]; + } public override void SetDefaults() { Item.width = 56; diff --git a/Items/Weapons/Magic/Apotheosis.cs b/Items/Weapons/Magic/Apotheosis.cs index dbfc18e573..006328f003 100644 --- a/Items/Weapons/Magic/Apotheosis.cs +++ b/Items/Weapons/Magic/Apotheosis.cs @@ -1,8 +1,10 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Summon; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -14,6 +16,11 @@ namespace CalamityMod.Items.Weapons.Magic public class Apotheosis : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 30; diff --git a/Items/Weapons/Magic/AquamarineStaff.cs b/Items/Weapons/Magic/AquamarineStaff.cs index a933cc1bdf..c54f0b5007 100644 --- a/Items/Weapons/Magic/AquamarineStaff.cs +++ b/Items/Weapons/Magic/AquamarineStaff.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.SunkenSea; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -15,6 +17,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/ArcticBearPaw.cs b/Items/Weapons/Magic/ArcticBearPaw.cs index 3e39e2804f..0f0175da2c 100644 --- a/Items/Weapons/Magic/ArcticBearPaw.cs +++ b/Items/Weapons/Magic/ArcticBearPaw.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Magic; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.ModLoader; @@ -7,6 +9,10 @@ namespace CalamityMod.Items.Weapons.Magic public class ArcticBearPaw : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + } public override void SetDefaults() { Item.width = 28; diff --git a/Items/Weapons/Magic/AuguroftheVoid.cs b/Items/Weapons/Magic/AuguroftheVoid.cs index d2ef2738fe..3f83281ca4 100644 --- a/Items/Weapons/Magic/AuguroftheVoid.cs +++ b/Items/Weapons/Magic/AuguroftheVoid.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Magic public class AuguroftheVoid : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 28; diff --git a/Items/Weapons/Magic/BelchingSaxophone.cs b/Items/Weapons/Magic/BelchingSaxophone.cs index 37e6ec4379..1852760a9c 100644 --- a/Items/Weapons/Magic/BelchingSaxophone.cs +++ b/Items/Weapons/Magic/BelchingSaxophone.cs @@ -1,5 +1,7 @@ using System; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -13,7 +15,10 @@ namespace CalamityMod.Items.Weapons.Magic public new string LocalizationCategory => "Items.Weapons.Magic"; public const int BaseDamage = 32; private int counter = 0; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 46; diff --git a/Items/Weapons/Magic/BloodBath.cs b/Items/Weapons/Magic/BloodBath.cs index 3485e92f94..a7be10ce23 100644 --- a/Items/Weapons/Magic/BloodBath.cs +++ b/Items/Weapons/Magic/BloodBath.cs @@ -1,6 +1,7 @@ using System; -using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -15,6 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/BrimroseStaff.cs b/Items/Weapons/Magic/BrimroseStaff.cs index a451948664..4521a1989a 100644 --- a/Items/Weapons/Magic/BrimroseStaff.cs +++ b/Items/Weapons/Magic/BrimroseStaff.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -12,6 +14,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/ClothiersWrath.cs b/Items/Weapons/Magic/ClothiersWrath.cs index 8ef09521c1..0f367a59d0 100644 --- a/Items/Weapons/Magic/ClothiersWrath.cs +++ b/Items/Weapons/Magic/ClothiersWrath.cs @@ -1,4 +1,6 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Systems.Collections; +using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -9,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Magic public class ClothiersWrath : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 28; diff --git a/Items/Weapons/Magic/Cryophobia.cs b/Items/Weapons/Magic/Cryophobia.cs index 646bddac01..a7d211cd21 100644 --- a/Items/Weapons/Magic/Cryophobia.cs +++ b/Items/Weapons/Magic/Cryophobia.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Magic; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; @@ -8,6 +10,10 @@ namespace CalamityMod.Items.Weapons.Magic public class Cryophobia : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + } public override void SetDefaults() { Item.width = 56; diff --git a/Items/Weapons/Magic/EidolicWail.cs b/Items/Weapons/Magic/EidolicWail.cs index 15de8c3c0b..1efbc674b0 100644 --- a/Items/Weapons/Magic/EidolicWail.cs +++ b/Items/Weapons/Magic/EidolicWail.cs @@ -1,6 +1,8 @@ -using CalamityMod.Projectiles.Magic; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; using CalamityMod.Sounds; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria.ID; using Terraria.ModLoader; @@ -10,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Magic public class EidolicWail : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 60; diff --git a/Items/Weapons/Magic/EvergladeSpray.cs b/Items/Weapons/Magic/EvergladeSpray.cs index 6bbe8845ab..22b05cc0fe 100644 --- a/Items/Weapons/Magic/EvergladeSpray.cs +++ b/Items/Weapons/Magic/EvergladeSpray.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.ModLoader; @@ -8,6 +10,10 @@ namespace CalamityMod.Items.Weapons.Magic public class EvergladeSpray : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.CursedInferno, BuffID.Ichor]; + } public override void SetDefaults() { Item.width = 34; diff --git a/Items/Weapons/Magic/FlareBolt.cs b/Items/Weapons/Magic/FlareBolt.cs index 8f3e2f1489..ac5ee1226e 100644 --- a/Items/Weapons/Magic/FlareBolt.cs +++ b/Items/Weapons/Magic/FlareBolt.cs @@ -1,5 +1,7 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -10,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Magic public class FlareBolt : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire]; + } public override void SetDefaults() { Item.width = 34; diff --git a/Items/Weapons/Magic/ForbiddenSun.cs b/Items/Weapons/Magic/ForbiddenSun.cs index 7bdd5e22e0..4a8289e334 100644 --- a/Items/Weapons/Magic/ForbiddenSun.cs +++ b/Items/Weapons/Magic/ForbiddenSun.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.ModLoader; @@ -8,6 +10,10 @@ namespace CalamityMod.Items.Weapons.Magic public class ForbiddenSun : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; + } public override void SetDefaults() { Item.width = 28; diff --git a/Items/Weapons/Magic/FrostBolt.cs b/Items/Weapons/Magic/FrostBolt.cs index ee5d0a68df..4ae9ce6bff 100644 --- a/Items/Weapons/Magic/FrostBolt.cs +++ b/Items/Weapons/Magic/FrostBolt.cs @@ -1,5 +1,7 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -10,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Magic public class FrostBolt : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn]; + } public override void SetDefaults() { Item.width = 34; diff --git a/Items/Weapons/Magic/HadalUrn.cs b/Items/Weapons/Magic/HadalUrn.cs index 22c98c5b65..9f1215d8a1 100644 --- a/Items/Weapons/Magic/HadalUrn.cs +++ b/Items/Weapons/Magic/HadalUrn.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Abyss; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -14,6 +16,10 @@ namespace CalamityMod.Items.Weapons.Magic { public new string LocalizationCategory => "Items.Weapons.Magic"; public static readonly SoundStyle ShootSound = new("CalamityMod/Sounds/Item/HadalUrnOpen"); + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.Venom]; + } public override void SetDefaults() { Item.width = 58; diff --git a/Items/Weapons/Magic/HeliumFlash.cs b/Items/Weapons/Magic/HeliumFlash.cs index e141d3dc43..c9e4ba0293 100644 --- a/Items/Weapons/Magic/HeliumFlash.cs +++ b/Items/Weapons/Magic/HeliumFlash.cs @@ -1,4 +1,5 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; using CalamityMod.Systems.Collections; @@ -28,6 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic { base.SetStaticDefaults(); CalamityItemSets.ShowScalingCritDamageTooltip[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/HellwingStaff.cs b/Items/Weapons/Magic/HellwingStaff.cs index 964464d8d0..be7ec75b60 100644 --- a/Items/Weapons/Magic/HellwingStaff.cs +++ b/Items/Weapons/Magic/HellwingStaff.cs @@ -1,5 +1,7 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -14,6 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/Hematemesis.cs b/Items/Weapons/Magic/Hematemesis.cs index daf9021e23..3e2f40c47c 100644 --- a/Items/Weapons/Magic/Hematemesis.cs +++ b/Items/Weapons/Magic/Hematemesis.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Summon; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -14,6 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/HyperdeathRiftScepter.cs b/Items/Weapons/Magic/HyperdeathRiftScepter.cs index 2a2bd2e163..95ae5b436e 100644 --- a/Items/Weapons/Magic/HyperdeathRiftScepter.cs +++ b/Items/Weapons/Magic/HyperdeathRiftScepter.cs @@ -1,8 +1,10 @@ using System.Collections.Generic; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Weapons.Summon; using CalamityMod.NPCs.DevourerofGods; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -19,6 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() { diff --git a/Items/Weapons/Magic/IceBarrage.cs b/Items/Weapons/Magic/IceBarrage.cs index 258c342866..f92716a13e 100644 --- a/Items/Weapons/Magic/IceBarrage.cs +++ b/Items/Weapons/Magic/IceBarrage.cs @@ -1,7 +1,9 @@ -using CalamityMod.Items.Ammo; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Ammo; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -16,6 +18,10 @@ namespace CalamityMod.Items.Weapons.Magic { public new string LocalizationCategory => "Items.Weapons.Magic"; public static readonly SoundStyle CastSound = new("CalamityMod/Sounds/Item/IceBarrageCast"); + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frozen, BuffID.Frostburn2]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Magic/IcicleTrident.cs b/Items/Weapons/Magic/IcicleTrident.cs index 36fdb84c17..37165a47a6 100644 --- a/Items/Weapons/Magic/IcicleTrident.cs +++ b/Items/Weapons/Magic/IcicleTrident.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Magic; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -13,6 +15,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; } public override void SetDefaults() { diff --git a/Items/Weapons/Magic/InfernalRift.cs b/Items/Weapons/Magic/InfernalRift.cs index 773ea06d41..916328cff6 100644 --- a/Items/Weapons/Magic/InfernalRift.cs +++ b/Items/Weapons/Magic/InfernalRift.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -14,6 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/LashesofChaos.cs b/Items/Weapons/Magic/LashesofChaos.cs index 542b049cc2..1c05db456a 100644 --- a/Items/Weapons/Magic/LashesofChaos.cs +++ b/Items/Weapons/Magic/LashesofChaos.cs @@ -1,7 +1,9 @@ -using CalamityMod.Dusts; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Dusts; using CalamityMod.Items.Weapons.Summon; using CalamityMod.Particles; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -17,6 +19,10 @@ namespace CalamityMod.Items.Weapons.Magic public int FiringMode = 0; // 0 = hellfireballs, 1 = hellblasts public int ProjectilesFired = 0; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 28; diff --git a/Items/Weapons/Magic/Miasma.cs b/Items/Weapons/Magic/Miasma.cs index 9adc8327e4..f16e5a7b4c 100644 --- a/Items/Weapons/Magic/Miasma.cs +++ b/Items/Weapons/Magic/Miasma.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -14,6 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/Nucleosynthesis.cs b/Items/Weapons/Magic/Nucleosynthesis.cs index 9e1bfad48f..9ee5961e6a 100644 --- a/Items/Weapons/Magic/Nucleosynthesis.cs +++ b/Items/Weapons/Magic/Nucleosynthesis.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -16,6 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/PurgeGuzzler.cs b/Items/Weapons/Magic/PurgeGuzzler.cs index 6745b62828..9c249c2565 100644 --- a/Items/Weapons/Magic/PurgeGuzzler.cs +++ b/Items/Weapons/Magic/PurgeGuzzler.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Summon; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -13,6 +15,10 @@ namespace CalamityMod.Items.Weapons.Magic { public new string LocalizationCategory => "Items.Weapons.Magic"; private const float Spread = 0.025f; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 64; diff --git a/Items/Weapons/Magic/RougeSlash.cs b/Items/Weapons/Magic/RougeSlash.cs index a6d93c7a17..f8b2b7e012 100644 --- a/Items/Weapons/Magic/RougeSlash.cs +++ b/Items/Weapons/Magic/RougeSlash.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Melee; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Magic public class RougeSlash : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.mana = 30; diff --git a/Items/Weapons/Magic/SanguineFlare.cs b/Items/Weapons/Magic/SanguineFlare.cs index b2cb6a3820..f712d13968 100644 --- a/Items/Weapons/Magic/SanguineFlare.cs +++ b/Items/Weapons/Magic/SanguineFlare.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -15,6 +17,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/SeethingDischarge.cs b/Items/Weapons/Magic/SeethingDischarge.cs index 7ed607b5d1..3cfbf1f5f5 100644 --- a/Items/Weapons/Magic/SeethingDischarge.cs +++ b/Items/Weapons/Magic/SeethingDischarge.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Summon; using CalamityMod.NPCs.BrimstoneElemental; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -14,6 +16,10 @@ namespace CalamityMod.Items.Weapons.Magic public new string LocalizationCategory => "Items.Weapons.Magic"; public int DartTimer = 0; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 28; diff --git a/Items/Weapons/Magic/ShadecrystalBarrage.cs b/Items/Weapons/Magic/ShadecrystalBarrage.cs index 007414071b..ffcb99ec1f 100644 --- a/Items/Weapons/Magic/ShadecrystalBarrage.cs +++ b/Items/Weapons/Magic/ShadecrystalBarrage.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -14,6 +16,10 @@ namespace CalamityMod.Items.Weapons.Magic public new string LocalizationCategory => "Items.Weapons.Magic"; internal const float ShootSpeed = 2f; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Magic/ShaderainStaff.cs b/Items/Weapons/Magic/ShaderainStaff.cs index 883a3f8033..b831ec3578 100644 --- a/Items/Weapons/Magic/ShaderainStaff.cs +++ b/Items/Weapons/Magic/ShaderainStaff.cs @@ -1,5 +1,6 @@ -using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -30,8 +31,8 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } - public override void SetDefaults() { Item.width = Item.height = 42; diff --git a/Items/Weapons/Magic/SlitheringEels.cs b/Items/Weapons/Magic/SlitheringEels.cs index ac30f155d5..db54152152 100644 --- a/Items/Weapons/Magic/SlitheringEels.cs +++ b/Items/Weapons/Magic/SlitheringEels.cs @@ -1,5 +1,7 @@ using CalamityMod.Projectiles.Magic; using Microsoft.Xna.Framework; +using CalamityMod.Systems.Collections; +using CalamityMod.Buffs.StatDebuffs; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -10,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Magic public class SlitheringEels : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 34; diff --git a/Items/Weapons/Magic/SnowstormStaff.cs b/Items/Weapons/Magic/SnowstormStaff.cs index 62f3485b23..4bef92114c 100644 --- a/Items/Weapons/Magic/SnowstormStaff.cs +++ b/Items/Weapons/Magic/SnowstormStaff.cs @@ -1,5 +1,5 @@ -using CalamityMod.Items.Weapons.Rogue; -using CalamityMod.Projectiles.Magic; +using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.ModLoader; @@ -8,6 +8,10 @@ namespace CalamityMod.Items.Weapons.Magic public class SnowstormStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + } public override void SetDefaults() { Item.width = 66; diff --git a/Items/Weapons/Magic/SoulPiercer.cs b/Items/Weapons/Magic/SoulPiercer.cs index 93525a8476..df63864e59 100644 --- a/Items/Weapons/Magic/SoulPiercer.cs +++ b/Items/Weapons/Magic/SoulPiercer.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -16,6 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/SubsumingVortex.cs b/Items/Weapons/Magic/SubsumingVortex.cs index d01f95d050..c2d623e371 100644 --- a/Items/Weapons/Magic/SubsumingVortex.cs +++ b/Items/Weapons/Magic/SubsumingVortex.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -41,6 +43,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/Teslastaff.cs b/Items/Weapons/Magic/Teslastaff.cs index ac1a2b30c9..68a918686b 100644 --- a/Items/Weapons/Magic/Teslastaff.cs +++ b/Items/Weapons/Magic/Teslastaff.cs @@ -2,6 +2,7 @@ using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; using CalamityMod.Sounds; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -14,6 +15,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Electrified]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/TheCauldron.cs b/Items/Weapons/Magic/TheCauldron.cs index 7ba64395a2..cc53fb5d63 100644 --- a/Items/Weapons/Magic/TheCauldron.cs +++ b/Items/Weapons/Magic/TheCauldron.cs @@ -1,4 +1,5 @@ using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using ReLogic.Content; @@ -20,6 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic { Glow = ModContent.Request(Texture + "Glow"); } + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire]; } public override void SetDefaults() { diff --git a/Items/Weapons/Magic/ThePrince.cs b/Items/Weapons/Magic/ThePrince.cs index ce8e78ee62..497941912c 100644 --- a/Items/Weapons/Magic/ThePrince.cs +++ b/Items/Weapons/Magic/ThePrince.cs @@ -1,5 +1,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Rarities; using Microsoft.Xna.Framework; using Terraria; @@ -16,6 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/TheSwarmer.cs b/Items/Weapons/Magic/TheSwarmer.cs index b3329489f6..8bd2429eca 100644 --- a/Items/Weapons/Magic/TheSwarmer.cs +++ b/Items/Weapons/Magic/TheSwarmer.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Systems.Collections; +using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -9,6 +10,10 @@ namespace CalamityMod.Items.Weapons.Magic public class TheSwarmer : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Venom, BuffID.Poisoned]; + } public override void SetDefaults() { Item.width = 60; diff --git a/Items/Weapons/Magic/UndinesRetribution.cs b/Items/Weapons/Magic/UndinesRetribution.cs index 3b0c0a2a62..2213a85c36 100644 --- a/Items/Weapons/Magic/UndinesRetribution.cs +++ b/Items/Weapons/Magic/UndinesRetribution.cs @@ -1,7 +1,9 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Abyss; using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -16,6 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/VeeringWind.cs b/Items/Weapons/Magic/VeeringWind.cs index 63c8f0dcad..2e2ead9c56 100644 --- a/Items/Weapons/Magic/VeeringWind.cs +++ b/Items/Weapons/Magic/VeeringWind.cs @@ -1,4 +1,5 @@ using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -14,6 +15,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn, BuffID.Frozen]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/VenusianTrident.cs b/Items/Weapons/Magic/VenusianTrident.cs index 0c75f97dde..b87c86ae84 100644 --- a/Items/Weapons/Magic/VenusianTrident.cs +++ b/Items/Weapons/Magic/VenusianTrident.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -15,6 +17,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/Viscera.cs b/Items/Weapons/Magic/Viscera.cs index 82854d3c88..1f229feb01 100644 --- a/Items/Weapons/Magic/Viscera.cs +++ b/Items/Weapons/Magic/Viscera.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -16,6 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public const int BoomLifetime = 40; diff --git a/Items/Weapons/Magic/VitriolicViper.cs b/Items/Weapons/Magic/VitriolicViper.cs index 00845c8521..72460cdb93 100644 --- a/Items/Weapons/Magic/VitriolicViper.cs +++ b/Items/Weapons/Magic/VitriolicViper.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Summon; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Magic public class VitriolicViper : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 60; diff --git a/Items/Weapons/Magic/VividClarity.cs b/Items/Weapons/Magic/VividClarity.cs index f1d67cd0e7..142a0f0e20 100644 --- a/Items/Weapons/Magic/VividClarity.cs +++ b/Items/Weapons/Magic/VividClarity.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -21,6 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/VoidVortex.cs b/Items/Weapons/Magic/VoidVortex.cs index e929c61010..f0f0df31f9 100644 --- a/Items/Weapons/Magic/VoidVortex.cs +++ b/Items/Weapons/Magic/VoidVortex.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -17,6 +19,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/VoltaicClimax.cs b/Items/Weapons/Magic/VoltaicClimax.cs index 055cd4f965..ad873bcfdf 100644 --- a/Items/Weapons/Magic/VoltaicClimax.cs +++ b/Items/Weapons/Magic/VoltaicClimax.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -18,6 +19,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Electrified]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/Volterion.cs b/Items/Weapons/Magic/Volterion.cs index e212d83ebb..8ecc1dad85 100644 --- a/Items/Weapons/Magic/Volterion.cs +++ b/Items/Weapons/Magic/Volterion.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Weapons.Melee; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -13,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Magic public class Volterion : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Electrified]; + } public override void SetDefaults() { Item.width = 220; diff --git a/Items/Weapons/Magic/Waywasher.cs b/Items/Weapons/Magic/Waywasher.cs index 83ca88ed9d..25c63e470e 100644 --- a/Items/Weapons/Magic/Waywasher.cs +++ b/Items/Weapons/Magic/Waywasher.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Magic; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Magic; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -12,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Magic { public new string LocalizationCategory => "Items.Weapons.Magic"; public int shotCount = 0; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 30; diff --git a/Items/Weapons/Magic/WintersFury.cs b/Items/Weapons/Magic/WintersFury.cs index 6e35c1d79c..4afd9910d6 100644 --- a/Items/Weapons/Magic/WintersFury.cs +++ b/Items/Weapons/Magic/WintersFury.cs @@ -1,6 +1,7 @@ using System; using CalamityMod.Projectiles.Magic; using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -13,7 +14,10 @@ namespace CalamityMod.Items.Weapons.Magic public class WintersFury : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + } public override void SetDefaults() { Item.width = 36; diff --git a/Items/Weapons/Magic/YharimsCrystal.cs b/Items/Weapons/Magic/YharimsCrystal.cs index b49a1b5680..848642e13a 100644 --- a/Items/Weapons/Magic/YharimsCrystal.cs +++ b/Items/Weapons/Magic/YharimsCrystal.cs @@ -1,6 +1,8 @@ using System.Collections.Generic; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Magic public class YharimsCrystal : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 16; diff --git a/Items/Weapons/Melee/FlarefrostBlade.cs b/Items/Weapons/Melee/FlarefrostBlade.cs index 05ef94c203..0adee506f4 100644 --- a/Items/Weapons/Melee/FlarefrostBlade.cs +++ b/Items/Weapons/Melee/FlarefrostBlade.cs @@ -1,4 +1,5 @@ -using CalamityMod.Items.Materials; + +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; using Terraria; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index 2b786d4295..ac2759909b 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -5,16 +5,12 @@ AbyssalTome: { AbyssShocker: { DisplayName: Abyss Shocker - Tooltip: - ''' - Fires an erratic lightning bolt that arcs and bounces between enemies - Inflicts [cbuff:CalamityMod/StaticDischarge] - ''' + Tooltip: Fires an erratic lightning bolt that arcs and bounces between enemies } AcidGun: { DisplayName: Acid Gun - Tooltip: Releases three streams of [cbuff:CalamityMod/Irradiated] acid + Tooltip: Releases three streams of irradiated acid } AetherfluxCannon: { @@ -24,16 +20,12 @@ AetherfluxCannon: { AethersWhisper: { DisplayName: Aether's Whisper - Tooltip: - ''' - Fires void beams that inflict long-lasting [cbuff:CalamityMod/Shadowflame] and split on tile hits - Projectiles gain damage as they travel - ''' + Tooltip: Fires void beams that gain damage as they travel and split on tile hits } AlulaAustralis: { DisplayName: Alula Australis - Tooltip: Fires a beautiful aurora that spreads the [cbuff:CalamityMod/AstralInfectionDebuff] trailed by a star shower + Tooltip: Fires a beautiful aurora that spreads the [cbuff:CalamityMod/AstralInfectionDebuff] and is trailed by a star shower } AlphaDraconis: { @@ -57,7 +49,6 @@ AnahitasArpeggio: { Holding casts up to 6 treble clefs that orbit the player Releasing causes the treble clefs to converge at the cursor After converging, treble clefs seek your cursor - Treble clefs inflict [cbuff:Confused] on impact and apply [cbuff:Wet] ''' TooltipGFB: ''' @@ -92,14 +83,13 @@ Apotheosis: { Tooltip: ''' Unleashes interdimensional projection magic - Inflicts [cbuff:CalamityMod/WhisperingDeath] and [cbuff:CalamityMod/GodSlayerInferno] Eat worms ''' } AquamarineStaff: { DisplayName: Aquamarine Staff - Tooltip: Shoots two blue bolts that [cbuff:CalamityMod/RiptideDebuff] enemies + Tooltip: Shoots two blue bolts } ArchAmaryllis: { @@ -111,7 +101,7 @@ ArcticBearPaw: { DisplayName: Arctic Bear Paw Tooltip: ''' - Fires spiritual claws that ignore walls and inflict [cbuff:Frostburn2] + Fires spiritual claws that ignore walls 'The savage mauling that fits in your pocket' ''' } @@ -133,7 +123,7 @@ AstralachneaStaff: { AstralStaff: { DisplayName: Astral Staff - Tooltip: Summons a large crystal from the sky that has a large area of effect on impact and soread the [cbuff:CalamityMod/AstralInfectionDebuff] + Tooltip: Summons a large crystal from the sky that has a large area of effect on impact and spreads the [cbuff:CalamityMod/AstralInfectionDebuff] } Atlantis: { @@ -146,7 +136,6 @@ AuguroftheVoid: { Tooltip: ''' Casts a burst of elemental tentacles to spear your enemies - Tentacles inflict enemies with [cbuff:CalamityMod/ElementalMix] ''' } @@ -155,7 +144,6 @@ BelchingSaxophone: { Tooltip: ''' Fires an array of dirty reeds, music notes, and sulphuric bubbles - Inflicts [cbuff:CalamityMod/Irradiated] onto enemies Doot ''' } @@ -172,7 +160,7 @@ BlackAnurian: { BloodBath: { DisplayName: Blood Bath - Tooltip: Drenches your foes in blood that inflicts [cbuff:CalamityMod/BurningBlood] + Tooltip: Drenches your foes in blood } BrimroseStaff: { @@ -180,7 +168,6 @@ BrimroseStaff: { Tooltip: ''' Fires a spread of splitting brimstone beams - Inflicts [cbuff:CalamityMod/BrimstoneFlames] ''' } @@ -190,7 +177,7 @@ BurningSea: { ''' Conjures a massive fireball that hovers near you and incinerates foes with [cbuff:CalamityMod/BrimstoneFlames] Holding the fireball for too long causes it to burn out - This burns you with [cbuffplr:CalamityMod/BrimstoneFlames] and gives a long delay before another can be cast + This sets you alight with [cbuffplr:CalamityMod/BrimstoneFlames] and gives a long delay before another can be cast ''' } @@ -208,7 +195,7 @@ ChronomancersScythe: { ClothiersWrath: { DisplayName: Clothier's Wrath - Tooltip: Shoots 3 [cbuff:CalamityMod/Shadowflame] skulls + Tooltip: Shoots 3 shadowflame skulls } CoralSpout: { @@ -236,7 +223,6 @@ Cryophobia: { Tooltip: ''' Fires an icy wave that splits multiple times and explodes into shards - Inflicts [cbuff:Frostburn2] 'Chill' ''' } @@ -278,7 +264,6 @@ EidolicWail: { Tooltip: ''' Fires a string of bouncing sound waves that slow down on enemy hits - Sound waves crush enemies with [cbuff:CalamityMod/HadopelagicPressure] RIP headphone users ''' } @@ -315,7 +300,7 @@ EventHorizon: { EvergladeSpray: { DisplayName: Everglade Spray - Tooltip: Fires a stream of [cbuff:CursedInferno] and [cbuff:Ichor] + Tooltip: Fires a stream of burning green ichor } FaceMelter: { @@ -337,14 +322,14 @@ FlareBolt: { DisplayName: Flare Bolt Tooltip: ''' - Casts a ball of flame that inflicts with [cbuff:OnFire] + Casts a ball of flame Balls of flame collapse into a swirling backdraft which pulls in enemies ''' } ForbiddenSun: { DisplayName: Forbidden Sun - Tooltip: Casts a with [cbuff:OnFire3] orb that emits a gigantic explosion on hit + Tooltip: Casts a fire orb that emits a gigantic explosion on hit } FrigidflashBolt: { @@ -362,7 +347,7 @@ FrostBolt: { DisplayName: Frost Bolt Tooltip: ''' - Casts a ball of frost that bounces off tiles and inflicts with [cbuff:Frostburn] + Casts a ball of frost that bounces off tiles When hitting a tile, a small frost burst is produced Frost projectiles will fall to the ground after enough time has passed ''' @@ -420,7 +405,6 @@ HadalUrn: { Tooltip: ''' Fires a random assortment of ocean creatures - Inflicts [cbuff:CalamityMod/CrushDepth] and [cbuff:Venom] onto enemies 'There's no telling how long it was down there... or what lurks inside' ''' } @@ -429,14 +413,14 @@ HeliumFlash: { DisplayName: Helium Flash Tooltip: ''' - Launches volatile star cores which erupt into colossal fusion blasts and inflicts [cbuff:CalamityMod/Daybroken] + Launches volatile star cores which erupt into colossal fusion blasts 'The power of a galaxy, if only for mere moments' ''' } HellwingStaff: { DisplayName: Hellwing Staff - Tooltip: Casts flaming bats that light enemies [cbuff:OnFire] + Tooltip: Casts flaming bats } Hematemesis: { @@ -639,7 +623,7 @@ Photosynthesis: { PlagueStaff: { DisplayName: Plague Staff - Tooltip: Fires a tight spread of 4 plague fangs that inflict [cbuff:CalamityMod/Plague] + Tooltip: Fires a tight spread of 4 [cbuff:CalamityMod/Plague] fangs } PlasmaRifle: { @@ -732,7 +716,7 @@ RelicofRuin: { RougeSlash: { DisplayName: Rouge Slash - Tooltip: Fires a wave of 3 rouge air slashes that inflict [cbuff:CalamityMod/VermillionFlux] + Tooltip: Fires a wave of 3 rouge air slashes } SandstreamScepter: { @@ -845,11 +829,7 @@ SnowstormStaff: { SoulPiercer: { DisplayName: Soul Piercer - Tooltip: - ''' - Casts a powerful ray that summons extra rays on its first hit - Inflicts [cbuff:CalamityMod/GodSlayerInferno] - ''' + Tooltip: Casts a powerful ray that summons extra rays on its first hit } StaffofBlushie: { @@ -859,7 +839,7 @@ StaffofBlushie: { StarShower: { DisplayName: Star Shower - Tooltip: Casts a spread of astral stars from the sky that converge at the cursor and inflict [cbuff:CalamityMod/AstralInfectionDebuff] + Tooltip: Casts a spread of astral stars from the sky that converge at the cursor and spread the [cbuff:CalamityMod/AstralInfectionDebuff] } SubsumingVortex: { @@ -871,7 +851,6 @@ SubsumingVortex: { When enemies are near the vortex, it sends multiple fast-moving smaller vortices towards them Releasing fires the vortex towards the mouse if enough time has passed Damage scales based on how long the vortex was held out - Inflicts [cbuff:CalamityMod/MiracleBlight] ''' } @@ -888,7 +867,7 @@ TacticiansTrumpCard: { DisplayName: Tactician's Trump Card Tooltip: ''' - Fires a sword beam that inflicts [cbuff:Electrified] on hit + Fires an [cbuff:Electrified] sword beam 'Faint memories of a Princess from the future cross your mind...' ''' } @@ -1047,7 +1026,7 @@ VitriolicViper: { Tooltip: ''' Charges up and fires a slithering [cbuff:CalamityMod/Irradiated] beam - If fully charged, instead fires a huge spread of short range fangs which inflict [cbuff:CalamityMod/SulphuricPoisoning] + If fully charged, instead fires a huge spread of short range fangs ''' } @@ -1057,7 +1036,6 @@ VividClarity: { ''' Fires five randomized rays of exo-energy towards the cursor Enemy and tile hits either cause a big flash explosion, an additional laser from the sky, or split into energy orbs - Inflicts [cbuff:CalamityMod/MiracleBlight] 'Its majesty inspires a stroke of unparalleled genius' ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index 36dd974f51..0d40f12a99 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -533,7 +533,7 @@ FlarefrostBlade: { Tooltip: ''' Fires a homing flarefrost orb - Inflicts [cbuff:OnFire3] and [cbuff:Frostburn2] + Inflicts both [cbuff:OnFire3] and [cbuff:Frostburn2] ''' } From 770d827ea8ea5ff086de0813cdc7c10e365366c6 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Sun, 19 Apr 2026 15:07:05 -0700 Subject: [PATCH 12/26] i forgot the wand --- Items/Weapons/Magic/TheWand.cs | 3 +++ .../en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson | 10 ++-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Items/Weapons/Magic/TheWand.cs b/Items/Weapons/Magic/TheWand.cs index 66469c5d15..2d7c137bd9 100644 --- a/Items/Weapons/Magic/TheWand.cs +++ b/Items/Weapons/Magic/TheWand.cs @@ -1,7 +1,9 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -18,6 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index ac2759909b..c0f3fdf565 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -133,10 +133,7 @@ Atlantis: { AuguroftheVoid: { DisplayName: Augur of the Void - Tooltip: - ''' - Casts a burst of elemental tentacles to spear your enemies - ''' + Tooltip: Casts a burst of elemental tentacles to spear your enemies } BelchingSaxophone: { @@ -165,10 +162,7 @@ BloodBath: { BrimroseStaff: { DisplayName: Brimrose Staff - Tooltip: - ''' - Fires a spread of splitting brimstone beams - ''' + Tooltip: Fires a spread of splitting brimstone beams } BurningSea: { From 8cbd34a8d3b32eb00388ceb4c6301bde1899fd73 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Sun, 19 Apr 2026 16:22:53 -0700 Subject: [PATCH 13/26] Aeolian Earth --- Localization/en-US/Mods.CalamityMod.Buffs.hjson | 4 ++-- Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 96feca64d7..084a118efb 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -795,7 +795,7 @@ AeolianEarthBuff: { You are strengthened by primordial powers Damage reduction increased by {0}%, damage increased by {1}%, and massively buffed mana regen ''' - ItemTooltipPlayer: Increases damage, damage reduction, and mana regeneration + ItemTooltipPlayer: Increases your damage reduction by 8%, damage by 15% and massively buffs mana regen } Afflicted: { @@ -1001,7 +1001,7 @@ ReaverRage: { Rage of the earth Defense increased by {0} and damage increased by {1}% ''' - ItemTooltipPlayer: Increased defense and damage + ItemTooltipPlayer: Increases your defense by 10 and damage by 10% } SandsWindBuff: { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index c0f3fdf565..00a3c9144b 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -650,7 +650,6 @@ PrimordialAncient: { ''' Casts five primordial sand blasts that converge at your cursor after a moment and create a giant explosion Casting this spell at max mana while without mana sickness will cause it to give you and any player it hits the [cbuffplr:CalamityMod/AeolianEarthBuff] buff - [cbuffplr:CalamityMod/AeolianEarthBuff] increases your damage reduction by {0}%, damage by {1}%, and massively buffs mana regen ''' } @@ -660,7 +659,6 @@ PrimordialEarth: { ''' Casts two enchanted blasts of sand that converge with each other and explode Casting this spell at max mana while without mana sickness will cause it to give you and any player it hits the [cbuffplr:CalamityMod/SandsWindBuff] buff - [cbuffplr:CalamityMod/SandsWindBuff] increases your defense by {0}, damage by {1}%, and greatly buffs mana regen ''' } From 88439f1edb243d4c0e7440bd4a64cbb69c42ede1 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Sat, 16 May 2026 19:23:28 -0700 Subject: [PATCH 14/26] Summoner --- Items/Weapons/Magic/FlareBolt.cs | 1 - Items/Weapons/Melee/Orderbringer.cs | 2 +- Items/Weapons/Summon/AncientIceChunk.cs | 2 ++ Items/Weapons/Summon/BelladonnaSpiritStaff.cs | 6 +++++- Items/Weapons/Summon/CadaverousCarrion.cs | 8 +++++++- Items/Weapons/Summon/CalamarisLament.cs | 3 +++ Items/Weapons/Summon/CausticCroakerStaff.cs | 8 +++++++- Items/Weapons/Summon/CausticStaff.cs | 5 +++++ Items/Weapons/Summon/CinderBlossomStaff.cs | 5 +++++ Items/Weapons/Summon/CindersOfLament.cs | 5 ++++- Items/Weapons/Summon/CosmicViperEngine.cs | 8 +++++++- Items/Weapons/Summon/CryogenicStaff.cs | 5 +++++ Items/Weapons/Summon/DaedalusGolemStaff.cs | 6 +++++- Items/Weapons/Summon/DankStaff.cs | 9 +++++++-- Items/Weapons/Summon/DazzlingStabberStaff.cs | 9 +++++++-- Items/Weapons/Summon/DragonbloodDisgorger.cs | 8 +++++++- Items/Weapons/Summon/Endogenesis.cs | 10 ++++++++-- Items/Weapons/Summon/EntropysVigil.cs | 5 ++++- Items/Weapons/Summon/FlowersOfMortality.cs | 10 ++++++++-- Items/Weapons/Summon/ForgottenApexWand.cs | 8 +++++++- Items/Weapons/Summon/FrostBlossomStaff.cs | 5 +++++ Items/Weapons/Summon/FuelCellBundle.cs | 8 +++++++- Items/Weapons/Summon/GlacialEmbrace.cs | 5 +++++ Items/Weapons/Summon/KingofConstellationsTenryu.cs | 10 ++++++++-- Items/Weapons/Summon/LegionofCelestia.cs | 8 +++++++- Items/Weapons/Summon/Metastasis.cs | 5 ++++- Items/Weapons/Summon/MidnightSunBeacon.cs | 8 +++++++- Items/Weapons/Summon/MutatedTruffle.cs | 6 ++++-- Items/Weapons/Summon/ResurrectionButterfly.cs | 4 ++++ Items/Weapons/Summon/SeashineHilt.cs | 4 ++++ Items/Weapons/Summon/SlimePuppetStaff.cs | 5 +++++ Items/Weapons/Summon/SpikecragStaff.cs | 7 ++++++- Items/Weapons/Summon/StormjawStaff.cs | 8 +++++++- Items/Weapons/Summon/TacticalPlagueEngine.cs | 8 +++++++- Items/Weapons/Summon/TemporalUmbrella.cs | 7 ++++++- Items/Weapons/Summon/TundraFlameBlossomsStaff.cs | 6 ++++++ Items/Weapons/Summon/UniverseSplitter.cs | 2 ++ Items/Weapons/Summon/Vigilance.cs | 9 +++++++-- Items/Weapons/Summon/VoidEaterMarionette.cs | 11 +++++++---- Items/Weapons/Summon/YharonsKindleStaff.cs | 6 ++++-- .../Mods.CalamityMod.Items.Weapons.Ranged.hjson | 2 +- .../Mods.CalamityMod.Items.Weapons.Summon.hjson | 14 ++++++++------ Projectiles/Summon/MutatedTruffleMinion.cs | 3 ++- Projectiles/Summon/MutatedTruffleToothballSpike.cs | 5 ++++- Projectiles/Summon/MutatedTruffleVortex.cs | 4 +++- 45 files changed, 234 insertions(+), 49 deletions(-) diff --git a/Items/Weapons/Magic/FlareBolt.cs b/Items/Weapons/Magic/FlareBolt.cs index ac5ee1226e..c5e2e84bc7 100644 --- a/Items/Weapons/Magic/FlareBolt.cs +++ b/Items/Weapons/Magic/FlareBolt.cs @@ -1,5 +1,4 @@ using System; -using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Magic; using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; diff --git a/Items/Weapons/Melee/Orderbringer.cs b/Items/Weapons/Melee/Orderbringer.cs index ea22727440..b184ca0daf 100644 --- a/Items/Weapons/Melee/Orderbringer.cs +++ b/Items/Weapons/Melee/Orderbringer.cs @@ -33,11 +33,11 @@ namespace CalamityMod.Items.Weapons.Melee public bool spawnProj = true; public bool spawnTrueMeleeProj = true; public bool playSound = true; + public float scaling = 1; public override void SetStaticDefaults() { CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } - public float scaling = 1; public override void SetDefaults() { Item.width = Item.height = 112; diff --git a/Items/Weapons/Summon/AncientIceChunk.cs b/Items/Weapons/Summon/AncientIceChunk.cs index 5cf2d78f05..bbad3587dc 100644 --- a/Items/Weapons/Summon/AncientIceChunk.cs +++ b/Items/Weapons/Summon/AncientIceChunk.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -28,6 +29,7 @@ namespace CalamityMod.Items.Weapons.Summon { Main.RegisterItemAnimation(Type, new DrawAnimationVertical(6, 6)); ItemID.Sets.AnimatesAsSoul[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; } public override void SetDefaults() diff --git a/Items/Weapons/Summon/BelladonnaSpiritStaff.cs b/Items/Weapons/Summon/BelladonnaSpiritStaff.cs index 36d0e892f3..6e1f925e98 100644 --- a/Items/Weapons/Summon/BelladonnaSpiritStaff.cs +++ b/Items/Weapons/Summon/BelladonnaSpiritStaff.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -24,7 +25,10 @@ namespace CalamityMod.Items.Weapons.Summon public const float PetalGravityStrenght = 0.2f; #endregion - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Poisoned]; + } public override void SetDefaults() { Item.width = 40; diff --git a/Items/Weapons/Summon/CadaverousCarrion.cs b/Items/Weapons/Summon/CadaverousCarrion.cs index 03a7bc9f9d..9467e9c66d 100644 --- a/Items/Weapons/Summon/CadaverousCarrion.cs +++ b/Items/Weapons/Summon/CadaverousCarrion.cs @@ -1,5 +1,7 @@ -using CalamityMod.Projectiles.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Summon public class CadaverousCarrion : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 54; diff --git a/Items/Weapons/Summon/CalamarisLament.cs b/Items/Weapons/Summon/CalamarisLament.cs index f4b263ecf6..a9cd33ee10 100644 --- a/Items/Weapons/Summon/CalamarisLament.cs +++ b/Items/Weapons/Summon/CalamarisLament.cs @@ -1,7 +1,9 @@ using System.Collections.Generic; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -35,6 +37,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetStaticDefaults() { Item.staff[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Summon/CausticCroakerStaff.cs b/Items/Weapons/Summon/CausticCroakerStaff.cs index a55ae33a05..ba992e96aa 100644 --- a/Items/Weapons/Summon/CausticCroakerStaff.cs +++ b/Items/Weapons/Summon/CausticCroakerStaff.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Summon; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -10,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Summon public class CausticCroakerStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 36; diff --git a/Items/Weapons/Summon/CausticStaff.cs b/Items/Weapons/Summon/CausticStaff.cs index a37f4cebd2..caf15d1a1d 100644 --- a/Items/Weapons/Summon/CausticStaff.cs +++ b/Items/Weapons/Summon/CausticStaff.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Summon public class CausticStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3, BuffID.Venom, BuffID.Ichor, BuffID.CursedInferno]; + } public override void SetDefaults() { Item.width = 26; diff --git a/Items/Weapons/Summon/CinderBlossomStaff.cs b/Items/Weapons/Summon/CinderBlossomStaff.cs index 4fdd3eb232..9d02222fcc 100644 --- a/Items/Weapons/Summon/CinderBlossomStaff.cs +++ b/Items/Weapons/Summon/CinderBlossomStaff.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Summon public class CinderBlossomStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire]; + } public override void SetDefaults() { Item.width = 50; diff --git a/Items/Weapons/Summon/CindersOfLament.cs b/Items/Weapons/Summon/CindersOfLament.cs index ebaba97f0c..2fa62ea6f8 100644 --- a/Items/Weapons/Summon/CindersOfLament.cs +++ b/Items/Weapons/Summon/CindersOfLament.cs @@ -1,5 +1,7 @@ -using CalamityMod.Projectiles.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -15,6 +17,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetStaticDefaults() { ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType(); + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Summon/CosmicViperEngine.cs b/Items/Weapons/Summon/CosmicViperEngine.cs index 63c5df1b8e..ff4ee09fb9 100644 --- a/Items/Weapons/Summon/CosmicViperEngine.cs +++ b/Items/Weapons/Summon/CosmicViperEngine.cs @@ -1,7 +1,9 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -14,6 +16,10 @@ namespace CalamityMod.Items.Weapons.Summon public class CosmicViperEngine : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 46; diff --git a/Items/Weapons/Summon/CryogenicStaff.cs b/Items/Weapons/Summon/CryogenicStaff.cs index 9f7e63c30d..ca9a7cf2ec 100644 --- a/Items/Weapons/Summon/CryogenicStaff.cs +++ b/Items/Weapons/Summon/CryogenicStaff.cs @@ -1,4 +1,5 @@ using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -10,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Summon public class CryogenicStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + } public override void SetDefaults() { Item.width = 82; diff --git a/Items/Weapons/Summon/DaedalusGolemStaff.cs b/Items/Weapons/Summon/DaedalusGolemStaff.cs index 7204fd2c03..a85ea7dbc0 100644 --- a/Items/Weapons/Summon/DaedalusGolemStaff.cs +++ b/Items/Weapons/Summon/DaedalusGolemStaff.cs @@ -1,6 +1,7 @@ using CalamityMod.Buffs.Summon; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,7 +13,10 @@ namespace CalamityMod.Items.Weapons.Summon public class DaedalusGolemStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + } public override void SetDefaults() { Item.width = Item.height = 32; diff --git a/Items/Weapons/Summon/DankStaff.cs b/Items/Weapons/Summon/DankStaff.cs index 8629b2ab5b..744d8c80d3 100644 --- a/Items/Weapons/Summon/DankStaff.cs +++ b/Items/Weapons/Summon/DankStaff.cs @@ -1,6 +1,7 @@ -using CalamityMod.Buffs.Summon; -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Summon public class DankStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 58; diff --git a/Items/Weapons/Summon/DazzlingStabberStaff.cs b/Items/Weapons/Summon/DazzlingStabberStaff.cs index 4ea967a21e..6349c7df8d 100644 --- a/Items/Weapons/Summon/DazzlingStabberStaff.cs +++ b/Items/Weapons/Summon/DazzlingStabberStaff.cs @@ -1,7 +1,8 @@ -using CalamityMod.Buffs.Summon; -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -14,6 +15,10 @@ namespace CalamityMod.Items.Weapons.Summon public class DazzlingStabberStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 56; diff --git a/Items/Weapons/Summon/DragonbloodDisgorger.cs b/Items/Weapons/Summon/DragonbloodDisgorger.cs index c286cda0f7..53a032d191 100644 --- a/Items/Weapons/Summon/DragonbloodDisgorger.cs +++ b/Items/Weapons/Summon/DragonbloodDisgorger.cs @@ -1,8 +1,10 @@ using CalamityMod.Buffs.Summon; using CalamityMod.Items.Materials; +using CalamityMod.Systems.Collections; using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -14,7 +16,11 @@ namespace CalamityMod.Items.Weapons.Summon { public new string LocalizationCategory => "Items.Weapons.Summon"; - public override void SetStaticDefaults() => ItemID.Sets.StaffMinionSlotsRequired[Type] = 6f; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType()]; + ItemID.Sets.StaffMinionSlotsRequired[Type] = 6f; + } public override void SetDefaults() { diff --git a/Items/Weapons/Summon/Endogenesis.cs b/Items/Weapons/Summon/Endogenesis.cs index 1e6da182f1..ef31f7934b 100644 --- a/Items/Weapons/Summon/Endogenesis.cs +++ b/Items/Weapons/Summon/Endogenesis.cs @@ -1,4 +1,5 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; @@ -6,6 +7,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.ModLoader; @@ -18,7 +20,11 @@ namespace CalamityMod.Items.Weapons.Summon public static int AttackMode = 0; - public override void SetStaticDefaults() => ItemID.Sets.StaffMinionSlotsRequired[Type] = 10f; + public override void SetStaticDefaults() + { + ItemID.Sets.StaffMinionSlotsRequired[Type] = 10f; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.Frozen]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Summon/EntropysVigil.cs b/Items/Weapons/Summon/EntropysVigil.cs index 1bbb84a7fc..3708030c8d 100644 --- a/Items/Weapons/Summon/EntropysVigil.cs +++ b/Items/Weapons/Summon/EntropysVigil.cs @@ -1,6 +1,8 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -18,6 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon { Item.staff[Type] = true; ItemID.Sets.StaffMinionSlotsRequired[Type] = 2f; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Summon/FlowersOfMortality.cs b/Items/Weapons/Summon/FlowersOfMortality.cs index a1fcef6f85..82327f01db 100644 --- a/Items/Weapons/Summon/FlowersOfMortality.cs +++ b/Items/Weapons/Summon/FlowersOfMortality.cs @@ -1,6 +1,8 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -13,7 +15,11 @@ namespace CalamityMod.Items.Weapons.Summon { public new string LocalizationCategory => "Items.Weapons.Summon"; - public override void SetStaticDefaults() => ItemID.Sets.StaffMinionSlotsRequired[Type] = 3f; + public override void SetStaticDefaults() + { + ItemID.Sets.StaffMinionSlotsRequired[Type] = 3f; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Summon/ForgottenApexWand.cs b/Items/Weapons/Summon/ForgottenApexWand.cs index 7165e12837..62ba2c91d8 100644 --- a/Items/Weapons/Summon/ForgottenApexWand.cs +++ b/Items/Weapons/Summon/ForgottenApexWand.cs @@ -1,5 +1,7 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Summon public class ForgottenApexWand : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 44; diff --git a/Items/Weapons/Summon/FrostBlossomStaff.cs b/Items/Weapons/Summon/FrostBlossomStaff.cs index 6c3af92baa..91a1ff43bd 100644 --- a/Items/Weapons/Summon/FrostBlossomStaff.cs +++ b/Items/Weapons/Summon/FrostBlossomStaff.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Summon public class FrostBlossomStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn]; + } public override void SetDefaults() { Item.width = 34; diff --git a/Items/Weapons/Summon/FuelCellBundle.cs b/Items/Weapons/Summon/FuelCellBundle.cs index 5c3e05a492..5fd5e4f94c 100644 --- a/Items/Weapons/Summon/FuelCellBundle.cs +++ b/Items/Weapons/Summon/FuelCellBundle.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -9,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Summon public class FuelCellBundle : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 32; diff --git a/Items/Weapons/Summon/GlacialEmbrace.cs b/Items/Weapons/Summon/GlacialEmbrace.cs index 0c886411d4..4bb0d8a1f3 100644 --- a/Items/Weapons/Summon/GlacialEmbrace.cs +++ b/Items/Weapons/Summon/GlacialEmbrace.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Summon public class GlacialEmbrace : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + } public override void SetDefaults() { Item.width = 52; diff --git a/Items/Weapons/Summon/KingofConstellationsTenryu.cs b/Items/Weapons/Summon/KingofConstellationsTenryu.cs index 1747ceda75..2e1c97e249 100644 --- a/Items/Weapons/Summon/KingofConstellationsTenryu.cs +++ b/Items/Weapons/Summon/KingofConstellationsTenryu.cs @@ -1,8 +1,10 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Boss; using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -15,7 +17,11 @@ namespace CalamityMod.Items.Weapons.Summon { public new string LocalizationCategory => "Items.Weapons.Summon"; - public override void SetStaticDefaults() => ItemID.Sets.StaffMinionSlotsRequired[Type] = 4f; + public override void SetStaticDefaults() + { + ItemID.Sets.StaffMinionSlotsRequired[Type] = 4f; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.Frostburn2]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Summon/LegionofCelestia.cs b/Items/Weapons/Summon/LegionofCelestia.cs index 2268696ea2..761c97911c 100644 --- a/Items/Weapons/Summon/LegionofCelestia.cs +++ b/Items/Weapons/Summon/LegionofCelestia.cs @@ -1,4 +1,5 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; using Microsoft.Xna.Framework; @@ -6,6 +7,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; using Terraria.ID; +using CalamityMod.Systems.Collections; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Summon @@ -14,6 +16,10 @@ namespace CalamityMod.Items.Weapons.Summon public class LegionofCelestia : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 100; diff --git a/Items/Weapons/Summon/Metastasis.cs b/Items/Weapons/Summon/Metastasis.cs index c489968bf5..cd30cf1de9 100644 --- a/Items/Weapons/Summon/Metastasis.cs +++ b/Items/Weapons/Summon/Metastasis.cs @@ -1,6 +1,8 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -17,6 +19,7 @@ namespace CalamityMod.Items.Weapons.Summon { ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType(); ItemID.Sets.StaffMinionSlotsRequired[Type] = 4f; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Summon/MidnightSunBeacon.cs b/Items/Weapons/Summon/MidnightSunBeacon.cs index 90479063db..70c5412cfc 100644 --- a/Items/Weapons/Summon/MidnightSunBeacon.cs +++ b/Items/Weapons/Summon/MidnightSunBeacon.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -14,6 +16,10 @@ namespace CalamityMod.Items.Weapons.Summon { public new string LocalizationCategory => "Items.Weapons.Summon"; public const float MachineGunRate = 18f; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Summon/MutatedTruffle.cs b/Items/Weapons/Summon/MutatedTruffle.cs index 31c577e525..bc9a605608 100644 --- a/Items/Weapons/Summon/MutatedTruffle.cs +++ b/Items/Weapons/Summon/MutatedTruffle.cs @@ -1,5 +1,6 @@ -using CalamityMod.Buffs.Summon; -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; +using CalamityMod.Systems.Collections; using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; using Microsoft.Xna.Framework; @@ -34,6 +35,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetStaticDefaults() { ItemID.Sets.StaffMinionSlotsRequired[Type] = 3f; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Summon/ResurrectionButterfly.cs b/Items/Weapons/Summon/ResurrectionButterfly.cs index 579885a228..1e684ca31e 100644 --- a/Items/Weapons/Summon/ResurrectionButterfly.cs +++ b/Items/Weapons/Summon/ResurrectionButterfly.cs @@ -12,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Summon public class ResurrectionButterfly : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + ItemID.Sets.StaffMinionSlotsRequired[Type] = 2f; + } public override void SetDefaults() { Item.width = 46; diff --git a/Items/Weapons/Summon/SeashineHilt.cs b/Items/Weapons/Summon/SeashineHilt.cs index 312100f28f..df61926fe6 100644 --- a/Items/Weapons/Summon/SeashineHilt.cs +++ b/Items/Weapons/Summon/SeashineHilt.cs @@ -1,10 +1,12 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.Summon; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.SunkenSea; using CalamityMod.Particles; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -21,6 +23,8 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetStaticDefaults() { ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + ItemID.Sets.StaffMinionSlotsRequired[Type] = 0.5f; } public override void SetDefaults() { diff --git a/Items/Weapons/Summon/SlimePuppetStaff.cs b/Items/Weapons/Summon/SlimePuppetStaff.cs index 98dd09eb39..571993ea24 100644 --- a/Items/Weapons/Summon/SlimePuppetStaff.cs +++ b/Items/Weapons/Summon/SlimePuppetStaff.cs @@ -5,6 +5,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; using Terraria.ID; +using CalamityMod.Systems.Collections; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Summon @@ -12,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Summon public class SlimePuppetStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Slimed]; + } public override void SetDefaults() { Item.width = 32; diff --git a/Items/Weapons/Summon/SpikecragStaff.cs b/Items/Weapons/Summon/SpikecragStaff.cs index 2c927aab9a..9a82b885c4 100644 --- a/Items/Weapons/Summon/SpikecragStaff.cs +++ b/Items/Weapons/Summon/SpikecragStaff.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Systems.Collections; using CalamityMod.Projectiles.Summon; using Microsoft.Xna.Framework; using Terraria; @@ -12,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Summon public class SpikecragStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 50; diff --git a/Items/Weapons/Summon/StormjawStaff.cs b/Items/Weapons/Summon/StormjawStaff.cs index 118ad7d47d..84b7bd48d3 100644 --- a/Items/Weapons/Summon/StormjawStaff.cs +++ b/Items/Weapons/Summon/StormjawStaff.cs @@ -1,6 +1,8 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; using CalamityMod.NPCs.NormalNPCs; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Summon public class StormjawStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 32; diff --git a/Items/Weapons/Summon/TacticalPlagueEngine.cs b/Items/Weapons/Summon/TacticalPlagueEngine.cs index 06b5521bd9..2422b1f901 100644 --- a/Items/Weapons/Summon/TacticalPlagueEngine.cs +++ b/Items/Weapons/Summon/TacticalPlagueEngine.cs @@ -1,5 +1,7 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Summon { public new string LocalizationCategory => "Items.Weapons.Summon"; public const int BulletShootRate = 125; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Summon/TemporalUmbrella.cs b/Items/Weapons/Summon/TemporalUmbrella.cs index 30044336d3..60ffc3da53 100644 --- a/Items/Weapons/Summon/TemporalUmbrella.cs +++ b/Items/Weapons/Summon/TemporalUmbrella.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon.Umbrella; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -16,7 +17,11 @@ namespace CalamityMod.Items.Weapons.Summon { public new string LocalizationCategory => "Items.Weapons.Summon"; - public override void SetStaticDefaults() => ItemID.Sets.StaffMinionSlotsRequired[Type] = 5f; + public override void SetStaticDefaults() + { + ItemID.Sets.StaffMinionSlotsRequired[Type] = 5f; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.BetsysCurse, BuffID.Ichor]; + } public override void SetDefaults() { diff --git a/Items/Weapons/Summon/TundraFlameBlossomsStaff.cs b/Items/Weapons/Summon/TundraFlameBlossomsStaff.cs index 5725ba1b3d..228f493212 100644 --- a/Items/Weapons/Summon/TundraFlameBlossomsStaff.cs +++ b/Items/Weapons/Summon/TundraFlameBlossomsStaff.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +12,11 @@ namespace CalamityMod.Items.Weapons.Summon public class TundraFlameBlossomsStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3, BuffID.Frostburn2]; + ItemID.Sets.StaffMinionSlotsRequired[Type] = 3f; + } public override void SetDefaults() { Item.width = 50; diff --git a/Items/Weapons/Summon/UniverseSplitter.cs b/Items/Weapons/Summon/UniverseSplitter.cs index 6eb2272ea5..6c0898a08f 100644 --- a/Items/Weapons/Summon/UniverseSplitter.cs +++ b/Items/Weapons/Summon/UniverseSplitter.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Pets; using CalamityMod.Items.SummonItems; using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -20,6 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon { Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 14)); ItemID.Sets.AnimatesAsSoul[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Electrified]; } public override void SetDefaults() diff --git a/Items/Weapons/Summon/Vigilance.cs b/Items/Weapons/Summon/Vigilance.cs index b49cbc32e8..d362494342 100644 --- a/Items/Weapons/Summon/Vigilance.cs +++ b/Items/Weapons/Summon/Vigilance.cs @@ -1,7 +1,8 @@ -using CalamityMod.Buffs.Summon; -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -13,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Summon public class Vigilance : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = Item.height = 32; diff --git a/Items/Weapons/Summon/VoidEaterMarionette.cs b/Items/Weapons/Summon/VoidEaterMarionette.cs index cbcd6952e3..f74c703f3c 100644 --- a/Items/Weapons/Summon/VoidEaterMarionette.cs +++ b/Items/Weapons/Summon/VoidEaterMarionette.cs @@ -1,10 +1,9 @@ -using System.Collections.Generic; -using System.Linq; +using System.Linq; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.Summon; -using CalamityMod.Items.Weapons.Rogue; -using CalamityMod.NPCs.DevourerofGods; using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -19,6 +18,10 @@ namespace CalamityMod.Items.Weapons.Summon public new string LocalizationCategory => "Items.Weapons.Summon"; public bool FocusFetch = false; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 68; diff --git a/Items/Weapons/Summon/YharonsKindleStaff.cs b/Items/Weapons/Summon/YharonsKindleStaff.cs index 33c5fc3603..97626b3618 100644 --- a/Items/Weapons/Summon/YharonsKindleStaff.cs +++ b/Items/Weapons/Summon/YharonsKindleStaff.cs @@ -1,8 +1,9 @@ -using CalamityMod.Buffs.Summon; -using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; using CalamityMod.Sounds; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -20,6 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetStaticDefaults() { ItemID.Sets.StaffMinionSlotsRequired[Type] = 5f; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index c6f86040ae..8c7daab7f7 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -647,7 +647,7 @@ Leviatitan: { Tooltip: ''' Fires high velocity aqua blasts - Releases homing aberrations that shred enemy defense every six shots + Releases homing aberrations that shred enemy defense every six shots to vomit a meteor that explodes on hit 'The L in LMG stands for Leviathan' ''' diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index a3f4cfa7b6..69436949e8 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -2,7 +2,7 @@ AbandonedSlimeStaff: { DisplayName: Abandoned Slime Staff Tooltip: ''' - Summons an astral slime that inflicts [cbuff:CalamityMod/AstralInfectionDebuff] + Summons an astral slime that spreads the [cbuff:CalamityMod/AstralInfectionDebuff] Consumes all of the remaining minion slots on use Must be used from the hotbar Increased power and size based on the number of minion slots used @@ -72,7 +72,7 @@ AtlasMunitionsBeacon: { BelladonnaSpiritStaff: { DisplayName: Belladonna Spirit Staff - Tooltip: Summons a cute forest spirit that flings magical [cbuff:Poisoned] petals + Tooltip: Summons a cute forest spirit that flings magical petals } BlackHawkRemote: { @@ -90,7 +90,7 @@ BorealisBomber: { Tooltip: ''' Summons aureus bombers to chase down your enemies - Aureus bombers explode violently on enemy impact, inflicting [cbuff:CalamityMod/AstralInfectionDebuff] + Aureus bombers explode violently on enemy impact, spreading the [cbuff:CalamityMod/AstralInfectionDebuff] Does not consume minion slots ''' } @@ -204,7 +204,8 @@ CosmicImmaterializer: { Tooltip: ''' Summons a cosmic energy spiral to fight for you - The orb will fire swarms of homing energy bolts that cause [cbuff:CalamityMod/MiracleBlight] + The spiral will fire swarms of homing energy bolts when enemies are detected by it + Struck enemies are cleasned by [cbuff:CalamityMod/MiracleBlight] There can only be one energy spiral ''' } @@ -388,7 +389,7 @@ FleshOfInfidelity: { FlowersOfMortality: { DisplayName: Flowers of Mortality - Tooltip: Summons five rainbow flowers over your head that inflict [cbuff:CalamityMod/ElementalMix] + Tooltip: Summons five rainbow flowers over your head } ForgottenApexWand: { @@ -478,6 +479,7 @@ HivePod: { ''' {$CommonItemTooltip.Sentry} Summons an astraglomerate to spawn glomerings at your enemies + Glomerings spread the [cbuff:CalamityMod/AstralInfectionDebuff] on impact ''' } @@ -748,7 +750,7 @@ StaffOfNecrosteocytes: { StarspawnHelixStaff: { DisplayName: Starspawn Helix Staff - Tooltip: Summons astral probes that inflict [cbuff:CalamityMod/AstralInfectionDebuff] + Tooltip: Summons astral probes that spread the [cbuff:CalamityMod/AstralInfectionDebuff] } StellarTorusStaff: { diff --git a/Projectiles/Summon/MutatedTruffleMinion.cs b/Projectiles/Summon/MutatedTruffleMinion.cs index 5e97d9c72c..a91eee29b6 100644 --- a/Projectiles/Summon/MutatedTruffleMinion.cs +++ b/Projectiles/Summon/MutatedTruffleMinion.cs @@ -1,4 +1,5 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.Summon; using CalamityMod.Items.Weapons.Summon; using CalamityMod.Projectiles.BaseProjectiles; @@ -246,7 +247,7 @@ namespace CalamityMod.Projectiles.Summon private void SyncVariables() => Projectile.ForceNetUpdate(false); #endregion - + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 180); public override bool MinionContactDamage() => State == AIState.Dashing; // The minion while dashing does 1.25x more damge. diff --git a/Projectiles/Summon/MutatedTruffleToothballSpike.cs b/Projectiles/Summon/MutatedTruffleToothballSpike.cs index 46b1ae0f5b..1a5283c6ed 100644 --- a/Projectiles/Summon/MutatedTruffleToothballSpike.cs +++ b/Projectiles/Summon/MutatedTruffleToothballSpike.cs @@ -1,4 +1,5 @@ -using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Summon; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -50,6 +51,8 @@ namespace CalamityMod.Projectiles.Summon } } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 180); + public override bool? CanDamage() => (TimerForHitbox >= TimeForHitbox && Projectile.getRect().Intersects(TargetShot.getRect())) ? null : false; } } diff --git a/Projectiles/Summon/MutatedTruffleVortex.cs b/Projectiles/Summon/MutatedTruffleVortex.cs index 32fcdfe886..2760237f47 100644 --- a/Projectiles/Summon/MutatedTruffleVortex.cs +++ b/Projectiles/Summon/MutatedTruffleVortex.cs @@ -1,4 +1,5 @@ -using CalamityMod.Dusts; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Dusts; using CalamityMod.Items.Weapons.Summon; using CalamityMod.Particles; using Microsoft.Xna.Framework; @@ -76,6 +77,7 @@ namespace CalamityMod.Projectiles.Summon else return false; } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 180); public override void OnKill(int timeLeft) { From 9acdd341682911764ea73bb8f612ee55af38c942 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Thu, 4 Jun 2026 16:30:40 -0700 Subject: [PATCH 15/26] fuck this class (rogue) --- Items/Weapons/Ranged/Megalodon.cs | 6 +- Items/Weapons/Ranged/Seadragon.cs | 6 +- Items/Weapons/Ranged/Voidragon.cs | 5 -- Items/Weapons/Rogue/Apoctolith.cs | 9 ++- Items/Weapons/Rogue/BlastBarrel.cs | 5 ++ Items/Weapons/Rogue/BloodsoakedCrasher.cs | 8 ++- Items/Weapons/Rogue/Brimblade.cs | 8 ++- Items/Weapons/Rogue/CorpusAvertor.cs | 7 +- Items/Weapons/Rogue/CosmicKunai.cs | 8 ++- Items/Weapons/Rogue/CraniumSmasher.cs | 7 +- Items/Weapons/Rogue/CrushsawCrasher.cs | 6 +- Items/Weapons/Rogue/CrystalPiercer.cs | 5 ++ Items/Weapons/Rogue/DeepSeaDumbbell.cs | 9 ++- Items/Weapons/Rogue/DeepWounder.cs | 8 ++- Items/Weapons/Rogue/DimensionTearingDisk.cs | 9 ++- Items/Weapons/Rogue/DukesDecapitator.cs | 6 ++ Items/Weapons/Rogue/ExecutionersBlade.cs | 8 ++- Items/Weapons/Rogue/FrostcrushValari.cs | 6 +- Items/Weapons/Rogue/FrostyFlare.cs | 5 ++ Items/Weapons/Rogue/GacruxianMollusk.cs | 9 ++- Items/Weapons/Rogue/GodsParanoia.cs | 9 ++- Items/Weapons/Rogue/GraveGrimreaver.cs | 5 ++ Items/Weapons/Rogue/Hypothermia.cs | 9 ++- Items/Weapons/Rogue/IceStar.cs | 5 ++ Items/Weapons/Rogue/Icebreaker.cs | 8 ++- Items/Weapons/Rogue/InfernalKris.cs | 5 ++ Items/Weapons/Rogue/JawsOfOblivion.cs | 8 ++- Items/Weapons/Rogue/KelvinCatalyst.cs | 5 ++ Items/Weapons/Rogue/LeviathanTeeth.cs | 8 ++- Items/Weapons/Rogue/LunarKunai.cs | 8 ++- Items/Weapons/Rogue/Malachite.cs | 5 +- Items/Weapons/Rogue/MangroveChakram.cs | 5 ++ Items/Weapons/Rogue/MeteorFist.cs | 5 ++ Items/Weapons/Rogue/MoltenAmputator.cs | 9 ++- Items/Weapons/Rogue/Penumbra.cs | 8 ++- Items/Weapons/Rogue/Prismalline.cs | 8 ++- Items/Weapons/Rogue/ProfanedPartisan.cs | 8 ++- Items/Weapons/Rogue/ReboundingRainbow.cs | 7 +- Items/Weapons/Rogue/RotBall.cs | 7 +- Items/Weapons/Rogue/ShatteredDawn.cs | 8 ++- Items/Weapons/Rogue/SkyfinBombers.cs | 8 ++- Items/Weapons/Rogue/SludgeSplotch.cs | 5 ++ Items/Weapons/Rogue/SpearofPaleolith.cs | 8 ++- Items/Weapons/Rogue/SporeKnife.cs | 5 ++ Items/Weapons/Rogue/StormfrontRazor.cs | 5 +- Items/Weapons/Rogue/SubductionSlicer.cs | 8 ++- Items/Weapons/Rogue/TheFinalDawn.cs | 8 ++- Items/Weapons/Rogue/TheOldReaper.cs | 8 ++- Items/Weapons/Rogue/ToothBall.cs | 7 +- Items/Weapons/Rogue/TotalityBreakers.cs | 4 ++ Items/Weapons/Rogue/ToxicantTwister.cs | 8 ++- Items/Weapons/Rogue/TwistingThunder.cs | 5 ++ Items/Weapons/Rogue/UrchinStinger.cs | 8 ++- Items/Weapons/Rogue/UtensilPoker.cs | 8 ++- Items/Weapons/Rogue/Valediction.cs | 7 +- ...Mods.CalamityMod.Items.Weapons.Rogue.hjson | 68 +++++++++---------- Systems/Collections/CalamityItemSets.cs | 5 -- 57 files changed, 357 insertions(+), 98 deletions(-) diff --git a/Items/Weapons/Ranged/Megalodon.cs b/Items/Weapons/Ranged/Megalodon.cs index 68425305fb..e43b736e27 100644 --- a/Items/Weapons/Ranged/Megalodon.cs +++ b/Items/Weapons/Ranged/Megalodon.cs @@ -16,10 +16,12 @@ namespace CalamityMod.Items.Weapons.Ranged public class Megalodon : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; - private bool fireWater = false; + public int sharkGunDamageScaling = 0; + public static int AmmoSavedPercent = 50; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Ranged/Seadragon.cs b/Items/Weapons/Ranged/Seadragon.cs index d89be2d736..0220d12025 100644 --- a/Items/Weapons/Ranged/Seadragon.cs +++ b/Items/Weapons/Ranged/Seadragon.cs @@ -18,10 +18,8 @@ namespace CalamityMod.Items.Weapons.Ranged public class Seadragon : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; - // Odd shots are bullets (including the first). Even shots are water jets. - // The 9th shot adds a rocket. The 17th shot adds an ultra powerful muzzle blast, then resets the counter to 2. - // This is intentional so you don't get the muzzle blast instantly when you start firing and have to play around it. - private int shotCounter = 1; + public static int AmmoSavedPercent = 66; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); public override void SetStaticDefaults() { CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.OnFire3]; diff --git a/Items/Weapons/Ranged/Voidragon.cs b/Items/Weapons/Ranged/Voidragon.cs index 80e48cbab7..91a841c1c4 100644 --- a/Items/Weapons/Ranged/Voidragon.cs +++ b/Items/Weapons/Ranged/Voidragon.cs @@ -21,11 +21,6 @@ namespace CalamityMod.Items.Weapons.Ranged public int sharkGunDamageScaling = 0; public static int AmmoSavedPercent = 66; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); - public override void SetStaticDefaults() - { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; - } - public override void SetDefaults() { Item.width = 96; diff --git a/Items/Weapons/Rogue/Apoctolith.cs b/Items/Weapons/Rogue/Apoctolith.cs index 1fd2a9cfc4..62f3c256d5 100644 --- a/Items/Weapons/Rogue/Apoctolith.cs +++ b/Items/Weapons/Rogue/Apoctolith.cs @@ -1,6 +1,9 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Abyss; using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using CalamityMod.Utilities; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -13,6 +16,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class Apoctolith : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 66; diff --git a/Items/Weapons/Rogue/BlastBarrel.cs b/Items/Weapons/Rogue/BlastBarrel.cs index 5eecae653c..e2d78a8a40 100644 --- a/Items/Weapons/Rogue/BlastBarrel.cs +++ b/Items/Weapons/Rogue/BlastBarrel.cs @@ -1,4 +1,5 @@ using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -9,6 +10,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class BlastBarrel : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; + } public override void SetDefaults() { Item.width = 48; diff --git a/Items/Weapons/Rogue/BloodsoakedCrasher.cs b/Items/Weapons/Rogue/BloodsoakedCrasher.cs index 6c1da5bf6e..54c1b8412e 100644 --- a/Items/Weapons/Rogue/BloodsoakedCrasher.cs +++ b/Items/Weapons/Rogue/BloodsoakedCrasher.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class BloodsoakedCrasher : RogueWeapon //This weapon has been coded by Ben || Termi { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 66; diff --git a/Items/Weapons/Rogue/Brimblade.cs b/Items/Weapons/Rogue/Brimblade.cs index a6cd12bcf6..371e0343d0 100644 --- a/Items/Weapons/Rogue/Brimblade.cs +++ b/Items/Weapons/Rogue/Brimblade.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class Brimblade : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 26; diff --git a/Items/Weapons/Rogue/CorpusAvertor.cs b/Items/Weapons/Rogue/CorpusAvertor.cs index cb42af2674..685cd9e971 100644 --- a/Items/Weapons/Rogue/CorpusAvertor.cs +++ b/Items/Weapons/Rogue/CorpusAvertor.cs @@ -1,4 +1,5 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -9,6 +10,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class CorpusAvertor : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 32; diff --git a/Items/Weapons/Rogue/CosmicKunai.cs b/Items/Weapons/Rogue/CosmicKunai.cs index 7e3bd1a7b3..b8828a80b4 100644 --- a/Items/Weapons/Rogue/CosmicKunai.cs +++ b/Items/Weapons/Rogue/CosmicKunai.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -12,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class CosmicKunai : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 26; diff --git a/Items/Weapons/Rogue/CraniumSmasher.cs b/Items/Weapons/Rogue/CraniumSmasher.cs index 7d61a447d9..5e6884dcf5 100644 --- a/Items/Weapons/Rogue/CraniumSmasher.cs +++ b/Items/Weapons/Rogue/CraniumSmasher.cs @@ -1,6 +1,7 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -11,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Rogue public class CraniumSmasher : RogueWeapon { private bool throwExplosive = false; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 50; diff --git a/Items/Weapons/Rogue/CrushsawCrasher.cs b/Items/Weapons/Rogue/CrushsawCrasher.cs index a82b2e5f37..a969549eed 100644 --- a/Items/Weapons/Rogue/CrushsawCrasher.cs +++ b/Items/Weapons/Rogue/CrushsawCrasher.cs @@ -1,6 +1,7 @@ using System.Linq; using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,7 +13,10 @@ namespace CalamityMod.Items.Weapons.Rogue public class CrushsawCrasher : RogueWeapon { bool HasHoveredOverNameInGFB = false; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 38; diff --git a/Items/Weapons/Rogue/CrystalPiercer.cs b/Items/Weapons/Rogue/CrystalPiercer.cs index 3a54076ed3..04a79f2125 100644 --- a/Items/Weapons/Rogue/CrystalPiercer.cs +++ b/Items/Weapons/Rogue/CrystalPiercer.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -10,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class CrystalPiercer : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + } public override void SetDefaults() { Item.width = 62; diff --git a/Items/Weapons/Rogue/DeepSeaDumbbell.cs b/Items/Weapons/Rogue/DeepSeaDumbbell.cs index d21034981c..67418ccae8 100644 --- a/Items/Weapons/Rogue/DeepSeaDumbbell.cs +++ b/Items/Weapons/Rogue/DeepSeaDumbbell.cs @@ -1,5 +1,7 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,7 +14,10 @@ namespace CalamityMod.Items.Weapons.Rogue { private const float FlexMultMax = 5f; private float flexMult = 1f; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 38; diff --git a/Items/Weapons/Rogue/DeepWounder.cs b/Items/Weapons/Rogue/DeepWounder.cs index 7cbfc94525..dbb42e3a5f 100644 --- a/Items/Weapons/Rogue/DeepWounder.cs +++ b/Items/Weapons/Rogue/DeepWounder.cs @@ -1,6 +1,8 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; +using CalamityMod.Systems.Collections; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -9,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class DeepWounder : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 58; diff --git a/Items/Weapons/Rogue/DimensionTearingDisk.cs b/Items/Weapons/Rogue/DimensionTearingDisk.cs index 1545a49316..79f0e88922 100644 --- a/Items/Weapons/Rogue/DimensionTearingDisk.cs +++ b/Items/Weapons/Rogue/DimensionTearingDisk.cs @@ -1,8 +1,7 @@ -using System.Collections.Generic; -using CalamityMod.Items.Weapons.Melee; -using CalamityMod.NPCs.DevourerofGods; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -16,6 +15,10 @@ namespace CalamityMod.Items.Weapons.Rogue public class DimensionTearingDisk : RogueWeapon { public static float Speed = 10.5f; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 62; diff --git a/Items/Weapons/Rogue/DukesDecapitator.cs b/Items/Weapons/Rogue/DukesDecapitator.cs index 729455366d..e90b56df10 100644 --- a/Items/Weapons/Rogue/DukesDecapitator.cs +++ b/Items/Weapons/Rogue/DukesDecapitator.cs @@ -2,13 +2,19 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; +using CalamityMod.Systems.Collections; using Terraria.ID; +using CalamityMod.Buffs.DamageOverTime; using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Rogue { public class DukesDecapitator : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 60; diff --git a/Items/Weapons/Rogue/ExecutionersBlade.cs b/Items/Weapons/Rogue/ExecutionersBlade.cs index 72d6da8198..14849ad47c 100644 --- a/Items/Weapons/Rogue/ExecutionersBlade.cs +++ b/Items/Weapons/Rogue/ExecutionersBlade.cs @@ -1,7 +1,9 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; using CalamityMod.Tiles.Furniture.CraftingStations; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -13,6 +15,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class ExecutionersBlade : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 64; diff --git a/Items/Weapons/Rogue/FrostcrushValari.cs b/Items/Weapons/Rogue/FrostcrushValari.cs index a43492d9e0..1f8298046b 100644 --- a/Items/Weapons/Rogue/FrostcrushValari.cs +++ b/Items/Weapons/Rogue/FrostcrushValari.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Abyss; using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,7 +13,10 @@ namespace CalamityMod.Items.Weapons.Rogue public class FrostcrushValari : RogueWeapon { public static float Speed = 16f; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2, BuffID.Frozen]; + } public override void SetDefaults() { Item.width = 34; diff --git a/Items/Weapons/Rogue/FrostyFlare.cs b/Items/Weapons/Rogue/FrostyFlare.cs index acf40a72cb..2878ec5abd 100644 --- a/Items/Weapons/Rogue/FrostyFlare.cs +++ b/Items/Weapons/Rogue/FrostyFlare.cs @@ -1,4 +1,5 @@ using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -9,6 +10,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class FrostyFlare : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2, BuffID.Frozen]; + } public override void SetDefaults() { Item.width = 10; diff --git a/Items/Weapons/Rogue/GacruxianMollusk.cs b/Items/Weapons/Rogue/GacruxianMollusk.cs index 8ea216e1a8..f7338b4049 100644 --- a/Items/Weapons/Rogue/GacruxianMollusk.cs +++ b/Items/Weapons/Rogue/GacruxianMollusk.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,7 +13,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public static float Knockback = 5f; public static float Speed = 15f; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.Electrified]; + } public override void SetDefaults() { Item.width = 24; diff --git a/Items/Weapons/Rogue/GodsParanoia.cs b/Items/Weapons/Rogue/GodsParanoia.cs index 02bd23baf5..d673dd0cfe 100644 --- a/Items/Weapons/Rogue/GodsParanoia.cs +++ b/Items/Weapons/Rogue/GodsParanoia.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -12,7 +14,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class GodsParanoia : RogueWeapon { - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 20; diff --git a/Items/Weapons/Rogue/GraveGrimreaver.cs b/Items/Weapons/Rogue/GraveGrimreaver.cs index a26773792a..ee6256a287 100644 --- a/Items/Weapons/Rogue/GraveGrimreaver.cs +++ b/Items/Weapons/Rogue/GraveGrimreaver.cs @@ -1,4 +1,5 @@ using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -9,6 +10,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class GraveGrimreaver : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.CursedInferno, BuffID.Confused]; + } public override void SetDefaults() { Item.width = 80; diff --git a/Items/Weapons/Rogue/Hypothermia.cs b/Items/Weapons/Rogue/Hypothermia.cs index 10a951f840..c97ccfedf2 100644 --- a/Items/Weapons/Rogue/Hypothermia.cs +++ b/Items/Weapons/Rogue/Hypothermia.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -14,7 +16,10 @@ namespace CalamityMod.Items.Weapons.Rogue { // For more consistent DPS, always alternates between throwing 1 and 2 instead of picking randomly private bool throwTwo = true; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.Frozen]; + } public override void SetDefaults() { Item.width = 46; diff --git a/Items/Weapons/Rogue/IceStar.cs b/Items/Weapons/Rogue/IceStar.cs index 8a6c367c30..f64290b17f 100644 --- a/Items/Weapons/Rogue/IceStar.cs +++ b/Items/Weapons/Rogue/IceStar.cs @@ -1,4 +1,5 @@ using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -9,6 +10,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class IceStar : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + } public override void SetDefaults() { Item.width = Item.height = 66; diff --git a/Items/Weapons/Rogue/Icebreaker.cs b/Items/Weapons/Rogue/Icebreaker.cs index 70313458d7..2cb4ff44fa 100644 --- a/Items/Weapons/Rogue/Icebreaker.cs +++ b/Items/Weapons/Rogue/Icebreaker.cs @@ -1,5 +1,5 @@ -using CalamityMod.Items.Weapons.Melee; -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -10,6 +10,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class Icebreaker : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2, BuffID.Frozen]; + } public override void SetDefaults() { Item.width = 60; diff --git a/Items/Weapons/Rogue/InfernalKris.cs b/Items/Weapons/Rogue/InfernalKris.cs index a253fb640c..cb7cded4f1 100644 --- a/Items/Weapons/Rogue/InfernalKris.cs +++ b/Items/Weapons/Rogue/InfernalKris.cs @@ -1,4 +1,5 @@ using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -9,6 +10,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class InfernalKris : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire]; + } public override void SetDefaults() { Item.width = 32; diff --git a/Items/Weapons/Rogue/JawsOfOblivion.cs b/Items/Weapons/Rogue/JawsOfOblivion.cs index b910cf3358..939d523b17 100644 --- a/Items/Weapons/Rogue/JawsOfOblivion.cs +++ b/Items/Weapons/Rogue/JawsOfOblivion.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using CalamityMod.Rarities; using Microsoft.Xna.Framework; using Terraria; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class JawsOfOblivion : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 42; diff --git a/Items/Weapons/Rogue/KelvinCatalyst.cs b/Items/Weapons/Rogue/KelvinCatalyst.cs index bdb23f1f1c..b551f7a412 100644 --- a/Items/Weapons/Rogue/KelvinCatalyst.cs +++ b/Items/Weapons/Rogue/KelvinCatalyst.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -13,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class KelvinCatalyst : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + } public override void SetDefaults() { Item.width = 20; diff --git a/Items/Weapons/Rogue/LeviathanTeeth.cs b/Items/Weapons/Rogue/LeviathanTeeth.cs index bbced63075..ff78f8a102 100644 --- a/Items/Weapons/Rogue/LeviathanTeeth.cs +++ b/Items/Weapons/Rogue/LeviathanTeeth.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -9,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class LeviathanTeeth : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 36; diff --git a/Items/Weapons/Rogue/LunarKunai.cs b/Items/Weapons/Rogue/LunarKunai.cs index 829959a4cc..5e6a26657e 100644 --- a/Items/Weapons/Rogue/LunarKunai.cs +++ b/Items/Weapons/Rogue/LunarKunai.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -9,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class LunarKunai : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 38; diff --git a/Items/Weapons/Rogue/Malachite.cs b/Items/Weapons/Rogue/Malachite.cs index e67860842d..146e745126 100644 --- a/Items/Weapons/Rogue/Malachite.cs +++ b/Items/Weapons/Rogue/Malachite.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -18,6 +20,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetStaticDefaults() { ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Rogue/MangroveChakram.cs b/Items/Weapons/Rogue/MangroveChakram.cs index 2ffec7ef94..1e923764aa 100644 --- a/Items/Weapons/Rogue/MangroveChakram.cs +++ b/Items/Weapons/Rogue/MangroveChakram.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -10,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class MangroveChakram : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Venom]; + } public override void SetDefaults() { Item.width = 38; diff --git a/Items/Weapons/Rogue/MeteorFist.cs b/Items/Weapons/Rogue/MeteorFist.cs index 514769e61b..e0f2b3a124 100644 --- a/Items/Weapons/Rogue/MeteorFist.cs +++ b/Items/Weapons/Rogue/MeteorFist.cs @@ -1,4 +1,5 @@ using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -9,6 +10,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class MeteorFist : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire]; + } public override void SetDefaults() { Item.width = 22; diff --git a/Items/Weapons/Rogue/MoltenAmputator.cs b/Items/Weapons/Rogue/MoltenAmputator.cs index 7b108c5096..cee79c4396 100644 --- a/Items/Weapons/Rogue/MoltenAmputator.cs +++ b/Items/Weapons/Rogue/MoltenAmputator.cs @@ -1,6 +1,8 @@ -using CalamityMod.Dusts; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Dusts; using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -14,8 +16,11 @@ namespace CalamityMod.Items.Weapons.Rogue public class MoltenAmputator : RogueWeapon { public float speed = 16; - public static int FlurryCount => 30; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 92; diff --git a/Items/Weapons/Rogue/Penumbra.cs b/Items/Weapons/Rogue/Penumbra.cs index bf62bd5875..9a8c6521f5 100644 --- a/Items/Weapons/Rogue/Penumbra.cs +++ b/Items/Weapons/Rogue/Penumbra.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -13,6 +15,10 @@ namespace CalamityMod.Items.Weapons.Rogue public class Penumbra : RogueWeapon { public static float ShootSpeed = 9f; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 46; diff --git a/Items/Weapons/Rogue/Prismalline.cs b/Items/Weapons/Rogue/Prismalline.cs index 5ed879a35f..c5e0672f39 100644 --- a/Items/Weapons/Rogue/Prismalline.cs +++ b/Items/Weapons/Rogue/Prismalline.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.SunkenSea; using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class Prismalline : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 54; diff --git a/Items/Weapons/Rogue/ProfanedPartisan.cs b/Items/Weapons/Rogue/ProfanedPartisan.cs index ae93270b57..e95808976b 100644 --- a/Items/Weapons/Rogue/ProfanedPartisan.cs +++ b/Items/Weapons/Rogue/ProfanedPartisan.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -13,6 +15,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public static int SpearBaseDamage => 125; public static int StarBaseDamage => 80; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 68; diff --git a/Items/Weapons/Rogue/ReboundingRainbow.cs b/Items/Weapons/Rogue/ReboundingRainbow.cs index eef227ac32..2e9f8848b8 100644 --- a/Items/Weapons/Rogue/ReboundingRainbow.cs +++ b/Items/Weapons/Rogue/ReboundingRainbow.cs @@ -1,4 +1,5 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; @@ -12,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Rogue public class ReboundingRainbow : RogueWeapon { public static int stealthTimeMult = 2; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 38; diff --git a/Items/Weapons/Rogue/RotBall.cs b/Items/Weapons/Rogue/RotBall.cs index 9ca38e95d4..5267d124a0 100644 --- a/Items/Weapons/Rogue/RotBall.cs +++ b/Items/Weapons/Rogue/RotBall.cs @@ -1,5 +1,6 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -10,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class RotBall : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 30; diff --git a/Items/Weapons/Rogue/ShatteredDawn.cs b/Items/Weapons/Rogue/ShatteredDawn.cs index 7331b6f831..63499fe34c 100644 --- a/Items/Weapons/Rogue/ShatteredDawn.cs +++ b/Items/Weapons/Rogue/ShatteredDawn.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class ShatteredDawn : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 66; diff --git a/Items/Weapons/Rogue/SkyfinBombers.cs b/Items/Weapons/Rogue/SkyfinBombers.cs index 33d8971e0f..45851a02de 100644 --- a/Items/Weapons/Rogue/SkyfinBombers.cs +++ b/Items/Weapons/Rogue/SkyfinBombers.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -10,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class SkyfinBombers : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 28; diff --git a/Items/Weapons/Rogue/SludgeSplotch.cs b/Items/Weapons/Rogue/SludgeSplotch.cs index e90b104126..64460a10be 100644 --- a/Items/Weapons/Rogue/SludgeSplotch.cs +++ b/Items/Weapons/Rogue/SludgeSplotch.cs @@ -2,6 +2,7 @@ using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; +using CalamityMod.Systems.Collections; using Terraria.Audio; using Terraria.DataStructures; using Terraria.ID; @@ -11,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class SludgeSplotch : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Slimed]; + } public override void SetDefaults() { Item.width = 32; diff --git a/Items/Weapons/Rogue/SpearofPaleolith.cs b/Items/Weapons/Rogue/SpearofPaleolith.cs index bad85a5962..1b888efe2d 100644 --- a/Items/Weapons/Rogue/SpearofPaleolith.cs +++ b/Items/Weapons/Rogue/SpearofPaleolith.cs @@ -1,7 +1,9 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.ModLoader; @@ -13,6 +15,10 @@ namespace CalamityMod.Items.Weapons.Rogue public static int NormalShardCount => 3; public static int ImpaledShardCount => 5; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 54; diff --git a/Items/Weapons/Rogue/SporeKnife.cs b/Items/Weapons/Rogue/SporeKnife.cs index 9a5b9bf81e..724d3697ac 100644 --- a/Items/Weapons/Rogue/SporeKnife.cs +++ b/Items/Weapons/Rogue/SporeKnife.cs @@ -1,4 +1,5 @@ using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -13,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Rogue public static readonly SoundStyle ImpactSound = new SoundStyle("CalamityMod/Sounds/Item/SporeKnifeImpact") with { PitchVariance = 0.25f, MaxInstances = 10 }; public static readonly SoundStyle StealthImpactSound = new SoundStyle("CalamityMod/Sounds/Item/SporeKnifeStealthImpact"); public static readonly SoundStyle ChompSound = new SoundStyle("CalamityMod/Sounds/Item/SporeKnifeChomp", 1, 3) with { PitchVariance = 0.25f, MaxInstances = 10 }; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Poisoned]; + } public override void SetDefaults() { Item.width = 12; diff --git a/Items/Weapons/Rogue/StormfrontRazor.cs b/Items/Weapons/Rogue/StormfrontRazor.cs index 1d4d1e40e5..1bcd4aa5c5 100644 --- a/Items/Weapons/Rogue/StormfrontRazor.cs +++ b/Items/Weapons/Rogue/StormfrontRazor.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.SunkenSea; using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -17,6 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetStaticDefaults() { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 4)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Weapons/Rogue/SubductionSlicer.cs b/Items/Weapons/Rogue/SubductionSlicer.cs index 12656fa1e0..1e806a465d 100644 --- a/Items/Weapons/Rogue/SubductionSlicer.cs +++ b/Items/Weapons/Rogue/SubductionSlicer.cs @@ -1,7 +1,9 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; +using CalamityMod.Systems.Collections; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Rogue [LegacyName("FlameScythe")] public class SubductionSlicer : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.OnFire3]; + } public override void SetDefaults() { Item.width = 50; diff --git a/Items/Weapons/Rogue/TheFinalDawn.cs b/Items/Weapons/Rogue/TheFinalDawn.cs index e85e7b59a3..456fca59b4 100644 --- a/Items/Weapons/Rogue/TheFinalDawn.cs +++ b/Items/Weapons/Rogue/TheFinalDawn.cs @@ -1,5 +1,7 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.Audio; using Terraria.ID; @@ -12,6 +14,10 @@ namespace CalamityMod.Items.Weapons.Rogue public class TheFinalDawn : RogueWeapon { public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/FinalDawnSlash"); + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 78; diff --git a/Items/Weapons/Rogue/TheOldReaper.cs b/Items/Weapons/Rogue/TheOldReaper.cs index 80c69b5fab..b39d3cc3d3 100644 --- a/Items/Weapons/Rogue/TheOldReaper.cs +++ b/Items/Weapons/Rogue/TheOldReaper.cs @@ -1,5 +1,7 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Rogue [LegacyName("TheReaper")] public class TheOldReaper : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 106; diff --git a/Items/Weapons/Rogue/ToothBall.cs b/Items/Weapons/Rogue/ToothBall.cs index 633fb1f6cd..4445d95182 100644 --- a/Items/Weapons/Rogue/ToothBall.cs +++ b/Items/Weapons/Rogue/ToothBall.cs @@ -1,5 +1,6 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -10,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class ToothBall : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 30; diff --git a/Items/Weapons/Rogue/TotalityBreakers.cs b/Items/Weapons/Rogue/TotalityBreakers.cs index f606cd97b4..adc2d4182d 100644 --- a/Items/Weapons/Rogue/TotalityBreakers.cs +++ b/Items/Weapons/Rogue/TotalityBreakers.cs @@ -10,6 +10,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class TotalityBreakers : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire2]; + } public override void SetDefaults() { Item.width = 32; diff --git a/Items/Weapons/Rogue/ToxicantTwister.cs b/Items/Weapons/Rogue/ToxicantTwister.cs index a4fa72738a..b09e00475e 100644 --- a/Items/Weapons/Rogue/ToxicantTwister.cs +++ b/Items/Weapons/Rogue/ToxicantTwister.cs @@ -1,6 +1,8 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Melee; using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class ToxicantTwister : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 42; diff --git a/Items/Weapons/Rogue/TwistingThunder.cs b/Items/Weapons/Rogue/TwistingThunder.cs index 66aadf552c..ce3f7458bc 100644 --- a/Items/Weapons/Rogue/TwistingThunder.cs +++ b/Items/Weapons/Rogue/TwistingThunder.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -12,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Rogue [LegacyName("DeificThunderbolt")] public class TwistingThunder : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Electrified]; + } public override void SetDefaults() { Item.width = 56; diff --git a/Items/Weapons/Rogue/UrchinStinger.cs b/Items/Weapons/Rogue/UrchinStinger.cs index 01fe4cb223..ad23dc5a28 100644 --- a/Items/Weapons/Rogue/UrchinStinger.cs +++ b/Items/Weapons/Rogue/UrchinStinger.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -8,6 +10,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class UrchinStinger : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 10; diff --git a/Items/Weapons/Rogue/UtensilPoker.cs b/Items/Weapons/Rogue/UtensilPoker.cs index 90259f9cf0..712dc8eda4 100644 --- a/Items/Weapons/Rogue/UtensilPoker.cs +++ b/Items/Weapons/Rogue/UtensilPoker.cs @@ -1,5 +1,7 @@ -using CalamityMod.CalPlayer; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Rogue; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Rogue public class UtensilPoker : RogueWeapon { private int counter = 0; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 44; diff --git a/Items/Weapons/Rogue/Valediction.cs b/Items/Weapons/Rogue/Valediction.cs index 41462166f4..96976bdea6 100644 --- a/Items/Weapons/Rogue/Valediction.cs +++ b/Items/Weapons/Rogue/Valediction.cs @@ -1,4 +1,5 @@ -using CalamityMod.Projectiles.Rogue; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; using Microsoft.Xna.Framework; using Terraria; @@ -10,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Rogue { public class Valediction : RogueWeapon { + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 80; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index 57fd63cf5d..447103b91a 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -39,7 +39,7 @@ AuroradicalThrow: { Launches a star that splits after a short period of time Split stars home in on nearby enemies after a few seconds Stealth strikes summon a meteor upon enemy impact - Inflicts [cbuff:CalamityMod/AstralInfectionDebuff] + Spreads the [cbuff:CalamityMod/AstralInfectionDebuff] ''' } @@ -47,7 +47,7 @@ BallisticPoisonBomb: { DisplayName: Ballistic Poison Bomb Tooltip: ''' - Throws a sticky bomb that explodes into spikes and [cbuff:Venom] clouds + Throws a sticky bomb that explodes into spikes and venomous clouds Stealth strikes erupt into more clouds with a longer lasting [cbuff:Venom] ''' } @@ -107,7 +107,7 @@ BurningStrife: { DisplayName: Burning Strife Tooltip: ''' - Throws a [cbuff:CalamityMod/Shadowflame] spiky ball that explodes into flames + Throws an enchanted spiky ball that explodes into [cbuff:CalamityMod/Shadowflame] Stealth strikes make the ball erupt into tentacles on hit 'Definitely not pocket safe' ''' @@ -129,6 +129,7 @@ Celestus: { ''' Throws a high-velocity scythe that splits into multiple phantom scythes on enemy hits Stealth strikes reverse direction and home in on enemies after returning to the player + Struck enemies are atomized by [cbuff:CalamityMod/MiracleBlight] ''' } @@ -259,7 +260,7 @@ CursedDagger: { DisplayName: Cursed Dagger Tooltip: ''' - Throws a fast cursed dagger and two inaccurate weaker daggers that inflict [cbuff:CursedInferno] + Throws a fast cursed dagger and two inaccurate weaker daggers Stealth strikes throw a single dagger that bursts into a [cbuff:CursedInferno] vortex ''' } @@ -278,7 +279,7 @@ DeepWounder: { DisplayName: Deep Wounder Tooltip: ''' - Throws an abyssal hatchet that inflicts [cbuff:CalamityMod/HeavyBleeding] and [cbuff:CalamityMod/CrushDepth] to the enemies it hits + Throws an abyssal hatchet Stealth strikes cause the hatchet to stick to struck enemies, releasing a barrage of water projectiles Water projectiles launch at the closest enemy after a brief delay ''' @@ -399,8 +400,8 @@ EpidemicShredder: { DisplayName: Epidemic Shredder Tooltip: ''' - Throws a [cbuff:CalamityMod/Plague] boomerang that releases plague seekers when it hits tiles or enemies - Stealth strikes cause the boomerang to release plague seekers constantly as it travels + Throws an infected boomerang that releases [cbuff:CalamityMod/Plague] seekers when it hits tiles or enemies + Stealth strikes cause the boomerang to release [cbuff:CalamityMod/Plague] seekers constantly as it travels Contrary to its name, it will probably cause an epidemic if used incorrectly ''' } @@ -419,7 +420,7 @@ ExecutionersBlade: { DisplayName: Executioner's Blade Tooltip: ''' - Throws a stream of homing blades that inflict [cbuff:CalamityMod/GodSlayerInferno] + Throws a stream of homing blades Stealth strikes summon a guillotine of blades on hit ''' } @@ -558,7 +559,6 @@ GraveGrimreaver: { Hurls a cursed scythe which homes in The scythe summons skulls as it flies and explodes into bats on hit Stealth strikes spawn a flood of bats and falling skulls when destroyed - Inflicts [cbuff:CursedInferno] and [cbuff:Confused] 'A dapper skeleton's weapon of choice' ''' } @@ -568,7 +568,7 @@ HardenedHoneycomb: { Tooltip: ''' Fires a honeycomb that shatters into fragments - Stealth strikes grant the honey buff on hit and spawn bees + Stealth strikes grant the [cbuffplr:Honey] buff on hit and spawn bees ''' } @@ -577,9 +577,8 @@ HeavenfallenStardisk: { Tooltip: ''' Throws a stardisk upwards which then launches itself towards your mouse cursor - Explodes into a star of astral bolts on hit + Explodes into a star of astral bolts which spread the [cbuff:CalamityMod/AstralInfectionDebuff] Stealth strikes rain astral energy bolts from the sky - Inflicts [cbuff:CalamityMod/AstralInfectionDebuff] ''' } @@ -652,7 +651,7 @@ JawsOfOblivion: { ''' Throws a tight spread of six reaper teeth with [cbuff:Venom] that stick in enemies The [cbuff:Venom] can stack when more teeth are stuck in an enemy - Stealth strikes cause the teeth to emit a crushing [cbuff:CalamityMod/HadopelagicPressure] shockwave on impact + Stealth strikes cause the teeth to emit a crushing shockwave on impact 'You're gonna need a bigger boat' ''' } @@ -688,10 +687,9 @@ LeonidProgenitor: { DisplayName: Leonid Progenitor Tooltip: ''' - Throws a bombshell that explodes, summoning a meteor to impact the site + Throws a bombshell that explodes, summoning a meteor to impact the site and spread the [cbuff:CalamityMod/AstralInfectionDebuff] Press to throw a spread of gravity affected comets that explode, leaving behind a star Stealth strikes lob a bombshell that additionally splits into comets on hit - Inflicts [cbuff:CalamityMod/AstralInfectionDebuff] ''' } @@ -719,7 +717,7 @@ LunarKunai: { DisplayName: Lunar Kunai Tooltip: ''' - Throws out a set of three kunai that ignore gravity and slightly home in on enemies, inflicting [cbuff:CalamityMod/Nightwither] + Throws out a set of three kunai that ignore gravity and slightly home in on enemies After traveling enough distance, the kunai supercharge with lunar energy, homing in far more aggressively and exploding on impact Stealth strikes instantly throw ten supercharged Kunai ''' @@ -729,7 +727,7 @@ Malachite: { DisplayName: Malachite Tooltip: ''' - Throws a stream of kunai that stick to enemies and explode into [cbuff:CalamityMod/Plague] + Throws a stream of kunai that stick to enemies and explode Press to throw a single kunai that pierces, after piercing an enemy it emits a massive explosion on the next enemy hit Stealth strikes fire three kunai that home in, stick to enemies, and explode ''' @@ -889,7 +887,6 @@ ProfanedPartisan: { Throws a profaned spear that splits into miniature spears upon hitting an enemy Stealth strikes remain impaled in an enemy for 10 seconds While an enemy is impaled, all spears that strike them instead shatter into exploding stars - Inflicts [cbuff:CalamityMod/HolyFlames] ''' } @@ -897,7 +894,7 @@ RadiantStar: { DisplayName: Radiant Star Tooltip: ''' - Throws daggers that explode and split after a while and inflict [cbuff:CalamityMod/AstralInfectionDebuff] + Throws daggers that explode and split after a while and spread the [cbuff:CalamityMod/AstralInfectionDebuff] Stealth strikes split more with a devastating explosion that sucks enemies in ''' } @@ -934,7 +931,7 @@ RegulusRiot: { DisplayName: Regulus Riot Tooltip: ''' - Fires a swift homing disk that inflicts [cbuff:CalamityMod/AstralInfectionDebuff] + Fires a swift homing disk that spreads the [cbuff:CalamityMod/AstralInfectionDebuff] Stealth strikes explode into energy stars ''' } @@ -1116,7 +1113,6 @@ SpearofPaleolith: { Throws an ancient spear that shatters into fossil shards upon hitting an enemy Stealth strikes remain impaled in the enemy for 10 seconds While an enemy is impaled, all spears that strike them erupt into even more fossil shards - Inflicts [cbuff:CalamityMod/ArmorCrunch] ''' } @@ -1135,7 +1131,7 @@ SporeKnife: { DisplayName: Spore Knife Tooltip: ''' - Throws an overgrown dagger that bursts into a cloud of [cbuff:Poisoned] spores + Throws an overgrown dagger that bursts into a cloud of poisonous spores Stealth strikes erupt into hungry homing buds that stick to enemies and gnaw them ''' } @@ -1155,7 +1151,7 @@ StellarKnife: { DisplayName: Stellar Knife Tooltip: ''' - Throws knives that stop midair and then home into enemies, inflicting [cbuff:CalamityMod/AstralInfectionDebuff] + Throws knives that stop midair and then home into enemies, spreading the [cbuff:CalamityMod/AstralInfectionDebuff] Stealth strikes throw a volley of 10 knives in a spread 'ZA WARUDO' ''' @@ -1165,7 +1161,7 @@ StormfrontRazor: { DisplayName: Stormfront Razor Tooltip: ''' - Throws a knife that summons [cbuff:CalamityMod/StaticDischarge] lightning on hit + Throws a knife that summons lightning on hit Stealth strikes cause the knife to be faster and summon multiple lightning bolts on hit [c/24C7F0:'Strike and stem the flow'] ''' @@ -1236,10 +1232,10 @@ TheOldReaper: { DisplayName: The Old Reaper Tooltip: ''' - Throws a [cbuff:CalamityMod/SulphuricPoisoning] scythe that cuts through enemies + Throws a scythe that cuts through enemies Deposits unstable isotopes on hit, which create delayed nuclear explosions when they decay Stealth strikes are thrown into the sky and fall upon enemies a few seconds later - On hit, stealth strikes create a focused deluge of [cbuff:CalamityMod/SulphuricPoisoning] acid rain + On hit, stealth strikes create a focused deluge of acid rain ''' } @@ -1248,7 +1244,7 @@ TheSyringe: { Tooltip: ''' Throws a high velocity syringe that increases damage as it travels - Shatters into glass and [cbuff:CalamityMod/Plague] cinders on impact + Shatters into glass and cinders on impact Stealth strikes also shatter into [cbuff:CalamityMod/Plague] bees 'I'm pretty sure this isn't healthy' ''' @@ -1288,7 +1284,7 @@ TotalityBreakers: { Tooltip: ''' Explodes into highly flammable black tar - Black tar makes enemies [cbuff:Oiled] and lights them with [cbuff:OnFire3] + Black tar makes enemies [cbuff:Oiled] and sets them alight Stealth strikes leak black tar as they fly 'I need a bigger breaker' ''' @@ -1298,8 +1294,8 @@ ToxicantTwister: { DisplayName: Toxicant Twister Tooltip: ''' - Throws a fan of four spinning disks that swirl around your cursor and inflict [cbuff:CalamityMod/SulphuricPoisoning] - Stealth strikes swirl in a wider range and create a vortex of [cbuff:CalamityMod/SulphuricPoisoning] raindrops that home in on enemies + Throws a fan of four spinning disks that swirl around your cursor + Stealth strikes swirl in a wider range and create a vortex of raindrops that home in on enemies ''' } @@ -1317,7 +1313,7 @@ TwistingThunder: { DisplayName: Twisting Thunder Tooltip: ''' - Fires an [cbuff:Electrified] lightning bolt to electrocute enemies + Fires a lightning bolt to electrocute enemies The lightning bolt travels faster while it is raining Summons lightning from the sky on impact Stealth strikes summon more lightning and travel faster @@ -1328,9 +1324,9 @@ UrchinStinger: { DisplayName: Urchin Stinger Tooltip: ''' - Sticks into enemies and injects an extremely potent [cbuff:Poisoned] effect + Sticks into enemies and injects an extremely potent poison Stealth strikes stick into and make enemies [cbuff:Poisoned] for longer - Sticking seven stingers in an enemy with a stealth strike stuck in it spawns an [cbuff:CalamityMod/Irradiated] blast + Sticking seven stingers in an enemy with a stealth strike stuck in it spawns an irradiated blast ''' } @@ -1338,8 +1334,8 @@ UtensilPoker: { DisplayName: Utensil Poker Tooltip: ''' - Fires utensils in bursts of three that cause [cbuff:CalamityMod/HeavyBleeding] - Stealth strikes replace any utensil with a powerful butcher knife that causes [cbuff:CalamityMod/Laceration] + Fires utensils in bursts of three + Stealth strikes replace any utensil with a powerful butcher knife 'Space chickens, that is all' ''' } @@ -1400,7 +1396,7 @@ Wrathwing: { DisplayName: Wrathwing Tooltip: ''' - Throws an agile, homing winged spear of [cbuff:CalamityMod/Dragonfire] that constantly spits fire + Throws an agile, homing winged spear that constantly spits [cbuff:CalamityMod/Dragonfire] Stealth strikes create an eruption of cinders on hit ''' } diff --git a/Systems/Collections/CalamityItemSets.cs b/Systems/Collections/CalamityItemSets.cs index 5ed9321848..2ed2d37815 100644 --- a/Systems/Collections/CalamityItemSets.cs +++ b/Systems/Collections/CalamityItemSets.cs @@ -146,10 +146,5 @@ namespace CalamityMod.Systems.Collections /// Force display expandable tooltip debuff info for infliction on a player /// public static List[] ExtraDebuffTooltip_Player = Factory.CreateCustomSet>(new()); - - public static bool[] ShowScalingCritDamageTooltip = Factory - .CreateNamedSet("ShowScalingCritDamageTooltip") - .Description("Replaces Crit Chance tooltip line with Crit Damage, getting 2% crit dmg per 1% crit chance") - .RegisterBoolSet(); } } From 395f881fa0c4740d51d364a6cb2f2bb58dd98c04 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Thu, 4 Jun 2026 17:59:17 -0700 Subject: [PATCH 16/26] Accessories --- Items/Accessories/AmalgamatedBrain.cs | 9 +++++-- Items/Accessories/ArcFlashRing.cs | 7 ++++- Items/Accessories/AsgardianAegis.cs | 8 +++++- Items/Accessories/BlazingCore.cs | 3 +++ Items/Accessories/DragonScales.cs | 6 ++++- Items/Accessories/DynamoStemCells.cs | 5 +++- Items/Accessories/ElysianAegis.cs | 8 +++++- Items/Accessories/FlameLickedShell.cs | 9 +++++-- Items/Accessories/HeartoftheElements.cs | 5 +++- Items/Accessories/JellyChargedBattery.cs | 8 +++++- Items/Accessories/LeviathanAmbergris.cs | 8 +++++- Items/Accessories/NebulousCore.cs | 8 +++++- Items/Accessories/Nucleogenesis.cs | 2 ++ Items/Accessories/OrnateShield.cs | 6 ++++- Items/Accessories/ProfanedSoulArtifact.cs | 3 +++ Items/Accessories/ProfanedSoulCrystal.cs | 4 ++- Items/Accessories/RoseStone.cs | 9 +++++-- Items/Accessories/RottenBrain.cs | 9 +++++-- Items/Accessories/SeaSpiritAmulet.cs | 8 +++++- Items/Accessories/StarTaintedGenerator.cs | 8 +++++- Items/Accessories/StarbusterCore.cs | 8 +++++- Items/Accessories/TheAmalgam.cs | 5 +++- Items/Accessories/VeneratedLocket.cs | 8 +++++- Items/Accessories/VoidofCalamity.cs | 8 +++++- Items/Weapons/Summon/TacticalPlagueEngine.cs | 6 +---- .../Mods.CalamityMod.Items.Accessories.hjson | 27 +++++++++---------- ...ods.CalamityMod.Items.Weapons.Summon.hjson | 2 +- 27 files changed, 152 insertions(+), 45 deletions(-) diff --git a/Items/Accessories/AmalgamatedBrain.cs b/Items/Accessories/AmalgamatedBrain.cs index 642fcd0085..70f87c2ed4 100644 --- a/Items/Accessories/AmalgamatedBrain.cs +++ b/Items/Accessories/AmalgamatedBrain.cs @@ -1,7 +1,8 @@ -using CalamityMod.CalPlayer; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; -using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Accessories @@ -11,6 +12,10 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public static int NimbusDamage => CalamityUtils.ScaleWithDifficulty(18); + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.Confused]; + } public override void SetDefaults() { diff --git a/Items/Accessories/ArcFlashRing.cs b/Items/Accessories/ArcFlashRing.cs index 32d8fbc0c0..ea30fe35d4 100644 --- a/Items/Accessories/ArcFlashRing.cs +++ b/Items/Accessories/ArcFlashRing.cs @@ -1,9 +1,11 @@ using CalamityMod.CalPlayer; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.GameContent; +using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; @@ -16,7 +18,10 @@ namespace CalamityMod.Items.Accessories public static int LightningSpawnPercent = 5; public static float LightningDamageMult = 3f; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(LightningSpawnPercent, LightningDamageMult); - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Electrified]; + } public override void SetDefaults() { Item.width = 56; diff --git a/Items/Accessories/AsgardianAegis.cs b/Items/Accessories/AsgardianAegis.cs index c9bf0aa08d..16b13a9bfe 100644 --- a/Items/Accessories/AsgardianAegis.cs +++ b/Items/Accessories/AsgardianAegis.cs @@ -1,7 +1,9 @@ -using CalamityMod.CalPlayer; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using CalamityMod.CalPlayer.Dashes; using CalamityMod.Items.Materials; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -22,6 +24,10 @@ namespace CalamityMod.Items.Accessories public const int RamExplosionDamage = 300; public const float RamExplosionKnockback = 20f; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Accessories/BlazingCore.cs b/Items/Accessories/BlazingCore.cs index 7a6bd7980a..87edf334c1 100644 --- a/Items/Accessories/BlazingCore.cs +++ b/Items/Accessories/BlazingCore.cs @@ -1,7 +1,9 @@ using System; using System.Collections.Generic; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Typeless; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -22,6 +24,7 @@ namespace CalamityMod.Items.Accessories public override void SetStaticDefaults() { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 6)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/DragonScales.cs b/Items/Accessories/DragonScales.cs index 5bc10a0e90..45535c30db 100644 --- a/Items/Accessories/DragonScales.cs +++ b/Items/Accessories/DragonScales.cs @@ -1,6 +1,7 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ModLoader; @@ -11,7 +12,10 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public static int ShitBaseDamage = 57; public static int TornadoBaseDamage = 210; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 32; diff --git a/Items/Accessories/DynamoStemCells.cs b/Items/Accessories/DynamoStemCells.cs index 35a09913aa..86ec26eac3 100644 --- a/Items/Accessories/DynamoStemCells.cs +++ b/Items/Accessories/DynamoStemCells.cs @@ -1,4 +1,6 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Systems.Collections; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; @@ -17,6 +19,7 @@ namespace CalamityMod.Items.Accessories { Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 5)); ItemID.Sets.AnimatesAsSoul[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Accessories/ElysianAegis.cs b/Items/Accessories/ElysianAegis.cs index 89722b2b07..2f099f6b87 100644 --- a/Items/Accessories/ElysianAegis.cs +++ b/Items/Accessories/ElysianAegis.cs @@ -1,6 +1,8 @@ -using CalamityMod.CalPlayer; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using CalamityMod.CalPlayer.Dashes; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; @@ -20,6 +22,10 @@ namespace CalamityMod.Items.Accessories public const int RamExplosionDamage = 100; public const float RamExplosionKnockback = 15f; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { diff --git a/Items/Accessories/FlameLickedShell.cs b/Items/Accessories/FlameLickedShell.cs index 3b47623fee..53f57e9697 100644 --- a/Items/Accessories/FlameLickedShell.cs +++ b/Items/Accessories/FlameLickedShell.cs @@ -1,6 +1,8 @@ using System; -using System.Collections.Generic; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; +using CalamityMod.Systems.Collections; +using System.Collections.Generic; using CalamityMod.Dusts; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; @@ -16,7 +18,10 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; internal const int flameLickedParry = 30; public override void ModifyTooltips(List list) => list.IntegrateHotkey(CalamityKeybinds.AccessoryParryHotKey); - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 36; diff --git a/Items/Accessories/HeartoftheElements.cs b/Items/Accessories/HeartoftheElements.cs index 3f22fbf8c0..f88f04d4fb 100644 --- a/Items/Accessories/HeartoftheElements.cs +++ b/Items/Accessories/HeartoftheElements.cs @@ -1,6 +1,8 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -20,6 +22,7 @@ namespace CalamityMod.Items.Accessories { Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 8)); ItemID.Sets.AnimatesAsSoul[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Accessories/JellyChargedBattery.cs b/Items/Accessories/JellyChargedBattery.cs index a10d8a46be..1bd9c524fb 100644 --- a/Items/Accessories/JellyChargedBattery.cs +++ b/Items/Accessories/JellyChargedBattery.cs @@ -1,4 +1,6 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Materials; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -8,6 +10,10 @@ namespace CalamityMod.Items.Accessories public class JellyChargedBattery : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 20; diff --git a/Items/Accessories/LeviathanAmbergris.cs b/Items/Accessories/LeviathanAmbergris.cs index 8f9a198dee..acb8755aab 100644 --- a/Items/Accessories/LeviathanAmbergris.cs +++ b/Items/Accessories/LeviathanAmbergris.cs @@ -1,4 +1,6 @@ -using CalamityMod.CalPlayer; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -10,6 +12,10 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public static int ambergrisDashDamage => 350; public static float DashSpeedIncrease => 1f; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 20; diff --git a/Items/Accessories/NebulousCore.cs b/Items/Accessories/NebulousCore.cs index 7033bda892..91b3cc3860 100644 --- a/Items/Accessories/NebulousCore.cs +++ b/Items/Accessories/NebulousCore.cs @@ -1,6 +1,8 @@ -using CalamityMod.CalPlayer; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Typeless; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; @@ -10,6 +12,10 @@ namespace CalamityMod.Items.Accessories public class NebulousCore : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 16; diff --git a/Items/Accessories/Nucleogenesis.cs b/Items/Accessories/Nucleogenesis.cs index 1f3dfd4288..cf8c623f47 100644 --- a/Items/Accessories/Nucleogenesis.cs +++ b/Items/Accessories/Nucleogenesis.cs @@ -3,6 +3,7 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; using Terraria.DataStructures; @@ -18,6 +19,7 @@ namespace CalamityMod.Items.Accessories { Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 10)); ItemID.Sets.AnimatesAsSoul[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Accessories/OrnateShield.cs b/Items/Accessories/OrnateShield.cs index 30e331049d..b8207f6c8b 100644 --- a/Items/Accessories/OrnateShield.cs +++ b/Items/Accessories/OrnateShield.cs @@ -1,5 +1,6 @@ using CalamityMod.CalPlayer.Dashes; using CalamityMod.Items.Materials; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -13,7 +14,10 @@ namespace CalamityMod.Items.Accessories public const int ShieldSlamDamage = 50; public const float ShieldSlamKnockback = 3f; public const int ShieldSlamIFrames = 12; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn2]; + } public override void SetDefaults() { Item.width = 36; diff --git a/Items/Accessories/ProfanedSoulArtifact.cs b/Items/Accessories/ProfanedSoulArtifact.cs index 9d965f53bb..ef3e171889 100644 --- a/Items/Accessories/ProfanedSoulArtifact.cs +++ b/Items/Accessories/ProfanedSoulArtifact.cs @@ -1,11 +1,13 @@ using System; using System.Collections.Generic; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; using CalamityMod.DataStructures; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Ores; using CalamityMod.Items.Placeables.Plates; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Utilities.Daybreak; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -62,6 +64,7 @@ namespace CalamityMod.Items.Accessories { Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6)); ItemID.Sets.AnimatesAsSoul[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public void DrawDyeableShader(SpriteBatch spriteBatch) => DrawProfanedSoulShields(OwnerPlayer); diff --git a/Items/Accessories/ProfanedSoulCrystal.cs b/Items/Accessories/ProfanedSoulCrystal.cs index 59558577fa..2d446d05c8 100644 --- a/Items/Accessories/ProfanedSoulCrystal.cs +++ b/Items/Accessories/ProfanedSoulCrystal.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatBuffs; using CalamityMod.Buffs.Summon.Whips; using CalamityMod.CalPlayer; @@ -12,6 +13,7 @@ using CalamityMod.NPCs.Providence; using CalamityMod.Particles; using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -219,7 +221,7 @@ namespace CalamityMod.Items.Accessories { Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 4)); ItemID.Sets.AnimatesAsSoul[Type] = true; - + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; base.SetStaticDefaults(); } diff --git a/Items/Accessories/RoseStone.cs b/Items/Accessories/RoseStone.cs index be56ae478a..981a849630 100644 --- a/Items/Accessories/RoseStone.cs +++ b/Items/Accessories/RoseStone.cs @@ -1,6 +1,8 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -11,7 +13,10 @@ namespace CalamityMod.Items.Accessories { public new string LocalizationCategory => "Items.Accessories"; public static int ElementalDamage = 60; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 20; diff --git a/Items/Accessories/RottenBrain.cs b/Items/Accessories/RottenBrain.cs index a7524744d6..e028ee7cd1 100644 --- a/Items/Accessories/RottenBrain.cs +++ b/Items/Accessories/RottenBrain.cs @@ -1,4 +1,6 @@ -using CalamityMod.CalPlayer; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -10,7 +12,10 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public static int NimbusDamage => CalamityUtils.ScaleWithDifficulty(8); - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 34; diff --git a/Items/Accessories/SeaSpiritAmulet.cs b/Items/Accessories/SeaSpiritAmulet.cs index 53b7568177..5fa568e2e5 100644 --- a/Items/Accessories/SeaSpiritAmulet.cs +++ b/Items/Accessories/SeaSpiritAmulet.cs @@ -1,4 +1,6 @@ -using CalamityMod.CalPlayer; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -10,6 +12,10 @@ namespace CalamityMod.Items.Accessories public class SeaSpiritAmulet : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 26; diff --git a/Items/Accessories/StarTaintedGenerator.cs b/Items/Accessories/StarTaintedGenerator.cs index 994e56cdfc..4f5c8840cf 100644 --- a/Items/Accessories/StarTaintedGenerator.cs +++ b/Items/Accessories/StarTaintedGenerator.cs @@ -1,6 +1,8 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.GameContent; @@ -12,6 +14,10 @@ namespace CalamityMod.Items.Accessories public class StarTaintedGenerator : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 38; diff --git a/Items/Accessories/StarbusterCore.cs b/Items/Accessories/StarbusterCore.cs index be1707868b..481ddf97f9 100644 --- a/Items/Accessories/StarbusterCore.cs +++ b/Items/Accessories/StarbusterCore.cs @@ -1,4 +1,6 @@ -using Terraria; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Systems.Collections; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -7,6 +9,10 @@ namespace CalamityMod.Items.Accessories public class StarbusterCore : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 28; diff --git a/Items/Accessories/TheAmalgam.cs b/Items/Accessories/TheAmalgam.cs index 981577f498..bc4d57d665 100644 --- a/Items/Accessories/TheAmalgam.cs +++ b/Items/Accessories/TheAmalgam.cs @@ -1,6 +1,8 @@ -using CalamityMod.CalPlayer; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; using Terraria.DataStructures; @@ -21,6 +23,7 @@ namespace CalamityMod.Items.Accessories { Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(9, 6)); ItemID.Sets.AnimatesAsSoul[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), BuffID.Electrified, BuffID.Frostburn2]; } public override void SetDefaults() diff --git a/Items/Accessories/VeneratedLocket.cs b/Items/Accessories/VeneratedLocket.cs index 0f8e1ef708..f2c7a03baa 100644 --- a/Items/Accessories/VeneratedLocket.cs +++ b/Items/Accessories/VeneratedLocket.cs @@ -1,4 +1,6 @@ -using CalamityMod.Rarities; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ModLoader; @@ -7,6 +9,10 @@ namespace CalamityMod.Items.Accessories public class VeneratedLocket : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 50; diff --git a/Items/Accessories/VoidofCalamity.cs b/Items/Accessories/VoidofCalamity.cs index 17965e2300..4de3c063c4 100644 --- a/Items/Accessories/VoidofCalamity.cs +++ b/Items/Accessories/VoidofCalamity.cs @@ -1,5 +1,7 @@ -using CalamityMod.CalPlayer; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Typeless; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -12,6 +14,10 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public static int BrimstoneFlamesDmg => CalamityUtils.ScaleWithDifficulty(15); + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 20; diff --git a/Items/Weapons/Summon/TacticalPlagueEngine.cs b/Items/Weapons/Summon/TacticalPlagueEngine.cs index 2422b1f901..eac44d1874 100644 --- a/Items/Weapons/Summon/TacticalPlagueEngine.cs +++ b/Items/Weapons/Summon/TacticalPlagueEngine.cs @@ -14,11 +14,7 @@ namespace CalamityMod.Items.Weapons.Summon { public new string LocalizationCategory => "Items.Weapons.Summon"; public const int BulletShootRate = 125; - public override void SetStaticDefaults() - { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; - } - + public override void SetDefaults() { Item.width = 28; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 98e8cdbd16..057ad5315d 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -233,7 +233,7 @@ AsgardianAegis: { ''' {$Common.KnockbackImmunity} Allows the ability to ram dash, empowered by a cosmic inferno - This dash can ram through enemies without taking damage, inflicting [cbuff:CalamityMod/GodSlayerInferno] + This dash can ram through enemies without taking damage ''' } @@ -325,8 +325,8 @@ BloodPact: { Tooltip: ''' Increases max HP by 25% - Grants immunity to Bleeding, Burning Blood and Heavy Bleeding - Healing Potions are 33% more effective +Healing Potions are 33% more effective + Grants immunity to [cbuffplr:Bleeding], [cbuffplr:CalamityMod/BurningBlood] and [cbuffplr:CalamityMod/HeavyBleeding] ''' } @@ -390,12 +390,12 @@ ChaliceOfTheBloodGod: { Tooltip: ''' Increases max HP by 25% - Grants immunity to Bleeding, Burning Blood, Heavy Bleeding and Laceration +2 HP/s life regen and reduces the cooldown of healing potions by 25% Taking more than 5 damage converts the hit into a damage over time bleed effect This bleeding does not interfere with life regeneration Drinking a healing potion removes some of the remaining bleed, up to 50% of its heal value Unequipping this accessory while bleeding inflicts the remaining damage instantly +Grants immunity to [cbuffplr:Bleeding], [cbuffplr:CalamityMod/BurningBlood], [cbuffplr:CalamityMod/HeavyBleeding] and [cbuffplr:CalamityMod/Laceration] 'All that for a drop of blood...' ''' } @@ -705,7 +705,7 @@ ElysianAegis: { ''' {$Common.KnockbackImmunity} Allows the ability to dash, empowered by holy fire - This dash can ram through enemies without taking damage, inflicting [cbuff:CalamityMod/HolyFlames] + This dash can ram through enemies without taking damage 'Blessed by the Profaned Flame' ''' } @@ -833,7 +833,7 @@ FrostBarrier: { Tooltip: ''' You will freeze nearby enemies when you are struck - Grants immunity to Chilled and Frostburn + Grants immunity to [cbuffplr:Chilled] and [cbuffplr:Frostburn] ''' } @@ -842,10 +842,9 @@ FrostFlare: { Tooltip: ''' All attacks and projectiles inflict [cbuff:Frostburn2] - Grants immunity to Frostburn, Chilled and Frozen Being above {0}% life grants {1}% increased damage Being below {0}% life grants {2} defense and {3}% increased max movement speed and acceleration - Grants resistance against cold attacks + Grants resistance against cold attacks, [cbuffplr:Frostburn], [cbuffplr:Chilled] and [cbuffplr:Frozen] ''' } @@ -1073,7 +1072,7 @@ JellyChargedBattery: { Tooltip: ''' Increases your max number of minions by 1, and summon damage by 7% - Minion attacks create orbs of [cbuff:CalamityMod/StaticDischarge] + Minion attacks create charged orbs ''' } @@ -1096,7 +1095,7 @@ LeviathanAmbergris: { Tooltip: ''' 100% increased initial dash velocity, 33% faster dash cooldown, and greatly increased dash deceleration - Your dashes are empowered by water, knocking back and damaging enemies with vicious currents that inflict [cbuff:CalamityMod/RiptideDebuff] + Your dashes are empowered by water, knocking back and damaging enemies with vicious currents Visual effects are reduced if visibility is disabled ''' } @@ -1296,7 +1295,7 @@ OrnateShield: { Tooltip: ''' Allows the ability to dash - This dash can ram through enemies without taking damage, inflicting [cbuff:Frostburn2] + This dash can ram through enemies without taking damage ''' } @@ -1343,7 +1342,7 @@ PlaguedFuelPack: { 8% increased rogue damage and 15% increased rogue projectile velocity Stealth generates 10% faster Press [KEY] to consume 25% of your maximum stealth to perform a swift upwards diagonal dash - This dash leaves a trail of plagued clouds + The dash leaves a lingering trail of [cbuff:CalamityMod/Plague] clouds This effect has a 1 second cooldown before it can be used again ''' } @@ -1725,7 +1724,7 @@ StarbusterCore: { Tooltip: ''' Increases your max number of minions by 1 - Summons release an [cbuff:CalamityMod/AstralInfectionDebuff] explosion on enemy hits + Summons release an astral explosion on enemy hits ''' } @@ -2087,7 +2086,7 @@ VampiricTalisman: { ''' Rogue critical strikes steal enemy life Stealth strikes grant 15% critical strike chance and increased lifesteal to non-stealth strikes for 10 seconds - Stealth strikes inflict [cbuff:CalamityMod/HeavyBleeding] and [cbuff:CalamityMod/ArmorCrunch], and deal 8% more damage + Stealth strikes inflict [cbuff:CalamityMod/HeavyBleeding], [cbuff:CalamityMod/ArmorCrunch] and deal 8% more damage 'Possessing the talisman makes you yearn for blood' ''' YearningForBlood: THIS ENDLESS HUNGER WON'T END diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index 62d41121e6..2f3f131954 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -782,7 +782,7 @@ TacticalPlagueEngine: { DisplayName: Tactical Plague Engine Tooltip: ''' - Summons a plague jet to pummel your enemies into submission + Summons a [cbuff:CalamityMod/Plague] jet to pummel your enemies into submission Jets will fire bullets from your inventory Sometimes shoots a missile instead of a bullet 50% chance to save ammo From fe4199f272ab12819eec0b1591564b2077f4a084 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Thu, 4 Jun 2026 18:07:17 -0700 Subject: [PATCH 17/26] Typeless --- Items/Weapons/Typeless/ClaretCannon.cs | 6 ++++++ .../en-US/Mods.CalamityMod.Items.Weapons.Typeless.hjson | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Typeless/ClaretCannon.cs b/Items/Weapons/Typeless/ClaretCannon.cs index f3c630c63e..3d8b5fee1c 100644 --- a/Items/Weapons/Typeless/ClaretCannon.cs +++ b/Items/Weapons/Typeless/ClaretCannon.cs @@ -1,8 +1,10 @@ using System; using System.Reflection; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Typeless; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -34,6 +36,10 @@ namespace CalamityMod.Items.Weapons.Typeless public int CooldownMax => 600; public float baseUseDir = 0; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.BetsysCurse]; + } public override void SetDefaults() { Item.width = 48; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Typeless.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Typeless.hjson index 6f25f07e11..e2748e631c 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Typeless.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Typeless.hjson @@ -13,7 +13,7 @@ ClaretCannon: { ''' Fires a hypercondensed claret round The round explodes upon striking an enemy and releases blood orbs - The explosion shreds enemies, inflicting [cbuff:CalamityMod/Laceration] and dramatically reducing their defense + The explosion shreds enemies, dramatically reducing their defense Picking up the blood orbs will reduce [cbuffplr:PotionSickness] when possible If you do not have [cbuffplr:PotionSickness], your natural regeneration will be enhanced Can only fire once every 10 seconds @@ -31,7 +31,7 @@ EyeofMagnus: { Tooltip: ''' Fires seeking cosmic masses that restore health and mana on hit - Explodes into a nebula cloud which reduces enemy protection + Explodes into a nebula cloud that cause enemies to become [cbuff:CalamityMod/MarkedforDeath] {$Common.AverageDamageInfo} ''' } @@ -40,7 +40,7 @@ LunicEye: { DisplayName: Lunic Eye Tooltip: ''' - Fires seeking energy bolts that reduce enemy protection + Fires seeking energy bolts that cause enemies to become [cbuff:CalamityMod/MarkedforDeath] {$Common.AverageDamageInfo} ''' } From aadd09532a3845af16e860b6d05b210f35a54af5 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Thu, 4 Jun 2026 18:49:02 -0700 Subject: [PATCH 18/26] Cleanup --- Buffs/DamageOverTime/Laceration.cs | 1 + Items/Weapons/Magic/FrigidflashBolt.cs | 1 + Items/Weapons/Magic/VitriolicViper.cs | 4 ++-- Items/Weapons/Melee/AnarchyBlade.cs | 6 +++++- Items/Weapons/Melee/Bonebreaker.cs | 10 ++++++++-- Items/Weapons/Melee/Brimlash.cs | 5 +++++ Items/Weapons/Melee/Carnage.cs | 5 +++++ Items/Weapons/Melee/CelestialClaymore.cs | 8 +++++++- Items/Weapons/Melee/DevilsDevastation.cs | 8 +++++++- Items/Weapons/Melee/EarthenPike.cs | 5 ++++- Items/Weapons/Melee/ExaltedOathblade.cs | 8 +++++++- Items/Weapons/Melee/FlarefrostBlade.cs | 6 +++++- Items/Weapons/Melee/ForbiddenOathblade.cs | 8 +++++++- Items/Weapons/Melee/Greentide.cs | 2 +- Items/Weapons/Melee/SpineOfThanatos.cs | 8 +++++++- Items/Weapons/Ranged/Buzzkill.cs | 5 ++++- Items/Weapons/Ranged/CorrodedCaustibow.cs | 8 +++++++- Items/Weapons/Ranged/Shardshocker.cs | 5 +++++ Items/Weapons/Ranged/SurgeDriver.cs | 5 ++++- Items/Weapons/Ranged/ThermoclineBlaster.cs | 5 +++++ Items/Weapons/Ranged/Voidragon.cs | 5 +++++ ...Mods.CalamityMod.Items.Weapons.Magic.hjson | 7 ++++--- ...Mods.CalamityMod.Items.Weapons.Melee.hjson | 20 +++++++++---------- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 14 ++++++------- ...Mods.CalamityMod.Items.Weapons.Rogue.hjson | 2 +- ...ods.CalamityMod.Items.Weapons.Summon.hjson | 2 +- 26 files changed, 124 insertions(+), 39 deletions(-) diff --git a/Buffs/DamageOverTime/Laceration.cs b/Buffs/DamageOverTime/Laceration.cs index 021829ed16..38f970335a 100644 --- a/Buffs/DamageOverTime/Laceration.cs +++ b/Buffs/DamageOverTime/Laceration.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Buffs.DamageOverTime Main.buffNoSave[Type] = true; BuffID.Sets.LongerExpertDebuff[Type] = true; CalamityBuffSets.DebuffDataset[Type] = debuffData; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void Update(Player player, ref int buffIndex) diff --git a/Items/Weapons/Magic/FrigidflashBolt.cs b/Items/Weapons/Magic/FrigidflashBolt.cs index 65e04f2664..fa86b5a89f 100644 --- a/Items/Weapons/Magic/FrigidflashBolt.cs +++ b/Items/Weapons/Magic/FrigidflashBolt.cs @@ -20,6 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3, BuffID.Frostburn2]; } public override void SetDefaults() { diff --git a/Items/Weapons/Magic/VitriolicViper.cs b/Items/Weapons/Magic/VitriolicViper.cs index 72460cdb93..16df593876 100644 --- a/Items/Weapons/Magic/VitriolicViper.cs +++ b/Items/Weapons/Magic/VitriolicViper.cs @@ -1,5 +1,5 @@ using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; using CalamityMod.Systems.Collections; @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic public new string LocalizationCategory => "Items.Weapons.Magic"; public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType()]; } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/AnarchyBlade.cs b/Items/Weapons/Melee/AnarchyBlade.cs index 93f04e9e1d..e3c51d2339 100644 --- a/Items/Weapons/Melee/AnarchyBlade.cs +++ b/Items/Weapons/Melee/AnarchyBlade.cs @@ -4,6 +4,7 @@ using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.NPCs; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -14,7 +15,10 @@ namespace CalamityMod.Items.Weapons.Melee public class AnarchyBlade : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 114; diff --git a/Items/Weapons/Melee/Bonebreaker.cs b/Items/Weapons/Melee/Bonebreaker.cs index a84839d1e6..c193ac8313 100644 --- a/Items/Weapons/Melee/Bonebreaker.cs +++ b/Items/Weapons/Melee/Bonebreaker.cs @@ -1,5 +1,8 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Terraria.ID; using Terraria.ModLoader; @@ -9,7 +12,10 @@ namespace CalamityMod.Items.Weapons.Melee { public new string LocalizationCategory => "Items.Weapons.Melee"; public const int BaseDamage = 55; - + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType(), BuffID.Venom]; + } public override void SetDefaults() { Item.width = 32; diff --git a/Items/Weapons/Melee/Brimlash.cs b/Items/Weapons/Melee/Brimlash.cs index 39a841fea3..f8cb726434 100644 --- a/Items/Weapons/Melee/Brimlash.cs +++ b/Items/Weapons/Melee/Brimlash.cs @@ -2,6 +2,7 @@ using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -12,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Melee public class Brimlash : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = Item.height = 72; diff --git a/Items/Weapons/Melee/Carnage.cs b/Items/Weapons/Melee/Carnage.cs index 97b34b6923..de9c9830d0 100644 --- a/Items/Weapons/Melee/Carnage.cs +++ b/Items/Weapons/Melee/Carnage.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -11,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Melee public class Carnage : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 50; diff --git a/Items/Weapons/Melee/CelestialClaymore.cs b/Items/Weapons/Melee/CelestialClaymore.cs index 8a7863cb4e..7e4397dfc8 100644 --- a/Items/Weapons/Melee/CelestialClaymore.cs +++ b/Items/Weapons/Melee/CelestialClaymore.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Melee; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -10,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Melee public class CelestialClaymore : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3, BuffID.Frostburn2, BuffID.Ichor]; + } public override void SetDefaults() { Item.width = 80; diff --git a/Items/Weapons/Melee/DevilsDevastation.cs b/Items/Weapons/Melee/DevilsDevastation.cs index 5dc6a6ce9f..76da84fb72 100644 --- a/Items/Weapons/Melee/DevilsDevastation.cs +++ b/Items/Weapons/Melee/DevilsDevastation.cs @@ -1,9 +1,11 @@ -using CalamityMod.Cooldowns; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Cooldowns; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Particles; using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; @@ -18,6 +20,10 @@ namespace CalamityMod.Items.Weapons.Melee { public new string LocalizationCategory => "Items.Weapons.Melee"; public int throwCount = 0; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 118; diff --git a/Items/Weapons/Melee/EarthenPike.cs b/Items/Weapons/Melee/EarthenPike.cs index 7db0bd93f5..a9438cd2bf 100644 --- a/Items/Weapons/Melee/EarthenPike.cs +++ b/Items/Weapons/Melee/EarthenPike.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Melee.Spears; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Projectiles.Melee.Spears; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -11,6 +13,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { ItemID.Sets.Spears[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Melee/ExaltedOathblade.cs b/Items/Weapons/Melee/ExaltedOathblade.cs index 7b24615dc9..101b4ff14d 100644 --- a/Items/Weapons/Melee/ExaltedOathblade.cs +++ b/Items/Weapons/Melee/ExaltedOathblade.cs @@ -1,8 +1,10 @@ -using CalamityMod.Cooldowns; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Cooldowns; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Particles; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -17,6 +19,10 @@ namespace CalamityMod.Items.Weapons.Melee { public new string LocalizationCategory => "Items.Weapons.Melee"; public int throwCount = 0; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 88; diff --git a/Items/Weapons/Melee/FlarefrostBlade.cs b/Items/Weapons/Melee/FlarefrostBlade.cs index 0adee506f4..259086b8b5 100644 --- a/Items/Weapons/Melee/FlarefrostBlade.cs +++ b/Items/Weapons/Melee/FlarefrostBlade.cs @@ -1,4 +1,4 @@ - +using CalamityMod.Systems.Collections; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; @@ -11,6 +11,10 @@ namespace CalamityMod.Items.Weapons.Melee public class FlarefrostBlade : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3, BuffID.Frostburn2]; + } public override void SetDefaults() { Item.width = 64; diff --git a/Items/Weapons/Melee/ForbiddenOathblade.cs b/Items/Weapons/Melee/ForbiddenOathblade.cs index 1f474602f8..c98f63055c 100644 --- a/Items/Weapons/Melee/ForbiddenOathblade.cs +++ b/Items/Weapons/Melee/ForbiddenOathblade.cs @@ -1,8 +1,10 @@ -using CalamityMod.Cooldowns; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Cooldowns; using CalamityMod.Dusts; using CalamityMod.Items.Materials; using CalamityMod.Particles; using CalamityMod.Projectiles.Melee; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -16,6 +18,10 @@ namespace CalamityMod.Items.Weapons.Melee { public new string LocalizationCategory => "Items.Weapons.Melee"; public int throwCount = 0; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 74; diff --git a/Items/Weapons/Melee/Greentide.cs b/Items/Weapons/Melee/Greentide.cs index 3adb4e0ac9..61afff3b57 100644 --- a/Items/Weapons/Melee/Greentide.cs +++ b/Items/Weapons/Melee/Greentide.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee internal const int TotalTeeth = 3; public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.Wet]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.Wet, ModContent.BuffType()]; } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/SpineOfThanatos.cs b/Items/Weapons/Melee/SpineOfThanatos.cs index f5c2304a8f..32b3d232f3 100644 --- a/Items/Weapons/Melee/SpineOfThanatos.cs +++ b/Items/Weapons/Melee/SpineOfThanatos.cs @@ -1,6 +1,8 @@ -using CalamityMod.Projectiles.Melee; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Melee; using CalamityMod.Rarities; using Microsoft.Xna.Framework; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Melee public class SpineOfThanatos : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = Item.height = 28; diff --git a/Items/Weapons/Ranged/Buzzkill.cs b/Items/Weapons/Ranged/Buzzkill.cs index 0bf1b87ca8..604ab4aedb 100644 --- a/Items/Weapons/Ranged/Buzzkill.cs +++ b/Items/Weapons/Ranged/Buzzkill.cs @@ -1,4 +1,6 @@ -using CalamityMod.Projectiles.Ranged; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -15,6 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { ItemID.Sets.IsRangedSpecialistWeapon[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Ranged/CorrodedCaustibow.cs b/Items/Weapons/Ranged/CorrodedCaustibow.cs index 8bc2e73088..a39022687c 100644 --- a/Items/Weapons/Ranged/CorrodedCaustibow.cs +++ b/Items/Weapons/Ranged/CorrodedCaustibow.cs @@ -1,5 +1,7 @@ -using CalamityMod.Items.Materials; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +13,10 @@ namespace CalamityMod.Items.Weapons.Ranged public class CorrodedCaustibow : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 30; diff --git a/Items/Weapons/Ranged/Shardshocker.cs b/Items/Weapons/Ranged/Shardshocker.cs index c16a177347..83f43f1548 100644 --- a/Items/Weapons/Ranged/Shardshocker.cs +++ b/Items/Weapons/Ranged/Shardshocker.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.SunkenSea; using CalamityMod.NPCs.SunkenSea; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -16,6 +17,10 @@ namespace CalamityMod.Items.Weapons.Ranged { public new string LocalizationCategory => "Items.Weapons.Ranged"; public static readonly SoundStyle ShootAndReloadSound = new("CalamityMod/Sounds/Item/WulfrumBlunderbussFireAndReload") { PitchVariance = 0.25f }; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Electrified]; + } public override void SetDefaults() { Item.width = 86; diff --git a/Items/Weapons/Ranged/SurgeDriver.cs b/Items/Weapons/Ranged/SurgeDriver.cs index 95bb662349..1d4b1b3fc4 100644 --- a/Items/Weapons/Ranged/SurgeDriver.cs +++ b/Items/Weapons/Ranged/SurgeDriver.cs @@ -1,6 +1,8 @@ -using CalamityMod.Projectiles; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Projectiles; using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -15,6 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Ranged/ThermoclineBlaster.cs b/Items/Weapons/Ranged/ThermoclineBlaster.cs index d13b3ae62f..bddee23c01 100644 --- a/Items/Weapons/Ranged/ThermoclineBlaster.cs +++ b/Items/Weapons/Ranged/ThermoclineBlaster.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Particles; using CalamityMod.Projectiles; +using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -15,6 +16,10 @@ namespace CalamityMod.Items.Weapons.Ranged { public new string LocalizationCategory => "Items.Weapons.Ranged"; public bool swapType = false; + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3, BuffID.Frostburn2]; + } public override void SetDefaults() { Item.width = 60; diff --git a/Items/Weapons/Ranged/Voidragon.cs b/Items/Weapons/Ranged/Voidragon.cs index 91a841c1c4..06d88ad8c8 100644 --- a/Items/Weapons/Ranged/Voidragon.cs +++ b/Items/Weapons/Ranged/Voidragon.cs @@ -1,4 +1,5 @@ using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; @@ -21,6 +22,10 @@ namespace CalamityMod.Items.Weapons.Ranged public int sharkGunDamageScaling = 0; public static int AmmoSavedPercent = 66; public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); + public override void SetStaticDefaults() + { + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType()]; + } public override void SetDefaults() { Item.width = 96; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index 293c4fe3bb..aec3fc94d9 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -333,7 +333,6 @@ FrigidflashBolt: { Casts a fast ball of flash-freezing magma that bounces off tiles When hitting a tile, a flarefrost burst is produced Press to cast an empowered ball that creates a collapsing flarefrost vortex which explodes - Inflicts both [cbuff:OnFire3] and [cbuff:Frostburn2] ''' } @@ -843,6 +842,7 @@ SubsumingVortex: { When enemies are near the vortex, it sends multiple fast-moving smaller vortices towards them Releasing fires the vortex towards the mouse if enough time has passed Damage scales based on how long the vortex was held out + Struck enemies are completely consumed by [cbuff:CalamityMod/MiracleBlight] ''' } @@ -1017,7 +1017,7 @@ VitriolicViper: { DisplayName: Vitriolic Viper Tooltip: ''' - Charges up and fires a slithering [cbuff:CalamityMod/Irradiated] beam + Charges up and fires a slithering beam of radiation If fully charged, instead fires a huge spread of short range fangs ''' } @@ -1028,6 +1028,7 @@ VividClarity: { ''' Fires five randomized rays of exo-energy towards the cursor Enemy and tile hits either cause a big flash explosion, an additional laser from the sky, or split into energy orbs + Struck enemies are liquified by [cbuff:CalamityMod/MiracleBlight] 'Its majesty inspires a stroke of unparalleled genius' ''' } @@ -1099,6 +1100,6 @@ YharimsCrystal: { DisplayName: Yharim's Crystal GFBName: yermes christal Tooltip: "[GFB]" - TooltipNormal: Fires draconic beams of total annihilation + TooltipNormal: Fires [cbuff:CalamityMod/Dragonfire] beams of total annihilation TooltipGFB: ...throughs a pice of dnimite } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index c578a7d302..70847be4f7 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -55,7 +55,7 @@ AnarchyBlade: { Tooltip: ''' The lower your life the more damage this blade does - Your hits will generate a large explosion of [cbuff:CalamityMod/BrimstoneFlames] + Your hits will generate a large explosion While below 50% life your hits have a chance to instantly kill regular enemies ''' } @@ -145,7 +145,7 @@ BalefulHarvester: { Tooltip: ''' A flaming scythe which is rapidly swung around three times in succession - Enemy hits summon [cbuff:OnFire3] skulls that split into homing fire orbs + Enemy hits summon flaming skulls that split into homing fire orbs ''' } @@ -194,7 +194,7 @@ Bonebreaker: { Tooltip: ''' Fires javelins that stick to enemies before bursting into shrapnel - Stuck javelins cause [cbuff:CalamityMod/HeavyBleeding], [cbuff:Venom], and [cbuff:CalamityMod/ArmorCrunch] + Stuck javelins inflict several debuffs ''' } @@ -210,7 +210,7 @@ Brimlance: { Brimlash: { DisplayName: Brimlash - Tooltip: Fires a bolt of [cbuff:CalamityMod/BrimstoneFlames] that explodes into more bolts on hit + Tooltip: Fires a brimstone bolt that explodes into more bolts on hit } BrimstoneSword: { @@ -265,12 +265,12 @@ BurntSienna: { Carnage: { DisplayName: Carnage - Tooltip: Causes [cbuff:CalamityMod/HeavyBleeding] and enemies explode into homing blood on death + Tooltip: Enemies explode into homing blood on death } CelestialClaymore: { DisplayName: Celestial Claymore - Tooltip: Spawns cosmic energy stars near the cursor that inflict [cbuff:Frostburn2], [cbuff:OnFire3], or [cbuff:Ichor] + Tooltip: Spawns cosmic energy stars near the cursor } ClamCrusher: { @@ -430,7 +430,6 @@ EarthenPike: { Tooltip: ''' Sprays fossil shards on swing - Inflicts [cbuff:CalamityMod/ArmorCrunch] on enemies ''' } @@ -502,6 +501,7 @@ Exoblade: { Enemy hits from the blade during the dash result in massive damage and a rebound Press immediately after a rebound to perform a powerful slash Powerful slashes are larger, heal you, and create a large explosion + Struck enemies are torn apart by [cbuff:CalamityMod/MiracleBlight] ''' } @@ -533,7 +533,6 @@ FlarefrostBlade: { Tooltip: ''' Fires a homing flarefrost orb - Inflicts both [cbuff:OnFire3] and [cbuff:Frostburn2] ''' } @@ -709,7 +708,7 @@ Greentide: { Tooltip: ''' Launches a spread of four teeth with one stronger piercing tooth in the center - Hitting with the blade creates two jaws of teeth to chomp on the enemy closest to your cursor, causing [cbuff:CalamityMod/HeavyBleeding] + Hitting with the blade creates two jaws of teeth to chomp on the enemy closest to your cursor ''' } @@ -778,7 +777,7 @@ Lacerator: { Tooltip: ''' {$Common.YoyoStatsInfinite} - Striking enemies conjures a bloody saw to shred them, inflicting [cbuff:CalamityMod/Laceration] + Striking enemies conjures a bloody saw to shred them The saw does more damage the more often the yoyo hits, and fades away when not striking enemies Enemies touching the edge of the sawblade get blood orbs torn out of them Picking up these blood orbs reduces the duration of [cbuffplr:PotionSickness] @@ -1191,7 +1190,6 @@ SpineOfThanatos: { Releases 3 fast metallic whips outward Once all three collide, a prism of light is shot outward If an enemy is within the line of sight of the whips on collision, the light will fire towards it - Enemies bathed in light are annihilated by [cbuff:CalamityMod/MiracleBlight] ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index c503fe3dc1..4fe3213b92 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -236,7 +236,7 @@ Buzzkill: { Tooltip: ''' Hold to rev up a buzzsaw that deals close-range damage - Release to fire the buzzsaw, which bounces off tiles and causes [cbuff:CalamityMod/HeavyBleeding] in foes + Release to fire the buzzsaw, which bounces off tiles and shreds foes Revving up the saws increases their damage and allows them to pierce more enemies 'Not to be confused with the Sawed-On Shotgun' ''' @@ -331,7 +331,7 @@ CorinthPrime: { CorrodedCaustibow: { DisplayName: Corroded Caustibow - Tooltip: Converts wooden arrows into slow, powerful shells that trail an [cbuff:CalamityMod/Irradiated] aura + Tooltip: Converts wooden arrows into slow, powerful shells that trail an irradiated aura } CrackshotColt: { @@ -568,7 +568,7 @@ HeavenlyGale: { Fires a rapid stream of supercharged exo-crystals Holding the bow and waiting for some time before firing causes the crystals to become more powerful If the crystals are sufficiently powerful enough they will summon torrents of exo-lightning above whatever target they hit - Exo-lightning disintegrates hit enemies with [cbuff:CalamityMod/MiracleBlight] + Enemies struck with Exo-lightning are atomized by [cbuff:CalamityMod/MiracleBlight] ''' } @@ -647,7 +647,7 @@ Leviatitan: { Tooltip: ''' Fires high velocity aqua blasts - Releases homing aberrations that shred enemy defense every six shots + Releases homing aberrations that shred enemy defense every six shots to vomit a meteor that explodes on hit 'The L in LMG stands for Leviathan' ''' @@ -1123,7 +1123,7 @@ Shardshocker: { ''' Fires an electrically charged crystal that travels a short distance before stopping The crystal will hang in the air and occasionally give off damaging pulses of electricity - Hitting a stopped crystal with a moving one will detonate both in a massive [cbuff:Electrified] explosion that lets off homing shards + Hitting a stopped crystal with a moving one will detonate both in a massive explosion that lets off homing shards Direct hits with the crystal will create a smaller explosion and inflict [cbuff:CalamityMod/GalvanicCorrosion] 'Plasmaaaaaa!' ''' @@ -1315,7 +1315,7 @@ SurgeDriver: { DisplayName: Surge Driver Tooltip: ''' - Press to release a ray of [cbuff:CalamityMod/MiracleBlight] that explodes on collision + Press to release a laser ray that explodes on collision Press to release a barrage of laser beams that release homing energy on enemy hits ''' } @@ -1396,7 +1396,7 @@ ThermoclineBlaster: { DisplayName: Thermocline Blaster Tooltip: ''' - Alternates between firing bullets imbued with [cbuff:OnFire3] and [cbuff:Frostburn2] + Alternates between firing bullets imbued with fire and ice Any bullet type can be imbued when fired from this gun ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index 447103b91a..60bb4cdb58 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -129,7 +129,7 @@ Celestus: { ''' Throws a high-velocity scythe that splits into multiple phantom scythes on enemy hits Stealth strikes reverse direction and home in on enemies after returning to the player - Struck enemies are atomized by [cbuff:CalamityMod/MiracleBlight] + Struck enemies are decimated by [cbuff:CalamityMod/MiracleBlight] ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index 2f3f131954..9a1cc57c9d 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -211,7 +211,7 @@ CosmicImmaterializer: { ''' Summons a cosmic energy spiral to fight for you The spiral will fire swarms of homing energy bolts when enemies are detected by it - Struck enemies are cleasned by [cbuff:CalamityMod/MiracleBlight] + Struck enemies are cleansed by [cbuff:CalamityMod/MiracleBlight] There can only be one energy spiral ''' } From ce924936f995a0490c425b96001aa572e602c934 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Thu, 4 Jun 2026 18:59:40 -0700 Subject: [PATCH 19/26] Some didn't get auto added Collections --- Items/Weapons/Magic/FrigidflashBolt.cs | 1 + Items/Weapons/Rogue/CorpusAvertor.cs | 1 + Items/Weapons/Rogue/ReboundingRainbow.cs | 1 + Items/Weapons/Rogue/TotalityBreakers.cs | 3 ++- Items/Weapons/Rogue/Valediction.cs | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Items/Weapons/Magic/FrigidflashBolt.cs b/Items/Weapons/Magic/FrigidflashBolt.cs index fa86b5a89f..f7384db5a9 100644 --- a/Items/Weapons/Magic/FrigidflashBolt.cs +++ b/Items/Weapons/Magic/FrigidflashBolt.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using Microsoft.Xna.Framework; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.Audio; using Terraria.DataStructures; diff --git a/Items/Weapons/Rogue/CorpusAvertor.cs b/Items/Weapons/Rogue/CorpusAvertor.cs index 685cd9e971..034cfbc95a 100644 --- a/Items/Weapons/Rogue/CorpusAvertor.cs +++ b/Items/Weapons/Rogue/CorpusAvertor.cs @@ -2,6 +2,7 @@ using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; +using CalamityMod.Systems.Collections; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Weapons/Rogue/ReboundingRainbow.cs b/Items/Weapons/Rogue/ReboundingRainbow.cs index 2e9f8848b8..080025e3b5 100644 --- a/Items/Weapons/Rogue/ReboundingRainbow.cs +++ b/Items/Weapons/Rogue/ReboundingRainbow.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; +using CalamityMod.Systems.Collections; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Weapons/Rogue/TotalityBreakers.cs b/Items/Weapons/Rogue/TotalityBreakers.cs index adc2d4182d..692f2d0996 100644 --- a/Items/Weapons/Rogue/TotalityBreakers.cs +++ b/Items/Weapons/Rogue/TotalityBreakers.cs @@ -2,6 +2,7 @@ using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; +using CalamityMod.Systems.Collections; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -12,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Rogue { public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire2]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3]; } public override void SetDefaults() { diff --git a/Items/Weapons/Rogue/Valediction.cs b/Items/Weapons/Rogue/Valediction.cs index 96976bdea6..e5cb7c318d 100644 --- a/Items/Weapons/Rogue/Valediction.cs +++ b/Items/Weapons/Rogue/Valediction.cs @@ -2,6 +2,7 @@ using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; using Microsoft.Xna.Framework; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.DataStructures; using Terraria.ID; From cbcc3e8d77757732868b4353a102dffef3f27a81 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Thu, 4 Jun 2026 19:09:20 -0700 Subject: [PATCH 20/26] Debuff Tooltips are now named lists --- Systems/Collections/CalamityItemSets.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Systems/Collections/CalamityItemSets.cs b/Systems/Collections/CalamityItemSets.cs index 2ed2d37815..1b0ed021d5 100644 --- a/Systems/Collections/CalamityItemSets.cs +++ b/Systems/Collections/CalamityItemSets.cs @@ -134,17 +134,22 @@ namespace CalamityMod.Systems.Collections /// Currently unused, and exists as an objective classification for the sake of the Wiki.
/// Defaults to . /// - public static bool[] RogueSpikyBall = Factory.CreateBoolSet(ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), - ItemType()); + public static bool[] RogueSpikyBall = Factory.CreateNamedSet("RogueSpikyBall") + .Description("Labels this item as a rogue spiky ball, only exists for objective classification.") + .RegisterBoolSet(ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType()); /// /// Force display expandable tooltip debuff info for infliction on an enemy /// - public static List[] ExtraDebuffTooltip_Enemy = Factory.CreateCustomSet>(new()); + public static List[] ExtraDebuffTooltip_Enemy = Factory.CreateNamedSet("EnemyDebuffTooltip") + .Description("Force display expandable tooltip debuff info for infliction on an enemy") + .RegisterCustomSet>(new()); /// /// Force display expandable tooltip debuff info for infliction on a player /// - public static List[] ExtraDebuffTooltip_Player = Factory.CreateCustomSet>(new()); + public static List[] ExtraDebuffTooltip_Player = Factory.CreateNamedSet("PlayerDebuffTooltip") + .Description("Force display expandable tooltip debuff info for infliction on a player") + .RegisterCustomSet>(new()); } } From c5d05f582ded4f7cf182e9026db5829342bbc893 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sat, 6 Jun 2026 12:22:53 -0400 Subject: [PATCH 21/26] Update CalamityItemSets.cs --- Systems/Collections/CalamityItemSets.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Systems/Collections/CalamityItemSets.cs b/Systems/Collections/CalamityItemSets.cs index f53ae3e046..99c3635c87 100644 --- a/Systems/Collections/CalamityItemSets.cs +++ b/Systems/Collections/CalamityItemSets.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using CalamityMod.Items.Accessories; -using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.Fishing; using CalamityMod.Items.Fishing.FishingRods; using CalamityMod.Items.Placeables; From 2780c75a72f924617a56e22d207738516266f163 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sat, 6 Jun 2026 12:29:29 -0400 Subject: [PATCH 22/26] More detailed descriptions for item sets --- Systems/Collections/CalamityItemSets.cs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Systems/Collections/CalamityItemSets.cs b/Systems/Collections/CalamityItemSets.cs index 99c3635c87..806a76cab2 100644 --- a/Systems/Collections/CalamityItemSets.cs +++ b/Systems/Collections/CalamityItemSets.cs @@ -144,24 +144,28 @@ namespace CalamityMod.Systems.Collections .RegisterBoolSet(ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType()); /// - /// Force display expandable tooltip debuff info for infliction on an enemy + /// Defines a list of buff IDs to force display as an expandable tooltip with debuff info for enemy infliction on an item.
+ /// Defaults to an empty list. ///
public static List[] ExtraDebuffTooltip_Enemy = Factory.CreateNamedSet("EnemyDebuffTooltip") - .Description("Force display expandable tooltip debuff info for infliction on an enemy") + .Description("Defines buff IDs to force display as expandable tooltip with debuff info for enemy infliction.") .RegisterCustomSet>(new()); /// - /// Force display expandable tooltip debuff info for infliction on a player + /// Defines a list of buff IDs to force display as an expandable tooltip with debuff info for player infliction on an item.
+ /// Defaults to an empty list. ///
public static List[] ExtraDebuffTooltip_Player = Factory.CreateNamedSet("PlayerDebuffTooltip") - .Description("Force display expandable tooltip debuff info for infliction on a player") + .Description("Defines buff IDs to force display as expandable tooltip with debuff info for enemy infliction.") .RegisterCustomSet>(new()); /// - /// Marks that this item has Shady Salesman text and the actual tooltip should draw small below it. Does not support Vanilla items + /// Does not support vanilla items. If for an item type, this item has special "sales pitch" flavor text from the Shady Salesman.
+ /// This causes the flavor text to draw at the top of the tooltip, with the actual tooltip being drawn below and with a smaller size.
+ /// Defaults to . ///
public static bool[] HasSalesmanText = Factory.CreateNamedSet("HasSalesmanText") - .Description("Marks that this item has Shady Salesman text and the actual tooltip should draw small below it. Does not support Vanilla items") + .Description("Labels this item as having Shady Salesman flavor text, making it draw at the top of the tooltip and the actual tooltip being drawn small below it.") .RegisterBoolSet(ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType()); } From b9b11c54969c1f13698f5936462cfc8a2d4cea0b Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sat, 6 Jun 2026 12:30:14 -0400 Subject: [PATCH 23/26] Copy-paste error --- Systems/Collections/CalamityItemSets.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Systems/Collections/CalamityItemSets.cs b/Systems/Collections/CalamityItemSets.cs index 806a76cab2..17ac1ea02a 100644 --- a/Systems/Collections/CalamityItemSets.cs +++ b/Systems/Collections/CalamityItemSets.cs @@ -156,7 +156,7 @@ namespace CalamityMod.Systems.Collections /// Defaults to an empty list. /// public static List[] ExtraDebuffTooltip_Player = Factory.CreateNamedSet("PlayerDebuffTooltip") - .Description("Defines buff IDs to force display as expandable tooltip with debuff info for enemy infliction.") + .Description("Defines buff IDs to force display as expandable tooltip with debuff info for player infliction.") .RegisterCustomSet>(new()); /// From c5b070810d8f76dfe3fce505ffca11e097828110 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sat, 6 Jun 2026 14:54:21 -0400 Subject: [PATCH 24/26] Localization file formatting fixes --- .../en-US/Mods.CalamityMod.Items.Accessories.hjson | 4 ++-- .../en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson | 4 ++-- .../en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson | 12 +++--------- .../en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson | 2 +- 4 files changed, 8 insertions(+), 14 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index e10bcca382..2e093b69b4 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -330,7 +330,7 @@ BloodPact: { Tooltip: ''' Increases max HP by 25% -Healing Potions are 33% more effective + Healing Potions are 33% more effective Grants immunity to [cbuffplr:Bleeding], [cbuffplr:CalamityMod/BurningBlood] and [cbuffplr:CalamityMod/HeavyBleeding] ''' } @@ -400,7 +400,7 @@ ChaliceOfTheBloodGod: { This bleeding does not interfere with life regeneration Drinking a healing potion removes some of the remaining bleed, up to 50% of its heal value Unequipping this accessory while bleeding inflicts the remaining damage instantly -Grants immunity to [cbuffplr:Bleeding], [cbuffplr:CalamityMod/BurningBlood], [cbuffplr:CalamityMod/HeavyBleeding] and [cbuffplr:CalamityMod/Laceration] + Grants immunity to [cbuffplr:Bleeding], [cbuffplr:CalamityMod/BurningBlood], [cbuffplr:CalamityMod/HeavyBleeding] and [cbuffplr:CalamityMod/Laceration] 'All that for a drop of blood...' ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index ff1108734d..dbe76d7dae 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -843,7 +843,7 @@ SubsumingVortex: { When enemies are near the vortex, it sends multiple fast-moving smaller vortices towards them Releasing fires the vortex towards the mouse if enough time has passed Damage scales based on how long the vortex was held out - Struck enemies are completely consumed by [cbuff:CalamityMod/MiracleBlight] + Struck enemies are completely consumed by [cbuff:CalamityMod/MiracleBlight] ''' } @@ -1033,7 +1033,7 @@ VividClarity: { ''' Fires five randomized rays of exo-energy towards the cursor Enemy and tile hits either cause a big flash explosion, an additional laser from the sky, or split into energy orbs - Struck enemies are liquified by [cbuff:CalamityMod/MiracleBlight] + Struck enemies are liquified by [cbuff:CalamityMod/MiracleBlight] 'Its majesty inspires a stroke of unparalleled genius' ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index fc3088fb6d..d00c90f703 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -422,10 +422,7 @@ Earth: { EarthenPike: { DisplayName: Earthen Pike - Tooltip: - ''' - Sprays fossil shards on swing - ''' + Tooltip: Sprays fossil shards on swing } EmpyreanKnives: { @@ -496,7 +493,7 @@ Exoblade: { Enemy hits from the blade during the dash result in massive damage and a rebound Press immediately after a rebound to perform a powerful slash Powerful slashes are larger, heal you, and create a large explosion - Struck enemies are torn apart by [cbuff:CalamityMod/MiracleBlight] + Struck enemies are torn apart by [cbuff:CalamityMod/MiracleBlight] ''' } @@ -525,10 +522,7 @@ FeralthornClaymore: { FlarefrostBlade: { DisplayName: Flarefrost Blade - Tooltip: - ''' - Fires a homing flarefrost orb - ''' + Tooltip: Fires a homing flarefrost orb } Floodtide: { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index f9f36e966e..2275e01855 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -129,7 +129,7 @@ Celestus: { ''' Throws a high-velocity scythe that splits into multiple phantom scythes on enemy hits Stealth strikes reverse direction and home in on enemies after returning to the player - Struck enemies are decimated by [cbuff:CalamityMod/MiracleBlight] + Struck enemies are decimated by [cbuff:CalamityMod/MiracleBlight] ''' } From c32e72a6b3941d9f26c77456d4a7f86f505c705c Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Sat, 6 Jun 2026 12:30:20 -0700 Subject: [PATCH 25/26] Fixes --- Items/Weapons/Magic/AquamarineStaff.cs | 1 - Items/Weapons/Magic/TheSwarmer.cs | 4 ---- Items/Weapons/Magic/Viscera.cs | 2 +- Items/Weapons/Magic/Waywasher.cs | 4 ---- Items/Weapons/Melee/CosmicDischarge.cs | 2 +- Items/Weapons/Melee/PrismaticBreaker.cs | 2 +- Items/Weapons/Ranged/FlurrystormCannon.cs | 2 +- Items/Weapons/Ranged/Seadragon.cs | 2 +- Items/Weapons/Rogue/JawsOfOblivion.cs | 3 ++- Items/Weapons/Summon/CausticStaff.cs | 5 +++-- Items/Weapons/Summon/ForgottenApexWand.cs | 3 ++- Localization/en-US/Mods.CalamityMod.Buffs.hjson | 2 +- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 4 ++-- .../en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson | 2 +- .../en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson | 2 +- 15 files changed, 17 insertions(+), 23 deletions(-) diff --git a/Items/Weapons/Magic/AquamarineStaff.cs b/Items/Weapons/Magic/AquamarineStaff.cs index 2482e53279..517ed3344d 100644 --- a/Items/Weapons/Magic/AquamarineStaff.cs +++ b/Items/Weapons/Magic/AquamarineStaff.cs @@ -17,7 +17,6 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Magic/TheSwarmer.cs b/Items/Weapons/Magic/TheSwarmer.cs index 8bd2429eca..9ffee14e9a 100644 --- a/Items/Weapons/Magic/TheSwarmer.cs +++ b/Items/Weapons/Magic/TheSwarmer.cs @@ -10,10 +10,6 @@ namespace CalamityMod.Items.Weapons.Magic public class TheSwarmer : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; - public override void SetStaticDefaults() - { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Venom, BuffID.Poisoned]; - } public override void SetDefaults() { Item.width = 60; diff --git a/Items/Weapons/Magic/Viscera.cs b/Items/Weapons/Magic/Viscera.cs index 1f229feb01..b7e8e976c7 100644 --- a/Items/Weapons/Magic/Viscera.cs +++ b/Items/Weapons/Magic/Viscera.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { Item.staff[Type] = true; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType()]; } public const int BoomLifetime = 40; diff --git a/Items/Weapons/Magic/Waywasher.cs b/Items/Weapons/Magic/Waywasher.cs index de2c96db18..de14e5a660 100644 --- a/Items/Weapons/Magic/Waywasher.cs +++ b/Items/Weapons/Magic/Waywasher.cs @@ -13,10 +13,6 @@ namespace CalamityMod.Items.Weapons.Magic { public new string LocalizationCategory => "Items.Weapons.Magic"; - public override void SetStaticDefaults() - { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; - } public override void SetDefaults() { Item.width = 30; diff --git a/Items/Weapons/Melee/CosmicDischarge.cs b/Items/Weapons/Melee/CosmicDischarge.cs index f88ed15754..6ed3d02f68 100644 --- a/Items/Weapons/Melee/CosmicDischarge.cs +++ b/Items/Weapons/Melee/CosmicDischarge.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Melee public new string LocalizationCategory => "Items.Weapons.Melee"; public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.Frozen]; } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/PrismaticBreaker.cs b/Items/Weapons/Melee/PrismaticBreaker.cs index c46f5daea2..e69e587111 100644 --- a/Items/Weapons/Melee/PrismaticBreaker.cs +++ b/Items/Weapons/Melee/PrismaticBreaker.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { Item.staff[Type] = true; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() { diff --git a/Items/Weapons/Ranged/FlurrystormCannon.cs b/Items/Weapons/Ranged/FlurrystormCannon.cs index 5a04634a05..16a264daa9 100644 --- a/Items/Weapons/Ranged/FlurrystormCannon.cs +++ b/Items/Weapons/Ranged/FlurrystormCannon.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.Frostburn, BuffID.Frozen]; } public override void SetDefaults() diff --git a/Items/Weapons/Ranged/Seadragon.cs b/Items/Weapons/Ranged/Seadragon.cs index 0220d12025..7531b70854 100644 --- a/Items/Weapons/Ranged/Seadragon.cs +++ b/Items/Weapons/Ranged/Seadragon.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(AmmoSavedPercent); public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), BuffID.OnFire3]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Rogue/JawsOfOblivion.cs b/Items/Weapons/Rogue/JawsOfOblivion.cs index 939d523b17..f698f93d0b 100644 --- a/Items/Weapons/Rogue/JawsOfOblivion.cs +++ b/Items/Weapons/Rogue/JawsOfOblivion.cs @@ -8,6 +8,7 @@ using Terraria; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Buffs.StatDebuffs; namespace CalamityMod.Items.Weapons.Rogue { @@ -15,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Rogue { public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType()]; } public override void SetDefaults() { diff --git a/Items/Weapons/Summon/CausticStaff.cs b/Items/Weapons/Summon/CausticStaff.cs index 240fbc9c0c..82d159fbb9 100644 --- a/Items/Weapons/Summon/CausticStaff.cs +++ b/Items/Weapons/Summon/CausticStaff.cs @@ -1,4 +1,5 @@ -using CalamityMod.Buffs.Summon; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.Summon; using CalamityMod.Projectiles.Summon; using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; @@ -14,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Summon public new string LocalizationCategory => "Items.Weapons.Summon"; public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3, BuffID.Venom, BuffID.Ichor, BuffID.CursedInferno]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [BuffID.OnFire3, BuffID.Venom, BuffID.Ichor, BuffID.CursedInferno, ModContent.BuffType()]; } public override void SetDefaults() { diff --git a/Items/Weapons/Summon/ForgottenApexWand.cs b/Items/Weapons/Summon/ForgottenApexWand.cs index 62ba2c91d8..e00ef299cb 100644 --- a/Items/Weapons/Summon/ForgottenApexWand.cs +++ b/Items/Weapons/Summon/ForgottenApexWand.cs @@ -4,6 +4,7 @@ using CalamityMod.Projectiles.Summon; using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; +using CalamityMod.Buffs.StatDebuffs; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -15,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Summon public new string LocalizationCategory => "Items.Weapons.Summon"; public override void SetStaticDefaults() { - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType()]; } public override void SetDefaults() { diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 166c3c2490..ae1f3ebce6 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -826,7 +826,7 @@ AeolianEarthBuff: { You are strengthened by primordial powers Damage reduction increased by {0}%, damage increased by {1}%, and massively buffed mana regen ''' - ItemTooltipPlayer: Increases your damage reduction by 8%, damage by 15% and massively buffs mana regen + ItemTooltipPlayer: Increases your damage reduction by 8%, damage by 15%, and massively buffs mana regen } Afflicted: { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 2e093b69b4..2310b3219e 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -400,7 +400,7 @@ ChaliceOfTheBloodGod: { This bleeding does not interfere with life regeneration Drinking a healing potion removes some of the remaining bleed, up to 50% of its heal value Unequipping this accessory while bleeding inflicts the remaining damage instantly - Grants immunity to [cbuffplr:Bleeding], [cbuffplr:CalamityMod/BurningBlood], [cbuffplr:CalamityMod/HeavyBleeding] and [cbuffplr:CalamityMod/Laceration] + Grants immunity to [cbuffplr:Bleeding], [cbuffplr:CalamityMod/BurningBlood], [cbuffplr:CalamityMod/HeavyBleeding], and [cbuffplr:CalamityMod/Laceration] 'All that for a drop of blood...' ''' } @@ -2086,7 +2086,7 @@ VampiricTalisman: { ''' Rogue critical strikes steal enemy life Stealth strikes grant 15% critical strike chance and increased lifesteal to non-stealth strikes for 10 seconds - Stealth strikes inflict [cbuff:CalamityMod/HeavyBleeding], [cbuff:CalamityMod/ArmorCrunch] and deal 8% more damage + Stealth strikes inflict [cbuff:CalamityMod/HeavyBleeding] and [cbuff:CalamityMod/ArmorCrunch], and deal 8% more damage 'Possessing the talisman makes you yearn for blood' ''' YearningForBlood: THIS ENDLESS HUNGER WON'T END diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index d00c90f703..43d0904593 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -2,7 +2,7 @@ AbsoluteZero: { DisplayName: Absolute Zero Tooltip: ''' - Shoots dark ice crystals + Shoots dark ice crystals The blade creates frost explosions on direct hits Ancient blade imbued with the Archmage of Ice's magic ''' diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 4b97270a92..159cab0234 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -60,7 +60,7 @@ AntiMaterielRifle: { DisplayName: Anti-materiel Rifle Tooltip: ''' - Converts musket balls into .50 caliber sniper rounds that cause enemies to become [cbuff:CalamityMod/MarkedforDeath] + Converts musket balls into .50 caliber sniper rounds that rip apart enemy defense and cause enemies to become [cbuff:CalamityMod/MarkedforDeath] Unleashes a second swarm of bullets on hit, with additional bullets on critical strikes ''' } From 082251699c42cfc129f8178a83176d9dbd6823b9 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Sat, 6 Jun 2026 12:39:59 -0700 Subject: [PATCH 26/26] final fixes --- Buffs/DamageOverTime/Laceration.cs | 1 - Items/Weapons/Melee/Lacerator.cs | 3 +++ Items/Weapons/Ranged/SuperradiantSlaughterer.cs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Buffs/DamageOverTime/Laceration.cs b/Buffs/DamageOverTime/Laceration.cs index 38f970335a..021829ed16 100644 --- a/Buffs/DamageOverTime/Laceration.cs +++ b/Buffs/DamageOverTime/Laceration.cs @@ -23,7 +23,6 @@ namespace CalamityMod.Buffs.DamageOverTime Main.buffNoSave[Type] = true; BuffID.Sets.LongerExpertDebuff[Type] = true; CalamityBuffSets.DebuffDataset[Type] = debuffData; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void Update(Player player, ref int buffIndex) diff --git a/Items/Weapons/Melee/Lacerator.cs b/Items/Weapons/Melee/Lacerator.cs index e1007508fa..95595ad0cc 100644 --- a/Items/Weapons/Melee/Lacerator.cs +++ b/Items/Weapons/Melee/Lacerator.cs @@ -1,7 +1,9 @@ using System.Collections.Generic; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Melee.Yoyos; using CalamityMod.Rarities; +using CalamityMod.Systems.Collections; using Terraria; using Terraria.ID; using Terraria.Localization; @@ -22,6 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee ItemID.Sets.Yoyo[Type] = true; ItemID.Sets.GamepadExtraRange[Type] = 15; ItemID.Sets.GamepadSmartQuickReach[Type] = true; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; } public override void SetDefaults() diff --git a/Items/Weapons/Ranged/SuperradiantSlaughterer.cs b/Items/Weapons/Ranged/SuperradiantSlaughterer.cs index 5da0010587..dcd630660f 100644 --- a/Items/Weapons/Ranged/SuperradiantSlaughterer.cs +++ b/Items/Weapons/Ranged/SuperradiantSlaughterer.cs @@ -52,7 +52,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetStaticDefaults() { ItemID.Sets.IsRangedSpecialistWeapon[Type] = true; - CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; + CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType(), ModContent.BuffType()]; } public override void SetDefaults() {