From 4dc3afd2f4820ec539afd6a77f7194ebf2727628 Mon Sep 17 00:00:00 2001 From: Xyk Date: Thu, 19 Mar 2026 11:20:00 -0700 Subject: [PATCH 1/3] Hyperius Bugfix and Balance --- Items/Ammo/HyperiusBullet.cs | 3 ++- Items/CalamityGlobalItem.cs | 12 +++++------- Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson | 2 +- NPCs/CalamityGlobalNPC.cs | 4 ++-- Projectiles/CalamityGlobalProjectile.cs | 11 ++++------- 5 files changed, 14 insertions(+), 18 deletions(-) diff --git a/Items/Ammo/HyperiusBullet.cs b/Items/Ammo/HyperiusBullet.cs index 7d7083766f..850195e567 100644 --- a/Items/Ammo/HyperiusBullet.cs +++ b/Items/Ammo/HyperiusBullet.cs @@ -9,7 +9,8 @@ namespace CalamityMod.Items.Ammo { public class HyperiusBullet : ModItem, ILocalizedModType { - public static float overflowEfficency = 1.2f; // Multiplier applied to overflow damage done by other damage sources + public static float overflowEfficency = 0.8f; // Multiplier applied to hyperius stacks taken when enemies are damaged by other sources + public static float overflowAppliedMult = 0.9f; // The amount of damage from a hit taken into account when dealing overflow damage public static readonly SoundStyle hit = new("CalamityMod/Sounds/Item/HyperiusOverflow"); public new string LocalizationCategory => "Items.Ammo"; public override void SetStaticDefaults() diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 13bcb810cb..534e02d860 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -900,15 +900,13 @@ namespace CalamityMod.Items // Hyperius Overflow if (target.Calamity().hyperiusMarked) { - int damage = 0; - if (target.Calamity().hyperiusDamage < damageDone) - damage = damageDone - target.Calamity().hyperiusDamage; - else - damage = damageDone; - target.Calamity().hyperiusDamage -= damage; + int damageDealt = (int)(damageDone * HyperiusBullet.overflowAppliedMult); + int damage = (int)Math.Min(target.Calamity().hyperiusDamage, damageDealt); + + target.Calamity().hyperiusDamage -= (int)(damage * HyperiusBullet.overflowEfficency); // Spawn overflow hit - Projectile overflow = Projectile.NewProjectileDirect(target.GetSource_FromThis(), target.Center, Vector2.Zero, ProjectileType(), (int)(damage * HyperiusBullet.overflowEfficency), 0, player.whoAmI, target.whoAmI); + Projectile overflow = Projectile.NewProjectileDirect(target.GetSource_FromThis(), target.Center, Vector2.Zero, ProjectileType(), damage, 0, player.whoAmI, target.whoAmI); overflow.DamageType = item.DamageType; overflow.ArmorPenetration = item.ArmorPenetration; // Takes the armor pen from what did the hit diff --git a/Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson b/Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson index 8046622dfb..0c6da2395a 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson @@ -110,7 +110,7 @@ HyperiusBullet: { Damage that would be dealt from the bullets is instead stored on the target As more damage is stored, it will begin to overflow, slowly releasing and damaging the enemy Attacks from sources other than Hyperius Bullets will release some of the charge - Releasing charge in this way deals 20% more damage + Releasing charge in this way is 20% more efficent ''' } diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 163b7a2a5b..b90aa3dae4 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -334,8 +334,8 @@ namespace CalamityMod.NPCs public int hyperiusDamage = 0; public static int hyperiusOverflowTime = 100; public int hyperiusOverflowTimer = hyperiusOverflowTime; - /// Constant variable representing the % of max health Hyperius Bullet's damage stacks must reach before they start to overflow. - public const float HyperiusLifePercentThreshold = 0.07f; + /// Constant variable representing the % of max health Hyperius Bullet's damage stacks must reach before they start to bleed. + public const float HyperiusLifePercentThreshold = 0.10f; public int hyperiusFxTimer = 0; public int glaiveShredTimer = 0; diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 30b2834719..fd3a9a4f78 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -4763,16 +4763,13 @@ namespace CalamityMod.Projectiles // Hyperius Overflow if (projectile.type != ProjectileType() && projectile.type != ProjectileType() && projectile.type != ProjectileType() && projectile.type != ProjectileType() && target.Calamity().hyperiusMarked) { - int damage = 0; - if (target.Calamity().hyperiusDamage < damageDone) - damage = damageDone - target.Calamity().hyperiusDamage; - else - damage = damageDone; + int damageDealt = (int)(damageDone * HyperiusBullet.overflowAppliedMult); + int damage = (int)Math.Min(target.Calamity().hyperiusDamage, damageDealt); - target.Calamity().hyperiusDamage -= damage; + target.Calamity().hyperiusDamage -= (int)(damage * HyperiusBullet.overflowEfficency); // Spawn overflow hit - Projectile overflow = Projectile.NewProjectileDirect(target.GetSource_FromThis(), target.Center, Vector2.Zero, ProjectileType(), (int)(damage * HyperiusBullet.overflowEfficency), 0, projectile.owner, target.whoAmI); + Projectile overflow = Projectile.NewProjectileDirect(target.GetSource_FromThis(), target.Center, Vector2.Zero, ProjectileType(), damage, 0, projectile.owner, target.whoAmI); overflow.DamageType = projectile.DamageType; overflow.ArmorPenetration = projectile.ArmorPenetration; // Takes the armor pen from what did the hit From 8de95215d41140a9dc0f7987cd42d20eefc2b7c2 Mon Sep 17 00:00:00 2001 From: Doze-Zoze <43045606+Doze-Zoze@users.noreply.github.com> Date: Thu, 19 Mar 2026 13:26:03 -0500 Subject: [PATCH 2/3] Hyperius Bullet can drain all of Overflow Compensates for the extra efficiency when capping Hyperius overflow, allowing one hit to still drain all Overflow --- Projectiles/CalamityGlobalProjectile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index fd3a9a4f78..3784e20d35 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -4764,7 +4764,7 @@ namespace CalamityMod.Projectiles if (projectile.type != ProjectileType() && projectile.type != ProjectileType() && projectile.type != ProjectileType() && projectile.type != ProjectileType() && target.Calamity().hyperiusMarked) { int damageDealt = (int)(damageDone * HyperiusBullet.overflowAppliedMult); - int damage = (int)Math.Min(target.Calamity().hyperiusDamage, damageDealt); + int damage = (int)MathF.Min(target.Calamity().hyperiusDamage / HyperiusBullet.overflowEfficency, damageDealt); target.Calamity().hyperiusDamage -= (int)(damage * HyperiusBullet.overflowEfficency); From 896d5ea62d3164a2f7ec1cefb39195790be0ecfb Mon Sep 17 00:00:00 2001 From: Xyk Date: Thu, 19 Mar 2026 13:11:48 -0700 Subject: [PATCH 3/3] Applied Doze fix to item hits --- Items/CalamityGlobalItem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 534e02d860..27877401d2 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -901,7 +901,7 @@ namespace CalamityMod.Items if (target.Calamity().hyperiusMarked) { int damageDealt = (int)(damageDone * HyperiusBullet.overflowAppliedMult); - int damage = (int)Math.Min(target.Calamity().hyperiusDamage, damageDealt); + int damage = (int)Math.Min(target.Calamity().hyperiusDamage / HyperiusBullet.overflowEfficency, damageDealt); target.Calamity().hyperiusDamage -= (int)(damage * HyperiusBullet.overflowEfficency);