Dynamic Pursuer now PURSUES if it cant find a target to ricochet to.
This commit is contained in:
1 parent
7a91927d42
commit
a436cf4052
1 file changed
+13
-4
@@ -205,7 +205,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
SoundEngine.PlaySound(CommonCalamitySounds.SwiftSliceSound, Projectile.position);
|
||||
if (((Projectile.Calamity().stealthStrike && Projectile.numHits == 4) || !Projectile.Calamity().stealthStrike) && !ReturningToPlayer)
|
||||
if (((Projectile.Calamity().stealthStrike && Projectile.numHits == 4) || (!Projectile.Calamity().stealthStrike) && !ReturningToPlayer))
|
||||
{
|
||||
if ((Projectile.Calamity().stealthStrike && Projectile.numHits == 4))
|
||||
{
|
||||
@@ -258,10 +258,19 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
if (newTarget == null)
|
||||
{
|
||||
float potentialNewDistance = (Projectile.Center - Main.npc[target.whoAmI].Center).Length();
|
||||
if (potentialNewDistance < targettingDistance && potentialNewDistance < closestNPCDistance)
|
||||
{
|
||||
closestNPCDistance = potentialNewDistance;
|
||||
newTarget = Main.npc[target.whoAmI];
|
||||
nextTarget = newTarget;
|
||||
if (Projectile.timeLeft < 300)
|
||||
Projectile.timeLeft = 300;
|
||||
}
|
||||
/*
|
||||
ReturningToPlayer = true;
|
||||
Ricochet = false;
|
||||
Projectile.tileCollide = false;
|
||||
@@ -276,9 +285,9 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Projectile.velocity.Y = RicochetVelocityCap;
|
||||
if (Projectile.velocity.Y < -RicochetVelocityCap)
|
||||
Projectile.velocity.Y = -RicochetVelocityCap;
|
||||
*/
|
||||
return;
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user