Hailstorm Balance

This commit is contained in:
Xyk committed 2026-06-16 12:02:00 -07:00
1 parent 394f2072d2
commit 7a2e182e4e
3 files changed
+7 -9

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Ammo
{
Item.width = 14;
Item.height = 20;
Item.damage = 12;
Item.damage = 9;
Item.DamageType = DamageClass.Ranged;
Item.consumable = true;
Item.knockBack = 2f;
@@ -85,7 +85,7 @@ HailstormBullet: {
Tooltip:
'''
Once shot, bullets rapidly decelerate
Critical hits cause a flash freeze, dealing additional damage and freezing non-boss enemies
Critical hits cause a flash freeze, dealing additional damage based on your crit chance and freezing enemies
'''
}
+5 -7
View File
@@ -1,5 +1,4 @@
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.Particles;
using CalamityMod.Particles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
@@ -71,14 +70,12 @@ namespace CalamityMod.Projectiles.Ranged
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
Player Owner = Main.player[Projectile.owner];
target.AddBuff(BuffID.Frostburn2, 120);
if (hit.Crit)
{
SoundStyle crit = new("CalamityMod/Sounds/NPCHit/CryogenPhaseTransitionCrack");
SoundEngine.PlaySound(crit with { Volume = 0.35f, Pitch = 1f }, Projectile.Center);
if (!target.boss)
target.AddBuff(BuffID.Frozen, 120);
target.AddBuff(BuffID.Frozen, 120);
int points = 6;
float radians = MathHelper.TwoPi / points;
@@ -98,7 +95,8 @@ namespace CalamityMod.Projectiles.Ranged
{
// This is about equivalent to the previous direct strike extra damage but can't also crit itself obviously
// Also it's not as impacted by defense, which is why it's a bit weaker, rather than being a full 1f
modifiers.CritDamage += 0.85f;
Player Owner = Main.player[Projectile.owner];
modifiers.CritDamage += 0.65f + (Owner.GetTotalCritChance(DamageClass.Ranged) * 0.004f); // .4% crit damage per 1% crit chance
if (Projectile.numHits > 0)
Projectile.damage = (int)(Projectile.damage * 0.5f);
@@ -108,7 +106,7 @@ namespace CalamityMod.Projectiles.Ranged
public override bool PreDraw(ref Color lightColor)
{
if (Projectile.localAI[0] > 15f)
if (Projectile.localAI[0] > 16f)
CalamityUtils.DrawAfterimagesFromEdge(Projectile, 0, lightColor);
return false;
}