From 99748807b151a46be78a335f63d5fa5fdf2d4a08 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 31 Dec 2024 01:10:33 -0500 Subject: [PATCH] 1 - Dodges and reflects now have a minimum cooldown of 20 seconds 2 - Changed dodge and reflect info tooltips to use common tooltips --- Balancing/BalancingConstants.cs | 12 +++--- CalPlayer/CalamityPlayerHitHurt.cs | 3 +- .../en-US/Mods.CalamityMod.Common.hjson | 12 ++++++ .../Mods.CalamityMod.Items.Accessories.hjson | 40 ++++--------------- ...ods.CalamityMod.Items.Armor.Hardmode.hjson | 4 +- 5 files changed, 27 insertions(+), 44 deletions(-) diff --git a/Balancing/BalancingConstants.cs b/Balancing/BalancingConstants.cs index ae1ce55ee6..590cc74fcd 100644 --- a/Balancing/BalancingConstants.cs +++ b/Balancing/BalancingConstants.cs @@ -62,17 +62,17 @@ // Dodge cooldowns (in frames) // TODO -- Some of these could be moved to the respective item files - internal static readonly int BeltDodgeCooldownMin = 900; + internal static readonly int BeltDodgeCooldownMin = 1200; internal static readonly int BeltDodgeCooldownMax = 5400; - internal static readonly int BrainDodgeCooldownMin = 900; + internal static readonly int BrainDodgeCooldownMin = 1200; internal static readonly int BrainDodgeCooldownMax = 5400; - internal static readonly int AmalgamDodgeCooldownMin = 900; + internal static readonly int AmalgamDodgeCooldownMin = 1200; internal static readonly int AmalgamDodgeCooldownMax = 5400; - internal static readonly int MirrorDodgeCooldownMin = 900; + internal static readonly int MirrorDodgeCooldownMin = 1200; internal static readonly int MirrorDodgeCooldownMax = 5400; - internal static readonly int DaedalusReflectCooldownMin = 900; + internal static readonly int DaedalusReflectCooldownMin = 1200; internal static readonly int DaedalusReflectCooldownMax = 5400; - internal static readonly int EvolutionReflectCooldownMin = 900; + internal static readonly int EvolutionReflectCooldownMin = 1200; internal static readonly int EvolutionReflectCooldownMax = 5400; #endregion diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 5128a0951e..91eda97e51 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -1565,9 +1565,8 @@ namespace CalamityMod.CalPlayer #region Free and Consumable Dodge Hooks public override bool FreeDodge(Player.HurtInfo info) { - // 22AUG2023: Ozzatron: god slayer damage resistance removed due to it being strong enough to godmode rev yharon // If the incoming damage is somehow less than 1 (TML doesn't allow this, but...), the hit is completely ignored. - if (info.Damage < 1 /* || (godSlayerDamage && info.Damage <= 80) */) + if (info.Damage < 1) return true; // Silva armor revive provides complete immunity. diff --git a/Localization/en-US/Mods.CalamityMod.Common.hjson b/Localization/en-US/Mods.CalamityMod.Common.hjson index 88ff5ae0d2..12ba291af7 100644 --- a/Localization/en-US/Mods.CalamityMod.Common.hjson +++ b/Localization/en-US/Mods.CalamityMod.Common.hjson @@ -11,6 +11,18 @@ NotConsumable: Not consumable RogueDamage: "{0}% increased rogue damage" RogueCrit: "{0}% increased rogue critical strike chance" RogueVelocity: "{0}% increased rogue velocity" +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 + ''' +ReflectInformation: + ''' + Projectiles that deal less than 5% of your max life in damage will not be reflected + The reflect has a cooldown that ranges between 20 and 90 seconds depending on the reflected projectile's damage + This cooldown is shared with all other dodges and reflects + ''' GrappleStats: ''' Reach: {0} tiles diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index cd1ca7c044..2c22570ec1 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -56,9 +56,7 @@ AbyssalMirror: { ''' HoldShiftTooltip: ''' - Attacks that deal less than 5% of your max life in damage will not be dodged - The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage - This cooldown is shared with all other dodges and reflects + {$Common.DodgeInformation} Dodging an attack gives stealth ''' FlavorTooltip: "'Light does not reach the depths of the ocean'" @@ -108,12 +106,7 @@ AmalgamatedBrain: { Grants the ability to dodge attacks After dodging, summon damage and crit chance are boosted by 10% ''' - HoldShiftTooltip: - ''' - Attacks that deal less than 5% of your max life in damage will not be dodged - The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage - This cooldown is shared with all other dodges and reflects - ''' + HoldShiftTooltip: "{$Common.DodgeInformation}" } AmbrosialAmpoule: { @@ -661,10 +654,8 @@ EclipseMirror: { ''' HoldShiftTooltip: ''' - Attacks that deal less than 5% of your max life in damage will not be dodged - The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage + {$Common.DodgeInformation} Dodging an attack grants a lot of stealth - This cooldown is shared with all other dodges and reflects ''' FlavorTooltip: "'Its reflection shows naught but darkness'" } @@ -1658,12 +1649,7 @@ StatisNinjaBelt: { Provides light when worn {$Common.AbyssLightLevel1} ''' - HoldShiftTooltip: - ''' - Attacks that deal less than 5% of your max life in damage will not be dodged - The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage - This cooldown is shared with all other dodges and reflects - ''' + HoldShiftTooltip: "{$Common.DodgeInformation}" } StatisVoidSash: { @@ -1678,12 +1664,7 @@ StatisVoidSash: { Provides light when worn {$Common.AbyssLightLevel1} ''' - HoldShiftTooltip: - ''' - Attacks that deal less than 5% of your max life in damage will not be dodged - The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage - This cooldown is shared with all other dodges and reflects - ''' + HoldShiftTooltip: "{$Common.DodgeInformation}" } // Be warned translators, this thing fucking sucks @@ -1812,12 +1793,7 @@ TheAmalgam: { Grants the ability to dodge attacks After dodging, summon damage and crit chance are boosted by 10% ''' - HoldShiftTooltip: - ''' - Attacks that deal less than 5% of your max life in damage will not be dodged - The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage - This cooldown is shared with all other dodges and reflects - ''' + HoldShiftTooltip: "{$Common.DodgeInformation}" } TheBee: { @@ -1866,9 +1842,7 @@ TheEvolution: { Tooltip: ''' Reflects projectiles that hit you, negating their damage and dealing 10x damage to enemies - Projectiles that deal less than 5% of your max life in damage will not be reflected - The reflect has a cooldown that ranges between 15 and 90 seconds depending on the reflected projectile's damage - This cooldown is shared with all other dodges and reflects + {$Common.ReflectInformation} Reflecting a projectile grants +6 HP/s life regen for 5 seconds and grants maximum natural life regen Getting hit by the same enemy projectile type during cooldown will resist its damage by 25% ''' diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson index 44d5e1c2e0..5210af0c61 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson @@ -106,9 +106,7 @@ DaedalusHeadMelee: { Enemies are more likely to target you You reflect projectiles back at enemies Reflected projectiles deal 50% less damage to you - Projectiles that deal less than 5% of your max life in damage will not be reflected - The reflect has a cooldown that ranges between 15 and 90 seconds depending on the reflected projectile's damage - This cooldown is shared with all other dodges and reflects + {$Common.ReflectInformation} ''' }