diff --git a/Balancing/BalancingConstants.cs b/Balancing/BalancingConstants.cs
index ec3d67b330..e8d05be133 100644
--- a/Balancing/BalancingConstants.cs
+++ b/Balancing/BalancingConstants.cs
@@ -62,18 +62,18 @@
internal const int SolarFlareIFrames = 12;
internal const float SolarFlareBaseDamage = 400f;
- // Dodge cooldowns (in frames)
- // TODO -- Some of these could be moved to the respective item files
- internal static readonly int BeltDodgeCooldownMin = 1200;
- internal static readonly int BeltDodgeCooldownMax = 5400;
- internal static readonly int BrainDodgeCooldownMin = 1200;
- internal static readonly int BrainDodgeCooldownMax = 5400;
- internal static readonly int AmalgamDodgeCooldownMin = 1200;
- internal static readonly int AmalgamDodgeCooldownMax = 5400;
- internal static readonly int MirrorDodgeCooldownMin = 1200;
- internal static readonly int MirrorDodgeCooldownMax = 5400;
- internal static readonly int EvolutionReflectCooldownMin = 1200;
- internal static readonly int EvolutionReflectCooldownMax = 5400;
+ ///
+ /// How long the dodge cooldown is at maximum damage
+ ///
+ internal static readonly int DodgeCooldownMax = 5400; // 90 seconds
+ ///
+ /// How much the dodge cooldown is reduced when at minimum damage
+ ///
+ internal static float DodgeCooldownDamageMult => 0.33f; // 30 seconds
+ ///
+ /// How much the dodge cooldown is reduced per stacked dodge. Each stack applies multiplicatively.
+ ///
+ internal static float DodgeCooldownMultPerStack => 0.85f; // -15% per stack, multiplicatively
#endregion
#region Damage
diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs
index 41a6d74227..165b26a524 100644
--- a/CalPlayer/CalamityPlayer.cs
+++ b/CalPlayer/CalamityPlayer.cs
@@ -949,6 +949,7 @@ namespace CalamityMod.CalPlayer
public bool seraphTracers = false;
public bool frostFlare = false;
public bool evolution = false;
+ public bool procDodgeEffects = true;
public bool nanotech = false;
public bool deadshotBrooch = false;
public bool shadowMinions = false;
@@ -1145,6 +1146,22 @@ namespace CalamityMod.CalPlayer
/// Used for spawning Quiver of Nihility's void fields.
public bool voidField = false;
public bool copyrightInfringementShield = false;
+
+ ///
+ /// This is the maximum cooldown of general Dodge effects, in frames. Can be modified by equipment.
+ /// Defaults to 90 seconds, or 5400 frames.
+ ///
+ public int ConsumableDodgeCooldown = 0;
+ ///
+ /// A list of on dodge effects for every dodge the player has equipped.
+ /// Also used to determine the amount of dodges for cooldowns.
+ /// Returns the string for the dodge cooldown icon to use.
+ ///
+ public List> DodgeEffects = [];
+ ///
+ /// Used internally to disable Player.shadowDodge so we can use custom dodge ordering.
+ ///
+ bool storedShadowDodge = false;
#endregion
#region Armor Set
@@ -2489,7 +2506,10 @@ namespace CalamityMod.CalPlayer
voidField = false;
copyrightInfringementShield = false;
- daedalusReflect = false;
+ ConsumableDodgeCooldown = BalancingConstants.DodgeCooldownMax;
+ DodgeEffects = [];
+
+ daedalusReflect = false;
daedalusSplit = false;
daedalusAbsorb = false;
daedalusShard = false;
@@ -4328,6 +4348,17 @@ namespace CalamityMod.CalPlayer
if (Player.accRunSpeed < accRunSpeedMin)
Player.accRunSpeed = accRunSpeedMin;
+ if (Player.blackBelt)
+ DodgeEffects.Add((Player, hit) => {
+ Player.NinjaDodge();
+ return null;
+ });
+ if (Player.brainOfConfusionItem != null && !Player.brainOfConfusionItem.IsAir)
+ DodgeEffects.Add((Player, hit) => {
+ Player.BrainOfConfusionDodge();
+ return null;
+ });
+
if (Player.Transformation().Type == ItemType())
{
if (Player.whoAmI == Main.myPlayer && !snowmanNoseless)
diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs
index 968ee64d3f..ba3a3815b5 100644
--- a/CalPlayer/CalamityPlayerHitHurt.cs
+++ b/CalPlayer/CalamityPlayerHitHurt.cs
@@ -145,86 +145,7 @@ namespace CalamityMod.CalPlayer
NetMessage.SendData(MessageID.Dodge, -1, -1, null, Player.whoAmI, 1f, 0f, 0f, 0, 0, 0);
}
- public void AbyssMirrorDodge(double dodgeDamageGateValuePercent, int dodgeDamageGateValue, int hitDamage, Player.HurtInfo info)
- {
- double maxCooldownDurationDamagePercent = 0.5;
- int maxCooldownDurationDamageValue = (int)Math.Round(Player.statLifeMax2 * (maxCooldownDurationDamagePercent - dodgeDamageGateValuePercent));
-
- // Just in case...
- if (maxCooldownDurationDamageValue <= 0)
- maxCooldownDurationDamageValue = 1;
-
- float cooldownDurationScalar = MathHelper.Clamp((hitDamage - dodgeDamageGateValue) / (float)maxCooldownDurationDamageValue, 0f, 1f);
-
- if (Player.whoAmI == Main.myPlayer && abyssalMirror && !eclipseMirror)
- {
- int cooldownDuration = (int)MathHelper.Lerp(BalancingConstants.MirrorDodgeCooldownMin, BalancingConstants.MirrorDodgeCooldownMax, cooldownDurationScalar);
- Player.AddCooldown(GlobalDodge.ID, cooldownDuration, true, "abyssmirror");
-
- // 17APR2024: Ozzatron: Abyssal Mirror is a dodge. It uses vanilla dodge iframes and benefits from Cross Necklace.
- int abyssalMirrorDodgeIFrames = Player.ComputeDodgeIFrames();
- Player.GiveUniversalIFrames(abyssalMirrorDodgeIFrames, true);
-
- rogueStealth += 0.5f;
- SoundEngine.PlaySound(SilvaArmor.ActivationSound, Player.Center);
-
- var source = Player.GetSource_Accessory_OnHurt(FindAccessory(), info.DamageSource);
- for (int i = 0; i < 10; i++)
- {
- int damage = (int)Player.GetTotalDamage().ApplyTo(55);
-
- int lumenyl = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, Main.rand.NextFloat(-2f, 2f), Main.rand.NextFloat(-2f, 2f), ModContent.ProjectileType(), damage, 0, Player.whoAmI);
- Main.projectile[lumenyl].rotation = Main.rand.NextFloat(0, 360);
- Main.projectile[lumenyl].frame = Main.rand.Next(0, 4);
- if (lumenyl.WithinBounds(Main.maxProjectiles))
- Main.projectile[lumenyl].DamageType = DamageClass.Generic;
- }
-
- // TODO -- Calamity dodges should probably not send a vanilla dodge packet considering that causes Tabi dust
- if (Player.whoAmI == Main.myPlayer)
- {
- NetMessage.SendData(MessageID.Dodge, -1, -1, null, Player.whoAmI, 1f, 0f, 0f, 0, 0, 0);
- }
- }
- }
-
- public void EclipseMirrorDodge(double dodgeDamageGateValuePercent, int dodgeDamageGateValue, int hitDamage, Player.HurtInfo info)
- {
- double maxCooldownDurationDamagePercent = 0.5;
- int maxCooldownDurationDamageValue = (int)Math.Round(Player.statLifeMax2 * (maxCooldownDurationDamagePercent - dodgeDamageGateValuePercent));
-
- // Just in case...
- if (maxCooldownDurationDamageValue <= 0)
- maxCooldownDurationDamageValue = 1;
-
- float cooldownDurationScalar = MathHelper.Clamp((hitDamage - dodgeDamageGateValue) / (float)maxCooldownDurationDamageValue, 0f, 1f);
-
- if (Player.whoAmI == Main.myPlayer && eclipseMirror)
- {
- int cooldownDuration = (int)MathHelper.Lerp(BalancingConstants.MirrorDodgeCooldownMin, BalancingConstants.MirrorDodgeCooldownMax, cooldownDurationScalar);
- Player.AddCooldown(GlobalDodge.ID, cooldownDuration, true, "eclipsemirror");
-
- // 17APR2024: Ozzatron: Eclipse Mirror is a dodge. It uses vanilla dodge iframes and benefits from Cross Necklace.
- int eclipseMirrorDodgeIFrames = Player.ComputeDodgeIFrames();
- Player.GiveUniversalIFrames(eclipseMirrorDodgeIFrames, true);
-
- rogueStealth += 0.5f;
- SoundEngine.PlaySound(SoundID.Item68, Player.Center);
-
- var source = Player.GetSource_Accessory_OnHurt(FindAccessory(), info.DamageSource);
- int damage = (int)Player.GetTotalDamage().ApplyTo(2000);
-
- int eclipse = Projectile.NewProjectile(source, Player.Center, Vector2.Zero, ModContent.ProjectileType(), damage, 0, Player.whoAmI);
- if (eclipse.WithinBounds(Main.maxProjectiles))
- Main.projectile[eclipse].DamageType = DamageClass.Generic;
-
- // TODO -- Calamity dodges should probably not send a vanilla dodge packet considering that causes Tabi dust
- if (Player.whoAmI == Main.myPlayer)
- {
- NetMessage.SendData(MessageID.Dodge, -1, -1, null, Player.whoAmI, 1f, 0f, 0f, 0, 0, 0);
- }
- }
- }
+
#endregion
#region Pre Kill
@@ -938,16 +859,8 @@ namespace CalamityMod.CalPlayer
Projectile.NewProjectile(source, Player.Center + Vector2.UnitX.RotatedBy(MathHelper.TwoPi * (i / 10f)), Vector2.Zero, ModContent.ProjectileType(), mirrorDamage, 5, Main.myPlayer, 1);
}
}
-
- //Doze - This gives the same iframes as vanilla dodges, including accounting for cross necklace.
- int evolutionIFrames = Player.ComputeDodgeIFrames();
- Player.GiveUniversalIFrames(evolutionIFrames, true);
-
- modifiers.Cancel();
projTypeJustHitBy = proj.type;
-
- int cooldownDuration = (int)MathHelper.Lerp(BalancingConstants.EvolutionReflectCooldownMin, BalancingConstants.EvolutionReflectCooldownMax, cooldownDurationScalar);
- Player.AddCooldown(GlobalDodge.ID, cooldownDuration);
+ procDodgeEffects = true; //This tells the game to dodge in the Consumable Dodge step, which procs all generic dodge effects at once.
return;
}
@@ -1515,6 +1428,10 @@ namespace CalamityMod.CalPlayer
}
}
+ //Here we store the Holy Protection bool so that we can have Holy Protection run in the right order among our dodges
+ storedShadowDodge = Player.shadowDodge;
+ Player.shadowDodge = false;
+
// If no other effects occurred, run vanilla code
return base.FreeDodge(info);
}
@@ -1530,8 +1447,8 @@ namespace CalamityMod.CalPlayer
int actualDamageTaken = chaliceOfTheBloodGod ? chaliceHitOriginalDamage : info.Damage;
bool sufficientDamageForDodging = actualDamageTaken >= dodgeDamageGateValue;
- if (!Player.HasCooldown(GlobalDodge.ID) && sufficientDamageForDodging)
- {
+ //This is in a method here so the logic below can call it in multiple places
+ void GenericDodgeEffects() {
double maxCooldownDurationDamagePercent = 0.5;
int maxCooldownDurationDamageValue = (int)Math.Round(Player.statLifeMax2 * (maxCooldownDurationDamagePercent - dodgeDamageGateValuePercent));
@@ -1540,26 +1457,61 @@ namespace CalamityMod.CalPlayer
maxCooldownDurationDamageValue = 1;
float cooldownDurationScalar = MathHelper.Clamp((actualDamageTaken - dodgeDamageGateValue) / (float)maxCooldownDurationDamageValue, 0f, 1f);
+ //Every dodge after the first reduces the dodge cooldown by 15%, stacking multiplicatively
+ float cooldownMultiplier = 1;
+ if (DodgeEffects.Count > 1)
+ cooldownMultiplier = MathF.Pow(BalancingConstants.DodgeCooldownMultPerStack, DodgeEffects.Count - 1);
- // Re-implementation of vanilla item Black Belt as a consumable dodge
- if (Player.whoAmI == Main.myPlayer && Player.blackBelt)
+ string? IconToUse = null;
+ foreach (var dodge in DodgeEffects)
{
- Player.NinjaDodge();
- int cooldownDuration = (int)MathHelper.Lerp(BalancingConstants.BeltDodgeCooldownMin, BalancingConstants.BeltDodgeCooldownMax, cooldownDurationScalar);
+ string? str = dodge(Player, info);
+ if (str is not null)
+ IconToUse = str;
+ }
+ //This is set after DodgeEffects in case some dodge wants to modify ConsumableDodgeCooldown, and so custom dodge icons for mirror line work
+ int cooldownDuration = (int)MathHelper.Lerp(ConsumableDodgeCooldown * cooldownMultiplier * BalancingConstants.DodgeCooldownDamageMult, ConsumableDodgeCooldown * cooldownMultiplier, cooldownDurationScalar);
+ if (IconToUse is null)
Player.AddCooldown(GlobalDodge.ID, cooldownDuration);
- return true;
- }
+ else
+ Player.AddCooldown(GlobalDodge.ID, cooldownDuration, true, IconToUse);
+ }
- // Re-implementation of vanilla item Brain of Confusion as a consumable dodge
- if (Player.whoAmI == Main.myPlayer && Player.brainOfConfusionItem != null && !Player.brainOfConfusionItem.IsAir)
- {
- Player.BrainOfConfusionDodge();
- int cooldownTime = amalgam ?
- (int)MathHelper.Lerp(BalancingConstants.AmalgamDodgeCooldownMin, BalancingConstants.AmalgamDodgeCooldownMax, cooldownDurationScalar) :
- (int)MathHelper.Lerp(BalancingConstants.BrainDodgeCooldownMin, BalancingConstants.BrainDodgeCooldownMax, cooldownDurationScalar);
- Player.AddCooldown(GlobalDodge.ID, cooldownTime);
- return true;
- }
+ //Dodge activation order is as follows:
+ // 1. Evolution dodge (which also procs Generals)
+ // 2. Spectral Veil
+ // 3. Evasion/Counter Scarf
+ // 4. Hallowed Armor
+ // 5. General Dodge
+
+ if (procDodgeEffects)
+ {
+ DodgeEffects.Add((_, _) => null); //This is to account for whatever procced the dodge when counting dodge cooldown stacking
+ GenericDodgeEffects();
+ procDodgeEffects = false;
+ return true;
+ }
+
+ if (spectralVeil && spectralVeilImmunity > 0)
+ {
+ SpectralVeilDodge();
+ return true;
+ }
+
+ if (HandleDashDodges())
+ return true;
+ // Hallowed Armor dodge
+ if (storedShadowDodge)
+ {
+ Player.ShadowDodge();
+ storedShadowDodge = false;
+ return true;
+ }
+
+ if (!Player.HasCooldown(GlobalDodge.ID) && sufficientDamageForDodging && DodgeEffects.Count > 0)
+ {
+ GenericDodgeEffects();
+ return true;
}
//
@@ -1569,30 +1521,7 @@ namespace CalamityMod.CalPlayer
if (Player.whoAmI != Main.myPlayer || disableAllDodges)
return false;
- if (spectralVeil && spectralVeilImmunity > 0)
- {
- SpectralVeilDodge();
- return true;
- }
- // TODO -- drag all dodge code into a CalamityPlayer sub-file dedicated to dodging and nothing else
- if (HandleDashDodges())
- return true;
-
- // Mirror evades do not work if the global dodge cooldown is active. This cooldown can be triggered by either mirror.
- if (!Player.HasCooldown(GlobalDodge.ID) && actualDamageTaken >= dodgeDamageGateValue)
- {
- if (eclipseMirror)
- {
- EclipseMirrorDodge(dodgeDamageGateValuePercent, dodgeDamageGateValue, actualDamageTaken, info);
- return true;
- }
- else if (abyssalMirror)
- {
- AbyssMirrorDodge(dodgeDamageGateValuePercent, dodgeDamageGateValue, actualDamageTaken, info);
- return true;
- }
- }
return base.ConsumableDodge(info);
}
diff --git a/Items/Accessories/AbyssalMirror.cs b/Items/Accessories/AbyssalMirror.cs
index e4113351d0..0a71cbd439 100644
--- a/Items/Accessories/AbyssalMirror.cs
+++ b/Items/Accessories/AbyssalMirror.cs
@@ -1,6 +1,9 @@
using CalamityMod.CalPlayer;
+using CalamityMod.Items.Armor.Silva;
using CalamityMod.Items.Materials;
+using CalamityMod.Projectiles.Rogue;
using Terraria;
+using Terraria.Audio;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
@@ -33,6 +36,36 @@ namespace CalamityMod.Items.Accessories
modPlayer.stealthGenMoving += MovingStealthRegenBoost;
modPlayer.abyssalMirror = true;
player.aggro -= AggroReduction;
+ modPlayer.DodgeEffects.Add(AbyssMirrorDodge);
+ }
+
+ public string AbyssMirrorDodge(Player Player, Player.HurtInfo info)
+ {
+ // 17APR2024: Ozzatron: Abyssal Mirror is a dodge. It uses vanilla dodge iframes and benefits from Cross Necklace.
+ int abyssalMirrorDodgeIFrames = Player.ComputeDodgeIFrames();
+ Player.GiveUniversalIFrames(abyssalMirrorDodgeIFrames, true);
+
+ Player.Calamity().rogueStealth += 0.5f;
+ SoundEngine.PlaySound(SilvaArmor.ActivationSound, Player.Center);
+
+ var source = Player.GetSource_Accessory(Player.Calamity().FindAccessory(ModContent.ItemType()));
+ for (int i = 0; i < 10; i++)
+ {
+ int damage = (int)Player.GetTotalDamage().ApplyTo(55);
+
+ int lumenyl = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, Main.rand.NextFloat(-2f, 2f), Main.rand.NextFloat(-2f, 2f), ModContent.ProjectileType(), damage, 0, Player.whoAmI);
+ Main.projectile[lumenyl].rotation = Main.rand.NextFloat(0, 360);
+ Main.projectile[lumenyl].frame = Main.rand.Next(0, 4);
+ if (lumenyl.WithinBounds(Main.maxProjectiles))
+ Main.projectile[lumenyl].DamageType = DamageClass.Generic;
+ }
+
+ // TODO -- Calamity dodges should probably not send a vanilla dodge packet considering that causes Tabi dust
+ if (Player.whoAmI == Main.myPlayer)
+ {
+ NetMessage.SendData(MessageID.Dodge, -1, -1, null, Player.whoAmI, 1f, 0f, 0f, 0, 0, 0);
+ }
+ return "abyssmirror";
}
public override void AddRecipes()
diff --git a/Items/Accessories/EclipseMirror.cs b/Items/Accessories/EclipseMirror.cs
index 5c1f638a15..c9f19c4b3d 100644
--- a/Items/Accessories/EclipseMirror.cs
+++ b/Items/Accessories/EclipseMirror.cs
@@ -1,8 +1,14 @@
-using CalamityMod.CalPlayer;
+using CalamityMod.Balancing;
+using CalamityMod.CalPlayer;
+using CalamityMod.Cooldowns;
using CalamityMod.Items.Materials;
+using CalamityMod.Projectiles.Rogue;
using CalamityMod.Rarities;
using CalamityMod.Tiles.Furniture.CraftingStations;
+using Microsoft.Xna.Framework;
using Terraria;
+using Terraria.Audio;
+using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
@@ -31,8 +37,32 @@ namespace CalamityMod.Items.Accessories
player.GetCritChance() += 6;
player.GetDamage() += 0.06f;
player.aggro -= 700;
+ modPlayer.DodgeEffects.Add(EclipseMirrorDodge);
}
+ public string EclipseMirrorDodge(Player Player, Player.HurtInfo info)
+ {
+
+ // 17APR2024: Ozzatron: Eclipse Mirror is a dodge. It uses vanilla dodge iframes and benefits from Cross Necklace.
+ int eclipseMirrorDodgeIFrames = Player.ComputeDodgeIFrames();
+ Player.GiveUniversalIFrames(eclipseMirrorDodgeIFrames, true);
+
+ Player.Calamity().rogueStealth += 0.5f;
+ SoundEngine.PlaySound(SoundID.Item68, Player.Center);
+
+ var source = Player.GetSource_Accessory(Player.Calamity().FindAccessory(ModContent.ItemType()));
+ int damage = (int)Player.GetTotalDamage().ApplyTo(2000);
+
+ int eclipse = Projectile.NewProjectile(source, Player.Center, Vector2.Zero, ModContent.ProjectileType(), damage, 0, Player.whoAmI);
+ if (eclipse.WithinBounds(Main.maxProjectiles))
+ Main.projectile[eclipse].DamageType = DamageClass.Generic;
+
+ // TODO -- Calamity dodges should probably not send a vanilla dodge packet considering that causes Tabi dust
+ NetMessage.SendData(MessageID.Dodge, -1, -1, null, Player.whoAmI, 1f, 0f, 0f, 0, 0, 0);
+ return "eclipsemirror";
+ }
+
+
public override void AddRecipes()
{
CreateRecipe().
diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs
index 5dd7abe612..6d72d7db19 100644
--- a/Items/CalamityGlobalItemTooltip.cs
+++ b/Items/CalamityGlobalItemTooltip.cs
@@ -679,6 +679,19 @@ namespace CalamityMod.Items
|| item.type == ItemID.QueenSlimeCrystal || item.type == ItemID.MechanicalEye || item.type == ItemID.MechanicalWorm || item.type == ItemID.MechanicalSkull || item.type == ItemID.CelestialSigil)
EditTooltipByNum(0, (line) => line.Text += "\n" + CalamityUtils.GetTextValue("Common.NotConsumable"));
#endregion
+ // Brain of Confusion, Black Belt and Master Ninja Gear have guaranteed dodges with a fixed cooldown.
+ #region Guaranteed Dodge Tooltips
+ if (item.type == ItemID.BlackBelt)
+ EditTooltipByNum(0, (line) => line.Text = CalamityUtils.GetTextValue("Common.DodgeProvided") + "\n" + CalamityUtils.GetTextValue("Common.DodgeInformation"));
+ if (item.type == ItemID.MasterNinjaGear)
+ EditTooltipByNum(1, (line) => line.Text = CalamityUtils.GetTextValue("Common.DodgeProvided") + "\n" + CalamityUtils.GetTextValue("Common.DodgeInformation"));
+ if (item.type == ItemID.BrainOfConfusion)
+ {
+ EditTooltipByNum(0, (line) => line.Text = CalamityUtils.GetTextValue("Common.DodgeProvided"));
+
+ EditTooltipByNum(2, (line) => line.Text += "\n" + CalamityUtils.GetTextValue("Common.DodgeInformation"));
+ }
+ #endregion
// Whip tag is dynamically generated for all whips based on the SummonTagDebuffDict, so we'll remove the vanilla tag tootlips.
#region Whip Tag removal
@@ -706,13 +719,6 @@ namespace CalamityMod.Items
#endregion
#region Accessories
- // Brain of Confusion, Black Belt and Master Ninja Gear have guaranteed dodges with a fixed cooldown.
- if (item.type == ItemID.BlackBelt)
- EditTooltipByNum(0, (line) => line.Text = CalamityUtils.GetText("Vanilla.DodgeInfo").Format(BalancingConstants.BeltDodgeCooldownMin / 60, BalancingConstants.BeltDodgeCooldownMax / 60));
- if (item.type == ItemID.MasterNinjaGear)
- EditTooltipByNum(1, (line) => line.Text = CalamityUtils.GetText("Vanilla.DodgeInfo").Format(BalancingConstants.BeltDodgeCooldownMin / 60, BalancingConstants.BeltDodgeCooldownMax / 60));
- if (item.type == ItemID.BrainOfConfusion)
- EditTooltipByNum(0, (line) => line.Text = CalamityUtils.GetText("Vanilla.DodgeInfo").Format(BalancingConstants.BrainDodgeCooldownMin / 60, BalancingConstants.BrainDodgeCooldownMax / 60));
// Nerfed Ancient Chisel and its upgrade.
if (item.type == ItemID.AncientChisel)
diff --git a/Localization/en-US/Mods.CalamityMod.Common.hjson b/Localization/en-US/Mods.CalamityMod.Common.hjson
index da985a581e..186125b51b 100644
--- a/Localization/en-US/Mods.CalamityMod.Common.hjson
+++ b/Localization/en-US/Mods.CalamityMod.Common.hjson
@@ -27,11 +27,12 @@ NotConsumable: Not consumable
SummonTagDamageFlat: "{0} summon tag damage"
SummonTagDamageMult: "{0}x summon tag damage"
SummonTagCrit: "{0}% summon tag critical strike chance"
+DodgeProvided: Grants or improves the ability to dodge attacks
DodgeInformation:
'''
- Attacks that deal less than 5% of your max life in damage will not be dodged
- The dodge has a cooldown that ranges between 20 and 90 seconds depending on the dodged attack's damage
- This cooldown is shared with all other dodges and reflects
+ [i/Terraria:BlackBelt] Attacks that deal less than 5% of your max life in damage will not be dodged
+ [i/Terraria:BlackBelt] This dodge has a maximum cooldown of 90 seconds, shortened depending on the dodged attack's damage
+ [i/Terraria:BlackBelt] Equipping multiple accessories that give this ability to dodge will reduce the cooldown by 15% each
'''
ReflectInformation:
'''
diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson
index 8b3900bb0a..4f5eea1751 100644
--- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson
+++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson
@@ -39,14 +39,11 @@ AbyssalMirror: {
Tooltip:
'''
Enemies are less likely to target you, even in the abyss
- Generate stealth {0}% faster when standing still and {1}% faster while moving
- Grants the ability to dodge attacks, releasing a cloud of lumenyl fluid which damages and stuns nearby enemies
- '''
- HoldShiftTooltip:
- '''
- {$Common.DodgeInformation}
- Dodging an attack gives stealth
+ Generate stealth 25% faster when standing still and 12% faster while moving
+ {$Common.DodgeProvided}
+ Dodging an attack restores stealth and releases a cloud that damages and stuns nearby enemies
'''
+ HoldShiftTooltip: "{$Common.DodgeInformation}"
FlavorTooltip: "'Light does not reach the depths of the ocean'"
}
@@ -90,7 +87,7 @@ AmalgamatedBrain: {
'''
Taking damage confuses nearby enemies and spawns a dank creeper
The dank creeper flies above you, exploding into several shaderain clouds
- Grants the ability to dodge attacks
+ {$Common.DodgeProvided}
After dodging, summon damage and crit chance are boosted by 10%
'''
HoldShiftTooltip: "{$Common.DodgeInformation}"
@@ -643,13 +640,10 @@ EclipseMirror: {
Enemies are less likely to target you, even in the abyss
Stealth generates 25% faster when standing still and is boosted while moving if not attacking
Stealth strikes only expend 50% of your max stealth
- Grants the ability to dodge attacks in a blast of darksun light, which inflicts extreme damage in a wide area
- '''
- HoldShiftTooltip:
- '''
- {$Common.DodgeInformation}
- Dodging an attack grants a lot of stealth
+ {$Common.DodgeProvided}
+ Dodging an attack restores stealth and releases a burst of highly damaging darksun light
'''
+ HoldShiftTooltip: "{$Common.DodgeInformation}"
FlavorTooltip: "'Its reflection shows naught but darkness'"
}
@@ -1718,9 +1712,10 @@ StatisNinjaBelt: {
Tooltip:
'''
Provides a high-speed dash
- 10% increased movement speed, 32% increased jump speed, allows auto-jump, and negates fall damage
+ 10% increased movement speed, 32% increased jump speed and negates fall damage
Increases movement acceleration and deceleration by 1.6x
- Grants the ability to swim[TOGGLE] and dodge attacks
+ Allows the user to swim[TOGGLE] and auto jump
+ {$Common.DodgeProvided}
[c/aaaaaa:Shift- this item in your inventory to toggle the] [i:ClimbingClaws] [c/aaaaaa:Climbing Claws]
'''
ToggleEffect: ", climb walls,"
@@ -1732,10 +1727,10 @@ StatisVoidSash: {
Tooltip:
'''
Provides a high-speed dash
- 20% increased movement speed, 32% increased jump speed, allows auto-jump, and negates fall damage
+ 20% increased movement speed, 32% increased jump speed, and negates fall damage
Increases movement acceleration and deceleration by 1.85x
- Grants the ability to swim[TOGGLE] and dodge attacks
- Visual effects are reduced if visibility is disabled
+ Allows the user to swim[TOGGLE] and auto jump
+ {$Common.DodgeProvided}
[c/aaaaaa:Shift- this item in your inventory to toggle the] [i:ClimbingClaws] [c/aaaaaa:Climbing Claws]
'''
ToggleEffect: ", climb walls,"
@@ -1865,7 +1860,7 @@ TheAmalgam: {
Most buffs last twice as long, and persist after dying
Taking damage confuses nearby enemies and spawns a dank creeper
The dank creeper flies above you, exploding into several shaderain clouds
- Grants the ability to dodge attacks
+ {$Common.DodgeProvided}
After dodging, summon damage and crit chance are boosted by 10%
'You have no idea how it's staying together'
'''
diff --git a/Localization/en-US/Mods.CalamityMod.Vanilla.hjson b/Localization/en-US/Mods.CalamityMod.Vanilla.hjson
index dabf9366a9..cee11fbd9b 100644
--- a/Localization/en-US/Mods.CalamityMod.Vanilla.hjson
+++ b/Localization/en-US/Mods.CalamityMod.Vanilla.hjson
@@ -1,10 +1,8 @@
DashKey: Press {0} while facing a direction
DodgeInfo:
'''
- Grants the ability to dodge attacks
- Attacks that deal less than 5% of your max life in damage will not be dodged
- The dodge has a cooldown that ranges between {0} and {1} seconds depending on the dodged attack's damage
- The cooldown is shared with all other dodges and reflects
+ {$Common.DodgeProvided}
+ {$Common.DodgeInformation}
'''
AddedTooltip: {