Fixes + initial speed increase
This commit is contained in:
1 parent
6e10c23239
commit
0f417c28e0
2 files changed
+4
-5
No files matched your search
@@ -327,7 +327,7 @@ DynamicPursuer: {
|
||||
'''
|
||||
A weapon that, as it flies, processes calculations and fires electricity at nearby enemies
|
||||
Stealth strikes allow the disk to ricochet multiple times, fire lasers and unleash an electric explosion,
|
||||
if it cannot find a target to ricochet to, it will pursue the hit target instead.
|
||||
if it cannot find a target to ricochet to, it will pursue the hit target instead until another appears.
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -205,9 +205,9 @@ 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))
|
||||
if ((Projectile.Calamity().stealthStrike && Projectile.numHits == 4) && !ReturningToPlayer)
|
||||
{
|
||||
if (Main.myPlayer == Projectile.owner)
|
||||
//TODO: Change explosion color somehow
|
||||
@@ -268,8 +268,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
closestNPCDistance = potentialNewDistance;
|
||||
newTarget = Main.npc[target.whoAmI];
|
||||
nextTarget = newTarget;
|
||||
if (Projectile.timeLeft < 300)
|
||||
Projectile.timeLeft = 300;
|
||||
Projectile.timeLeft += 300; //Just in case a target it can ricochet to pops up
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user