1 - Fix for the previous commit.
This commit is contained in:
1 parent
2170f4f3e9
commit
6a17ac09b0
7 files changed
+7
-7
No files matched your search
@@ -471,7 +471,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
if (velocityBoostMult > 0f)
|
||||
velocityBoostMult -= 0.004f;
|
||||
}
|
||||
baseVelocity += 20f * velocityBoostMult;
|
||||
baseVelocity *= 1f + velocityBoostMult;
|
||||
|
||||
// If Apollo can fire projectiles, cannot fire if too close to the target
|
||||
bool canFire = Vector2.Distance(npc.Center, player.Center) > 320f;
|
||||
|
||||
@@ -449,7 +449,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
if (VelocityBoostMult > 0f)
|
||||
VelocityBoostMult -= 0.004f;
|
||||
}
|
||||
baseVelocity += 20f * VelocityBoostMult;
|
||||
baseVelocity *= 1f + VelocityBoostMult;
|
||||
|
||||
// Distance from target
|
||||
float distanceFromTarget = Vector2.Distance(npc.Center, player.Center);
|
||||
|
||||
@@ -292,7 +292,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
// Velocity and acceleration values
|
||||
float baseVelocityMult = (berserk ? 0.25f : 0f) + (malice ? 1.15f : death ? 1.1f : revenge ? 1.075f : expertMode ? 1.05f : 1f);
|
||||
float baseVelocity = (enraged ? 38f : 30f) * baseVelocityMult;
|
||||
baseVelocity += 20f * Main.npc[(int)npc.ai[2]].localAI[2];
|
||||
baseVelocity *= 1f + Main.npc[(int)npc.ai[2]].localAI[2];
|
||||
|
||||
Vector2 distanceFromDestination = destination - npc.Center;
|
||||
|
||||
|
||||
@@ -284,7 +284,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
// Velocity and acceleration values
|
||||
float baseVelocityMult = (berserk ? 0.25f : 0f) + (malice ? 1.15f : death ? 1.1f : revenge ? 1.075f : expertMode ? 1.05f : 1f);
|
||||
float baseVelocity = (enraged ? 38f : 30f) * baseVelocityMult;
|
||||
baseVelocity += 20f * Main.npc[(int)npc.ai[2]].localAI[2];
|
||||
baseVelocity *= 1f + Main.npc[(int)npc.ai[2]].localAI[2];
|
||||
float baseAcceleration = berserk ? 1.25f : 1f;
|
||||
|
||||
Vector2 distanceFromDestination = destination - npc.Center;
|
||||
|
||||
@@ -292,7 +292,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
// Velocity and acceleration values
|
||||
float baseVelocityMult = (berserk ? 0.25f : 0f) + (malice ? 1.15f : death ? 1.1f : revenge ? 1.075f : expertMode ? 1.05f : 1f);
|
||||
float baseVelocity = (enraged ? 38f : 30f) * baseVelocityMult;
|
||||
baseVelocity += 20f * Main.npc[(int)npc.ai[2]].localAI[2];
|
||||
baseVelocity *= 1f + Main.npc[(int)npc.ai[2]].localAI[2];
|
||||
|
||||
Vector2 distanceFromDestination = destination - npc.Center;
|
||||
|
||||
|
||||
@@ -293,7 +293,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
// Velocity and acceleration values
|
||||
float baseVelocityMult = (berserk ? 0.25f : 0f) + (malice ? 1.15f : death ? 1.1f : revenge ? 1.075f : expertMode ? 1.05f : 1f);
|
||||
float baseVelocity = (enraged ? 38f : 30f) * baseVelocityMult;
|
||||
baseVelocity += 20f * Main.npc[(int)npc.ai[2]].localAI[2];
|
||||
baseVelocity *= 1f + Main.npc[(int)npc.ai[2]].localAI[2];
|
||||
|
||||
Vector2 distanceFromDestination = destination - npc.Center;
|
||||
|
||||
|
||||
@@ -506,7 +506,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
if (velocityBoostMult > 0f)
|
||||
velocityBoostMult -= 0.004f;
|
||||
}
|
||||
baseVelocity += 20f * velocityBoostMult;
|
||||
baseVelocity *= 1f + velocityBoostMult;
|
||||
|
||||
// Rotation
|
||||
Vector2 predictionVector = AIState == (float)Phase.Deathray ? Vector2.Zero : player.velocity * predictionAmt;
|
||||
|
||||
Reference in new issue
Block a user