Toxic Heart crit fix

Can now crit
This commit is contained in:
Xyk committed 2026-02-11 22:39:39 -08:00
1 parent 15e64962c3
commit 723be83cda
1 file changed
+5
+5
View File
@@ -64,6 +64,11 @@ namespace CalamityMod.Projectiles.Typeless
}
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
{
Player Owner = Main.player[Projectile.owner];
bool crit = Main.rand.Next(0, 100 + 1) < Owner.GetTotalCritChance(Owner.GetBestClass());
if (crit)
modifiers.SetCrit();
float minMult = 0.4f;
int hitsToMinMult = 6;
float damageMult = Utils.Remap(Projectile.numHits, 0, hitsToMinMult, 1, minMult, true);