Fix Nanoblack lightspeed carves hitting more times than intended
This commit is contained in:
1 parent
34da9de2bb
commit
703b8b3f9b
1 file changed
+2
-1
@@ -13,6 +13,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
public override LocalizedText DisplayName => this.GetLocalization(IsPerfect ? "Perfect" : "Standard");
|
||||
|
||||
internal const float TargetingRange = 600f;
|
||||
internal const int MaxHits = 3;
|
||||
|
||||
internal static float HitboxRadius = 60.0f;
|
||||
internal static float PlacementRandomness = 12f;
|
||||
@@ -55,7 +56,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
if (Projectile.timeLeft > Lifetime - HitboxDuration)
|
||||
if (Projectile.timeLeft > Lifetime - HitboxDuration && Projectile.numHits < MaxHits)
|
||||
Projectile.penetrate++;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user