Created a separate buff tag effect that displays player effects

Enemy info still uses cbuff, player info is now obtained by using a cbuffplr tag
Apologies if I mutilated the beautiful tag insertion code
This commit is contained in:
CongratsIsTrash committed 2026-02-28 11:25:13 -05:00
1 parent e906624b98
commit 70b5c9c8b4
6 files changed
+289 -115

No files matched your search

@@ -11,7 +11,7 @@ using Terraria.UI.Chat;
namespace CalamityMod.ChatTags
{
public sealed class CalamityBuffTagHandler : AbstractTagHandler<CalamityBuffTagHandler>
public sealed class BuffTagEnemyEffectHandler : AbstractTagHandler<BuffTagEnemyEffectHandler>
{
public sealed class Snippet(int buffId) : TextSnippet
{
+79
View File
@@ -0,0 +1,79 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using ReLogic.Graphics;
using Terraria;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.UI.Chat;
namespace CalamityMod.ChatTags
{
public sealed class BuffTagPlayerEffectHandler : AbstractTagHandler<BuffTagPlayerEffectHandler>
{
public sealed class Snippet(int buffId) : TextSnippet
{
private const float IconSize = 26f;
public int BuffId => buffId;
public bool DrawIcon => true;
public override bool UniqueDraw(bool justCheckingString, out Vector2 size, SpriteBatch spriteBatch, Vector2 position = default, Color color = default, float scale = 1)
{
size = new Vector2(GetStringLength(FontAssets.MouseText.Value), IconSize);
if (!justCheckingString && (color.R != 0 || color.G != 0 || color.B != 0))
{
// Avoid re-drawing the icon when drawing borders.
if (DrawIcon)
{
// Tomat: I would love to support
// BuffLoader.[Pre/Post]Draw here, but it's not vaible
// because:
// 1. Main.DrawBuffIcon relies on LocalPlayer's buffs,
// 2. we can't control the source or destination
// rectangles.
if (Main.netMode != NetmodeID.Server && !Main.dedServ)
{
var texture = TextureAssets.Buff[BuffId];
spriteBatch.Draw(texture.Value, new Rectangle((int)position.X, (int)position.Y - 2, (int)IconSize, (int)IconSize), null, Color.White);
}
position.X += IconSize;
}
var buffColor = CalamityUtils.GetDebuffTooltipNameColor(buffId);
var name = $"{(DrawIcon ? " " : "")}{Lang.GetBuffName(buffId)}";
ChatManager.DrawColorCodedStringWithShadow(spriteBatch, FontAssets.MouseText.Value, name, position, buffColor, 0f, Vector2.Zero, new Vector2(scale));
}
return true;
}
public override float GetStringLength(DynamicSpriteFont font)
{
float iconSize = !DrawIcon ? 0f : IconSize + font.MeasureString(" ").X;
float size = iconSize + font.MeasureString(Lang.GetBuffName(buffId)).X;
return size * Scale;
}
}
protected override string[] TagNames { get; } = ["cbuffplr"];
public override TextSnippet Parse(string text, Color baseColor = new(), string options = null)
{
if (int.TryParse(text, out int buffId) && buffId >= 0 && buffId < BuffLoader.BuffCount)
{
return new Snippet(buffId);
}
if (BuffID.Search.TryGetId(text, out buffId))
{
return new Snippet(buffId);
}
return new TextSnippet(text);
}
}
}
+39 -16
View File
@@ -278,8 +278,9 @@ namespace CalamityMod.Items
tooltips.Insert(++difficultyTooltipIndex, donorLine);
}
var buffIdsInTooltip = new HashSet<int>();
// The int is the buff ID
// The byte determines what information to show; 0 = enemy, 1 = player, 2 = both
var buffIdsInTooltip = new Dictionary<int, byte>();
foreach (var tooltip in tooltips)
{
// Parse the tags of each line of text to find our buff tags'
@@ -287,9 +288,17 @@ namespace CalamityMod.Items
var snippets = ChatManager.ParseMessage(tooltip.Text, Color.White);
foreach (var snippet in snippets)
{
if (snippet is CalamityBuffTagHandler.Snippet buffSnippet)
if (snippet is BuffTagEnemyEffectHandler.Snippet enemy)
{
buffIdsInTooltip.Add(buffSnippet.BuffId);
buffIdsInTooltip.Add(enemy.BuffId, 0);
}
else if (snippet is BuffTagPlayerEffectHandler.Snippet player)
{
if (!buffIdsInTooltip.TryAdd(player.BuffId, 1))
{
buffIdsInTooltip.Remove(player.BuffId);
buffIdsInTooltip.Add(player.BuffId, 2);
}
}
}
}
@@ -298,26 +307,36 @@ namespace CalamityMod.Items
{
bool showTheTip = false;
bool foundDebuff = false;
foreach (int buffId in buffIdsInTooltip)
foreach (var buffInfo in buffIdsInTooltip)
{
string tooltipKey = "";
if (buffId < BuffID.Count)
string secondTooltipKey = "";
// Change the localization based on whether it should display player or enemy info, or both
string locKey = buffInfo.Value == 1 ? "ItemTooltipPlayer" : "ItemTooltipEnemy";
string secondLocKey = buffInfo.Value == 2 ? "ItemTooltipPlayer" : "";
if (buffInfo.Key < BuffID.Count)
{
tooltipKey = $"Mods.Terraria.Buffs.{BuffID.Search.GetName(buffId)}.ItemTooltip";
tooltipKey = $"Mods.Terraria.Buffs.{BuffID.Search.GetName(buffInfo.Key)}.{locKey}";
if (buffInfo.Value == 2)
secondTooltipKey = $"Mods.Terraria.Buffs.{BuffID.Search.GetName(buffInfo.Key)}.{secondLocKey}";
}
else
{
var modBuff = BuffLoader.GetBuff(buffId);
tooltipKey = $"Mods.{modBuff.Mod.Name}.Buffs.{modBuff.Name}.ItemTooltip";
var modBuff = BuffLoader.GetBuff(buffInfo.Key);
tooltipKey = $"Mods.{modBuff.Mod.Name}.Buffs.{modBuff.Name}.{locKey}";
if (buffInfo.Value == 2)
secondTooltipKey = $"Mods.{modBuff.Mod.Name}.Buffs.{modBuff.Name}.{secondLocKey}";
}
if (!Language.Exists(tooltipKey))
{
continue;
}
var text = "";
var secondText = "";
if (Language.Exists(tooltipKey))
text = Language.GetTextValue(tooltipKey);
if (Language.Exists(secondTooltipKey))
secondText = Language.GetTextValue(secondTooltipKey);
var text = Language.GetTextValue(tooltipKey);
if (string.IsNullOrWhiteSpace(text))
if (string.IsNullOrWhiteSpace(text) && string.IsNullOrWhiteSpace(secondText))
{
continue;
}
@@ -329,7 +348,11 @@ namespace CalamityMod.Items
break;
}
tooltips.Insert(++lastTooltipIndex, new TooltipLine(Mod, "CalamityMod:AltExpandTooltip" + buffId, $"[cbuff:{buffId}]\n{text}"));
string extraLoc = GetTextValue(buffInfo.Value == 1 ? "Buffs.OnPlayer" : "Buffs.OnEnemy");
if (!string.IsNullOrWhiteSpace(text))
tooltips.Insert(++lastTooltipIndex, new TooltipLine(Mod, "CalamityMod:AltExpandTooltip" + buffInfo.Key, $"[cbuff:{buffInfo.Key}] {extraLoc}\n{text}"));
if (buffInfo.Value == 2 && !string.IsNullOrWhiteSpace(secondText))
tooltips.Insert(++lastTooltipIndex, new TooltipLine(Mod, "CalamityMod:AltExpandTooltip" + buffInfo.Key, $"[cbuff:{buffInfo.Key}] {GetTextValue("Buffs.OnPlayer")}\n{secondText}"));
}
if (showTheTip)
+106 -54
View File
@@ -1,3 +1,7 @@
// General (Player) and (Enemy) indicators for buff tags
OnPlayer: (Player)
OnEnemy: (Enemy)
// Alcohols (including Odd Mushroom)
AlcoholPoisoning: {
DisplayName: Alcohol Poisoning
@@ -129,85 +133,111 @@ Withered: {
AstralInfectionDebuff: {
DisplayName: Astral Infection
Description: Your flesh is melting off
ItemTooltip: Sickness - 37.5 DPS
ItemTooltipPlayer: Sickness - 12 DPS
ItemTooltipEnemy: Sickness - 37.5 DPS
}
AuricRebuke: {
DisplayName: Auric Rebuke
Description: Your cells are violently bouncing off each other
ItemTooltip: Electric - 100 DPS. Deals 4x damage against moving targets
ItemTooltipPlayer: Electric - 8 DPS. Deals 5x damage against moving players
ItemTooltipEnemy: Electric - 100 DPS. Deals 4x damage against moving targets
}
BanishingFire: {
DisplayName: Banishing Fire
Description: You shall not be forgiven for your sins
ItemTooltip: Heat - Deals DPS equal to 0.1% of max HP or 2000, whichever is greater
ItemTooltipEnemy: Heat - Deals DPS equal to 0.1% of max HP or 2000, whichever is greater
}
BrimstoneFlames: {
DisplayName: Brimstone Flames
Description: Incinerating both body and mind
ItemTooltip: Heat - 30 DPS
ItemTooltipPlayer: Heat - 15 DPS
ItemTooltipEnemy: Heat - 30 DPS
}
BurningBlood: {
DisplayName: Burning Blood
Description: Your blood is on fire
ItemTooltip: Sickness - 20 DPS
ItemTooltipPlayer: Sickness - 4 DPS
ItemTooltipEnemy: Sickness - 20 DPS
}
BrainRot: {
DisplayName: Brain Rot
Description: Your neurons are popping like corn kernels
ItemTooltip: Sickness - 20 DPS
ItemTooltipPlayer: Sickness - 4 DPS
ItemTooltipEnemy: Sickness - 20 DPS
}
DemonicFlames: {
DisplayName: Demonic Flames
Description: Immolating flames sear your soul
ItemTooltip: Heat - DPS depends on inflicting item
ItemTooltipEnemy: Heat - DPS depends on inflicting item
}
ElementalMix: {
DisplayName: Elemental Mix
Description: A beautiful elemental symphony is flaying you alive
ItemTooltip: Typeless - 200 DPS
ItemTooltipEnemy: Typeless - 200 DPS
}
CrushDepth: {
DisplayName: Crush Depth
Description: Crushed by aquatic pressure
ItemTooltip: Water - 50 DPS
ItemTooltipPlayer:
'''
Water - 9 DPS
Increases breath loss rate in the Abyss
'''
ItemTooltipEnemy: Water - 50 DPS
}
RiptideDebuff: {
DisplayName: Riptide
Description: Lashed at by powerful waters
ItemTooltip: Water - 15 DPS
ItemTooltipPlayer: Water - 3 DPS
ItemTooltipEnemy: Water - 15 DPS
}
Dragonfire: {
DisplayName: Dragonfire
Description: Engulfed by roaring flames
ItemTooltip: Heat - 480 DPS
ItemTooltipPlayer: Heat - 25 DPS
ItemTooltipEnemy: Heat - 480 DPS
}
GodSlayerInferno: {
DisplayName: God Slayer Inferno
Description: Your flesh is burning off
ItemTooltip: Heat - 250 DPS
ItemTooltipPlayer: Heat - 20 DPS
ItemTooltipEnemy: Heat - 250 DPS
}
HadopelagicPressure: {
DisplayName: Hadopelagic Pressure
Description: Rapidly sinking to a watery grave
ItemTooltipPlayer:
'''
Water - 20 DPS
Increases breath loss rate in the Abyss
'''
ItemTooltipEnemy: Water - 200 DPS
}
HeavyBleeding: {
DisplayName: Heavy Bleeding
Description: That's gonna need stitches
ItemTooltip: Typeless - 40 DPS
ItemTooltipPlayer: Typeless - 8 DPS
ItemTooltipEnemy: Typeless - 40 DPS
}
HolyFlames: {
DisplayName: Holy Flames
Description: Dissolving from holy light
ItemTooltip: Heat - 150 DPS
ItemTooltipPlayer: Heat - 20 DPS
ItemTooltipEnemy: Heat - 150 DPS
}
HolyInferno: {
@@ -218,13 +248,14 @@ HolyInferno: {
Laceration: {
DisplayName: Laceration
Description: You're a bloody mess
ItemTooltip: Typeless - 200 DPS
ItemTooltipPlayer: Typeless - 18 DPS
ItemTooltipEnemy: Typeless - 200 DPS
}
ManaBurn: {
DisplayName: Mana Burn
Description: The excess of mana sears your body and mind
ItemTooltip:
ItemTooltipEnemy:
'''
Typeless
Every 100 negative mana reduces your life regen by 4 HP/s, but burns enemies for 3% of dealt damage
@@ -234,25 +265,28 @@ ManaBurn: {
MiracleBlight: {
DisplayName: Miracle Blight
Description: Exotic resonance shreds your corporeal form
ItemTooltip: Typeless - 1500 DPS
ItemTooltipPlayer: Typeless - 30 DPS
ItemTooltipEnemy: Typeless - 1500 DPS
}
Nightwither: {
DisplayName: Nightwither
Description: Incinerated by lunar rays
ItemTooltip: Cold - 100 DPS
ItemTooltipPlayer: Cold - 20 DPS
ItemTooltipEnemy: Cold - 100 DPS
}
Plague: {
DisplayName: Plague
Description: Rotting from the inside
ItemTooltip: Sickness - 50 DPS
ItemTooltipPlayer: Sickness - 15 DPS
ItemTooltipEnemy: Sickness - 50 DPS
}
SagePoison: {
DisplayName: Sage Poison
Description: Poisoned
ItemTooltip:
ItemTooltipEnemy:
'''
Sickness - 25 DPS per Viral Sprout / 50 DPS per Virid Vanguard
Ignores 75% of enemy sickness weaknesses and resistances
@@ -262,7 +296,8 @@ SagePoison: {
SearingLava: {
DisplayName: Searing Lava
Description: The brimstone lava sears your flesh
ItemTooltip:
ItemTooltipPlayer: Heat - 15 DPS
ItemTooltipEnemy:
'''
Heat - 20 DPS
Ignores enemy heat weaknesses and resistances
@@ -278,7 +313,7 @@ ShellfishClaps: {
Shred: {
DisplayName: Shred
Description: Someone built ten Tri-Tip Daggers...
ItemTooltip: ""
ItemTooltipEnemy: ""
}
SnapClamDebuff: {
@@ -289,19 +324,26 @@ SnapClamDebuff: {
StaticDischarge: {
DisplayName: Static Discharge
Description: Shocked by static electricity
ItemTooltip: Electric - 2.5 DPS. 4x damage to moving targets
ItemTooltipPlayer: Electric - 1.5 DPS. 4x damage to moving players
ItemTooltipEnemy: Electric - 2.5 DPS. 4x damage to moving targets
}
SulphuricPoisoning: {
DisplayName: Sulphuric Poisoning
Description: The acidic water burns away your flesh
ItemTooltip: Sickness - 120 DPS
ItemTooltipPlayer: Sickness - 3 DPS
ItemTooltipEnemy: Sickness - 120 DPS
}
TrueVulnerabilityHex: {
DisplayName: True Vulnerability Hex
Description: The end has come
ItemTooltip:
ItemTooltipPlayer:
'''
Heat - 25 DPS
Increases damage taken from all sources
'''
ItemTooltipEnemy:
'''
Heat - 1998 DPS
Increases damage taken from all sources
@@ -312,7 +354,7 @@ TrueVulnerabilityHex: {
Vaporfied: {
DisplayName: Vaporfied
Description: Vape
ItemTooltip:
ItemTooltipEnemy:
'''
Typeless - 15 DPS
Slows enemies
@@ -322,19 +364,26 @@ Vaporfied: {
VermillionFlux: {
DisplayName: Vermillion Flux
Description: Sharp arcs of scarlet course through you
ItemTooltip: Electric - 50 DPS. Deals 4x damage against moving targets
ItemTooltipPlayer: Electric - 5 DPS. Deals 5x damage against moving players
ItemTooltipEnemy: Electric - 50 DPS. Deals 4x damage against moving targets
}
Voidfrost: {
DisplayName: Voidfrost
Description: The emptiness of space devours all warmth and life
ItemTooltip: Cold - 200 DPS
ItemTooltipPlayer: Cold - 20 DPS
ItemTooltipEnemy: Cold - 200 DPS
}
VulnerabilityHex: {
DisplayName: Vulnerability Hex
Description: Your mental fortitude is fading
ItemTooltip:
ItemTooltipPlayer:
'''
Heat - 15 DPS
Reduces defense and damage reduction
'''
ItemTooltipEnemy:
'''
Heat - 1332 DPS
Slows enemies
@@ -713,7 +762,7 @@ AbsorberRegen: {
You are blessed by the culmimation of nature's powers
Life regen increased by {0} HP/s, damage increased by {1}%, damage reduction increased by {2}%
'''
ItemTooltip: Increases life regeneration, damage, and damage reduction
ItemTooltipPlayer: Increases life regeneration, damage, and damage reduction
}
AbyssalDivingSuitBuff: {
@@ -809,7 +858,7 @@ CoralSymbiosis: {
CosmicFreeze: {
DisplayName: Cosmic Freeze
Description: You feel as cold as the empty expanse of outer space
ItemTooltip: Increases regeneration, especially when standing still, and freezes nearby enemies
ItemTooltipPlayer: Increases regeneration, especially when standing still, and freezes nearby enemies
}
DivineBless: {
@@ -870,7 +919,7 @@ IceShieldBuff: {
Mushy: {
DisplayName: Mushy
Description: Increased defense by {0} and life regen by {1} HP/s
ItemTooltip: Increases defense and life regeneration
ItemTooltipPlayer: Increases defense and life regeneration
}
PhantomicEmpowerment: {
@@ -941,7 +990,7 @@ ReaverRage: {
Rage of the earth
Defense increased by {0} and damage increased by {1}%
'''
ItemTooltip: Increased defense and damage
ItemTooltipPlayer: Increased defense and damage
}
SandsWindBuff: {
@@ -986,14 +1035,14 @@ TarragonImmunity: {
TarraLifeRegen: {
DisplayName: Tarra Life
Description: Rapid healing
ItemTooltip: ""
ItemTooltipPlayer: ""
}
// Stat debuffs
AbsorberAffliction: {
DisplayName: Absorber Affliction
Description: Damn nature, you scary!
ItemTooltip: Sickness - 200 DPS
ItemTooltipEnemy: Sickness - 200 DPS
}
AndromedaCripple: {
@@ -1004,13 +1053,14 @@ AndromedaCripple: {
ArmorCrunch: {
DisplayName: Armor Crunch
Description: Your armor is shredded
ItemTooltip: Damage Reduction is 15% less effective
ItemTooltipPlayer: Reduces defense and damage reduction
ItemTooltipEnemy: Damage Reduction is 15% less effective
}
Crumbling: {
DisplayName: Crumbling
Description: Your armor is damaged
ItemTooltip: Damage Reduction is 8% less effective
ItemTooltipEnemy: Damage Reduction is 8% less effective
}
Clamity: {
@@ -1035,7 +1085,7 @@ Enraged: {
Eutrophication: {
DisplayName: Eutrophication
Description: Excessive nutrients restrict your movement
ItemTooltip: Slows enemies
ItemTooltipEnemy: Slows enemies
}
ExoFreeze: {
@@ -1056,19 +1106,13 @@ FrozenLungs: {
GalvanicCorrosion: {
DisplayName: Galvanic Corrosion
Description: Your limbs have begun to corrode
ItemTooltip: Slows enemies
ItemTooltipEnemy: Slows enemies
}
GlacialState: {
DisplayName: Glacial State
Description: Cannot move
ItemTooltip: Freezes enemies
}
HadopelagicPressure: {
DisplayName: Hadopelagic Pressure
Description: Rapidly sinking to a watery grave
ItemTooltip: Water - 200 DPS
ItemTooltipEnemy: Freezes enemies
}
IcarusFolly: {
@@ -1083,7 +1127,12 @@ IcarusFolly: {
Irradiated: {
DisplayName: Irradiated
Description: Your skin is burning off
ItemTooltip:
ItemTooltipPlayer:
'''
Typeless - 2 DPS
Reduces defense and damage reduction
'''
ItemTooltipEnemy:
'''
Typeless - 10 DPS
Increases damage taken from Sickness debuffs
@@ -1093,13 +1142,13 @@ Irradiated: {
MarkedforDeath: {
DisplayName: Marked for Death
Description: Damage reduction reduced
ItemTooltip: Damage reduction is 50% less effective
ItemTooltipEnemy: Damage reduction is 50% less effective
}
PearlAura: {
DisplayName: Pearl Aura
Description: Slowed down
ItemTooltip: Slows enemies
ItemTooltipEnemy: Slows enemies
}
ProfanedWeakness: {
@@ -1110,13 +1159,13 @@ ProfanedWeakness: {
TemporalSadness: {
DisplayName: Temporal Sadness
Description: You are crying
ItemTooltip: Freezes enemies
ItemTooltipEnemy: Freezes enemies
}
TimeDistortion: {
DisplayName: Time Distortion
Description: Time is slowed
ItemTooltip: Slows enemies
ItemTooltipEnemy: Slows enemies
}
Warped: {
@@ -1132,7 +1181,8 @@ WeakPetrification: {
WhisperingDeath: {
DisplayName: Whispering Death
Description: Death approaches; attack power and life regen reduced
ItemTooltip: Reduced contact damage
ItemTooltipPlayer: Negates life regen, reduces damage
ItemTooltipEnemy: Reduced contact damage
}
WitherDebuff: {
@@ -1680,12 +1730,14 @@ PopoNoselessBuff: {
Daybroken: {
DisplayName: Daybroken
ItemTooltip: Heat - 100 DPS
ItemTooltipPlayer: Heat - 20 DPS
ItemTooltipEnemy: Heat - 100 DPS
}
Shadowflame: {
DisplayName: Shadowflame
ItemTooltip: Heat - 30 DPS
ItemTooltipPlayer: Heat - 15 DPS
ItemTooltipEnemy: Heat - 30 DPS
}
ForbiddenStealthSummonTagBuff: {
@@ -4,7 +4,7 @@ Abaddon: {
'''
{$CommonItemTooltip.PercentIncreasedCritChance}
Critical strikes explode, igniting nearby foes with [cbuff:CalamityMod/BrimstoneFlames]
Reduces damage taken from [cbuff:CalamityMod/BrimstoneFlames] by {1}%
Reduces damage taken from [cbuffplr:CalamityMod/BrimstoneFlames] by {1}%
'''
}
@@ -28,8 +28,8 @@ AbyssalDivingSuit: {
Grants the ability to swim, extends underwater breathing, emits light underwater, and improves mobility on ice
Provides a moderate amount of light, reduces breath loss, and reduces damage caused by drowning in the abyss
Abyss creatures are less likely to see you, mitigates the abyss' defense reduction, and lets you sink faster in liquids
Grants immunity to the sulphurous waters and [cbuff:CalamityMod/CrushDepth]'s increased breath loss
Grants resistance to the increased breath loss caused by [cbuff:CalamityMod/HadopelagicPressure]
Grants immunity to the sulphurous waters and [cbuffplr:CalamityMod/CrushDepth]'s increased breath loss
Grants resistance to the increased breath loss caused by [cbuffplr:CalamityMod/HadopelagicPressure]
'''
}
@@ -65,9 +65,9 @@ AlchemicalDecanter: {
DisplayName: Alchemical Decanter
Tooltip:
'''
All attacks inflict the [cbuff:CalamityMod/Plague] and reduces damage taken from the [cbuff:CalamityMod/Plague] by {0}%
All attacks inflict the [cbuff:CalamityMod/Plague] and reduces damage taken from the [cbuffplr:CalamityMod/Plague] by {0}%
Projectiles spawn plague seekers on enemy hits
Releases plague bees and douses you in [cbuff:Honey] when damaged
Releases plague bees and douses you in [cbuffplr:Honey] when damaged
'''
}
@@ -98,7 +98,7 @@ AmbrosialAmpoule: {
'''
+{0} max life
Grants +{1} to +{2} HP/s life regen based on missing health
Grants the [cbuff:Honey] buff
Grants the [cbuffplr:Honey] buff
Current boost: +[REGEN] HP/s
Fire and sickness debuff durations are halved
You emit yellow light if visibility is enabled
@@ -351,7 +351,7 @@ BlunderBooster: {
'''
12% increased rogue damage and 15% increased rogue projectile velocity
Stealth generates 10% faster
Summons a red lightning aura around the player that electrifies nearby enemies
Summons a red lightning aura around the player that electrifies nearby enemies with [cbuff:CalamityMod/VermillionFlux]
The aura has reduced opacity if visibility is disabled
Press [KEY] to consume 25% of your maximum stealth to perform a swift upwards diagonal dash
This dash leaves a trail of red lightning bolts
@@ -544,7 +544,7 @@ DeificAmulet: {
DisplayName: Deific Amulet
Tooltip:
'''
Releases a burst of homing star-bees[TOGGLE] and drenches you in [cbuff:Honey] after taking damage
Releases a burst of homing star-bees[TOGGLE] and drenches you in [cbuffplr:Honey] after taking damage
Increases the length of invincibility, with it increasing even more when at low health
[c/aaaaaa:Shift-<right> this item in your inventory to toggle] [i:PanicNecklace] [c/aaaaaa:Panic Necklace's effect]
'''
@@ -556,7 +556,7 @@ DepthCharm: {
Tooltip:
'''
Reduces the damage caused by drowning in the abyss
Removes the increased breath loss of Crush Depth
Removes the increased breath loss of [cbuffplr:CalamityMod/CrushDepth]
'''
}
@@ -615,7 +615,7 @@ DragonScales: {
Rogue projectiles spawn slow fireballs as they travel
Stealth strikes create infernados where they hit
+10% max run speed and acceleration
Grants immunity to Dragonfire
Grants immunity to [cbuffplr:CalamityMod/Dragonfire]
'Only a living dragon holds true treasure'
'''
}
@@ -626,7 +626,7 @@ DynamoStemCells: {
'''
10% increased ranged damage and movement speed
Ranged weapons fire a powerful mini swarmer every 3 seconds
Reduces damage taken from Dragonfire
Reduces damage taken from [cbuffplr:CalamityMod/Dragonfire]
'''
}
@@ -651,7 +651,7 @@ EldritchSoulArtifact: {
Tooltip:
'''
Boosts melee speed by 10%, ranged velocity by 25%, rogue stealth regen by 15%, max minions by 1 and reduces mana cost by 25%
Grants immunity to Whispering Death
Grants immunity to [cbuffplr:CalamityMod/WhisperingDeath]
Knowledge
'''
}
@@ -789,7 +789,7 @@ FrostFlare: {
DisplayName: Frost Flare
Tooltip:
'''
All attacks and projectiles inflict Frostbite
All attacks and projectiles inflict [cbuff:Frostburn2]
Grants immunity to Frostburn, Chilled and Frozen
Being above 50% life grants 10% increased damage
Being below 50% life grants 15 defense and 15% increased max movement speed and acceleration
@@ -811,8 +811,8 @@ FungalSymbiote: {
Tooltip:
'''
You grow mushrooms on the grass beneath you
Consuming mushrooms provides the [cbuff:CalamityMod/Mushy] buff, granting 5 defense and +1 HP/s life regen
10% increased damage while you have the Mushy buff
Consuming mushrooms provides [cbuffplr:CalamityMod/Mushy], granting 5 defense and +1 HP/s life regen
10% increased damage while you have [cbuffplr:CalamityMod/Mushy]
'''
}
@@ -925,7 +925,7 @@ HideofAstrumDeus: {
True melee strikes drops astral stars from the sky
Releases an explosion and temporarily increases true melee damage by 30% when damaged
Boost duration scales with the amount of damage you took, up to 10 seconds
Nullifies the Astral Infection
Nullifies the [cbuffplr:CalamityMod/AstralInfectionDebuff]
'''
}
@@ -934,7 +934,7 @@ HoneyDew: {
Tooltip:
'''
+10 max life
Grants the [cbuff:Honey] buff
Grants the [cbuffplr:Honey] buff
Sickness debuff durations are halved
'''
}
@@ -952,7 +952,7 @@ IlmerisSpark: {
DisplayName: Ilmeris' Spark
Tooltip:
'''
Attacks inflict Static Discharge while underwater
Attacks inflict [cbuff:CalamityMod/StaticDischarge] while underwater
Taking damage causes the enemy to be shocked
Shocked enemies constantly release sparks
'''
@@ -966,7 +966,7 @@ InfectedJewel: {
Grants 12 defense and +2 HP/s life regen while afflicted with any debuff
Granted defense fades away quickly when not afflicted with any debuffs
Each debuff beyond the first grants 4 additional defense
Nullifies the Astral Infection
Nullifies the [cbuffplr:CalamityMod/AstralInfectionDebuff]
'A beautiful gemstone tarnished by spaceborne rot'
'''
}
@@ -1066,7 +1066,7 @@ LivingDew: {
Tooltip:
'''
+25 max life
Grants the [cbuff:Honey] buff
Grants the [cbuffplr:Honey] buff
Fire and sickness debuff durations are halved
'''
}
@@ -1164,7 +1164,7 @@ NuclearFuelRod: {
'''
Increases your max number of minions by 1
Minions release an [cbuff:CalamityMod/Irradiated] aura on enemy hits
Grants immunity to [cbuff:CalamityMod/Irradiated]
Grants immunity to [cbuffplr:CalamityMod/Irradiated]
'''
}
@@ -1173,7 +1173,7 @@ Nucleogenesis: {
Tooltip:
'''
Increases your max number of minions by 4
Grants immunity to [cbuff:ShadowFlame] and [cbuff:CalamityMod/Irradiated]
Grants immunity to [cbuffplr:CalamityMod/Shadowflame] and [cbuffplr:CalamityMod/Irradiated]
15% increased summon damage, and increased minion knockback
Minions inflict a variety of debuffs
Minions spawn damaging sparks on enemy hits
@@ -1416,7 +1416,7 @@ RampartofDeities: {
Tooltip:
'''
{$Common.KnockbackImmunity}
Releases a blast of homing star-bees[TOGGLE] and drenches you in [cbuff:Honey] after taking damage
Releases a blast of homing star-bees[TOGGLE] and drenches you in [cbuffplr:Honey] after taking damage
Increases the length of invincibility, with it increasing even more when at low health or taking high damage attacks
Reduces damage taken by 25% when below 50% life
Absorbs 25% of damage done to players on your team when you are above 25% life
@@ -1682,7 +1682,7 @@ StarTaintedGenerator: {
'''
Increases your max number of minions by 2, and summon damage by 7%
Minion attacks spawn astral explosions and inflict several debuffs
Grants immunity to [cbuff:CalamityMod/Irradiated]
Grants immunity to [cbuffplr:CalamityMod/Irradiated]
Does not stack with downgrades
'''
}
@@ -1702,7 +1702,7 @@ StatisCurse: {
'''
Increases your max number of minions by 3, and summon damage by 12%
Increased minion knockback
Minion attacks inflict [cbuff:ShadowFlame], and grants immunity to [cbuff:ShadowFlame]
Minion attacks inflict [cbuff:CalamityMod/Shadowflame], and grants immunity to [cbuffplr:CalamityMod/Shadowflame]
Does not stack with downgrades
'''
}
@@ -1835,7 +1835,7 @@ TeslasAmulet: {
'''
Generates an electrifying field that slows enemies
The field has reduced opacity if visibility is disabled
Reduces the duration of [cbuff:CalamityMod/StaticDischarge]
Reduces the duration of [cbuffplr:CalamityMod/StaticDischarge]
'''
}
@@ -1923,7 +1923,7 @@ TheFirstShadowflame: {
Tooltip:
'''
Increases your max number of minions by 1
Minion attacks inflict [cbuff:ShadowFlame], and grants immunity to [cbuff:ShadowFlame]
Minion attacks inflict [cbuff:CalamityMod/Shadowflame], and grants immunity to [cbuffplr:CalamityMod/Shadowflame]
'''
}
@@ -1999,7 +1999,7 @@ UnholyTonic: {
Tooltip:
'''
Increases damage reduction by 4% and defense by 6 while in the corruption
Grants immunity to Brain Rot
Grants immunity to [cbuffplr:CalamityMod/BrainRot]
'''
}
@@ -2040,7 +2040,7 @@ ViciousTonic: {
Tooltip:
'''
Increases damage reduction by 4% and defense by 6 while in the crimson
Grants immunity to Burning Blood
Grants immunity to [cbuffplr:CalamityMod/BurningBlood]
'''
}
@@ -2064,7 +2064,7 @@ VoidofExtinction: {
'''
{$CommonItemTooltip.PercentIncreasedCritChance}
Critical strikes explode, igniting nearby foes with [cbuff:CalamityMod/BrimstoneFlames]
Reduces damage taken from [cbuff:CalamityMod/BrimstoneFlames] by {1}%
Reduces damage taken from [cbuffplr:CalamityMod/BrimstoneFlames] by {1}%
'''
}
+34 -14
View File
@@ -1,22 +1,42 @@
Venom.ItemTooltip: Sickness - 30 DPS
Venom: {
ItemTooltipPlayer: Sickness - 15 DPS
ItemTooltipEnemy: Sickness - 30 DPS
}
BetsysCurse.ItemTooltip: -40 defense
CursedInferno.ItemTooltip: Heat - 24 DPS
Frostburn2.ItemTooltip: Cold - 50 DPS
Frostburn.ItemTooltip: Cold - 8 DPS
OnFire3.ItemTooltip: Heat - 15 DPS
OnFire.ItemTooltip: Heat - 6 DPS
Ichor.ItemTooltip: -10 defense
Oiled.ItemTooltip:
CursedInferno: {
ItemTooltipPlayer: Heat - 12 DPS
ItemTooltipEnemy: Heat - 24 DPS
}
Frostburn2: {
ItemTooltipPlayer: Cold - 8 DPS
ItemTooltipEnemy: Cold - 50 DPS
}
// Frostburn deals the same damage to players and enemies
Frostburn.ItemTooltipEnemy: Cold - 8 DPS
OnFire3.ItemTooltipEnemy: Heat - 15 DPS
// On Fire deals the same damage to players and enemies
OnFire.ItemTooltipEnemy: Heat - 6 DPS
Ichor.ItemTooltipEnemy: -10 defense
Oiled.ItemTooltipEnemy:
'''
Heat - 25 DPS. Recieves 2x the effect from Heat multipliers
Only does damage when paired with another Heat debuff
'''
Poisoned.ItemTooltip: Sickness - 6 DPS
PotionSickness.ItemTooltip: ""
Slimed.ItemTooltip: Enhances Heat debuff damage
Wet.ItemTooltip: Enhances Electric debuff damage
Electrified.ItemTooltip: Electric - 10.5 DPS. Deals 4x damage to moving targets
Honey.ItemTooltip:
Poisoned.ItemTooltipEnemy: Sickness - 6 DPS
PotionSickness.ItemTooltipEnemy: ""
Slimed.ItemTooltipEnemy: Enhances Heat debuff damage
Wet.ItemTooltipEnemy: Enhances Electric debuff damage
Electrified: {
ItemTooltipPlayer: Electric - 4 DPS. Deals 5x damage to moving players
ItemTooltipEnemy: Electric - 10.5 DPS. Deals 4x damage to moving targets
}
Honey.ItemTooltipPlayer:
'''
Increases health regeneration by 1 HP/s
Increases natural regeneration acceleration by 300%