diff --git a/NPCs/ExoMechs/Apollo/Apollo.cs b/NPCs/ExoMechs/Apollo/Apollo.cs index 36dad331c6..1d91997063 100644 --- a/NPCs/ExoMechs/Apollo/Apollo.cs +++ b/NPCs/ExoMechs/Apollo/Apollo.cs @@ -416,6 +416,12 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo float timeToLineUpAttack = 30f; float timeToLineUpCharge = malice ? 30f : death ? 40f : revenge ? 45f : expertMode ? 50f : 60f; + if (Main.getGoodWorld) + { + timeToLineUpAttack *= 0.5f; + timeToLineUpCharge *= 0.5f; + } + // Distance where Apollo stops moving float movementDistanceGateValue = 100f; float chargeLocationDistanceGateValue = 40f; @@ -431,6 +437,12 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo // Charge velocity float chargeVelocity = malice ? 115f : death ? 105f : revenge ? 101.25f : expertMode ? 97.5f : 90f; + if (Main.getGoodWorld) + { + baseVelocity *= 1.5f; + chargeVelocity *= 1.15f; + } + // Charge phase variables double chargeDistance = Math.Sqrt(500D * 500D + 800D * 800D); float chargeTime = (float)chargeDistance / chargeVelocity; @@ -446,6 +458,9 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo float rocketPhaseDuration = lastMechAlive ? 60f : 90f; int numRockets = nerfedAttacks ? 2 : 3; + if (Main.getGoodWorld) + numRockets += 3; + // Default vector to fly to bool flyRight = NPC.ai[0] % 2f == 0f || NPC.ai[0] < 10f || !revenge; float destinationX = flyRight ? 750f : -750f; @@ -462,8 +477,17 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo { pickNewLocation = false; - NPC.localAI[0] = Main.rand.Next(-50, 51); - NPC.localAI[1] = Main.rand.Next(-250, 251); + int randomLocationVarianceX = 50; + int randomLocationVarianceY = 250; + + if (Main.getGoodWorld) + { + randomLocationVarianceX *= 2; + randomLocationVarianceY *= 2; + } + + NPC.localAI[0] = Main.rand.Next(-randomLocationVarianceX, randomLocationVarianceX + 1); + NPC.localAI[1] = Main.rand.Next(-randomLocationVarianceY, randomLocationVarianceY + 1); if (AIState == (float)Phase.RocketBarrage || SecondaryAIState == (float)SecondaryPhase.Passive) { NPC.localAI[0] *= 0.5f; diff --git a/NPCs/ExoMechs/Ares/AresBody.cs b/NPCs/ExoMechs/Ares/AresBody.cs index ef88a423f6..e66508cdcc 100644 --- a/NPCs/ExoMechs/Ares/AresBody.cs +++ b/NPCs/ExoMechs/Ares/AresBody.cs @@ -742,6 +742,9 @@ namespace CalamityMod.NPCs.ExoMechs.Ares NPC.velocity *= decelerationVelocityMult; int totalProjectiles = malice ? 12 : death ? 10 : revenge ? 9 : expertMode ? 8 : 6; + if (Main.getGoodWorld) + totalProjectiles += 4; + float radians = MathHelper.TwoPi / totalProjectiles; bool normalLaserRotation = NPC.localAI[0] % 2f == 0f; float velocity = 6f; diff --git a/NPCs/ExoMechs/Artemis/Artemis.cs b/NPCs/ExoMechs/Artemis/Artemis.cs index 6457fe58a5..caea32dfcf 100644 --- a/NPCs/ExoMechs/Artemis/Artemis.cs +++ b/NPCs/ExoMechs/Artemis/Artemis.cs @@ -442,6 +442,9 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis float attackPhaseGateValue = shouldGetBuffedByBerserkPhase ? berserkAttackTime : normalAttackTime; float timeToLineUpAttack = phase2 ? 30f : 45f; + if (Main.getGoodWorld) + timeToLineUpAttack *= 0.5f; + // Spin variables float spinRadius = 500f; float spinLocationDistance = 50f; @@ -477,6 +480,10 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis // Charge variables float chargeVelocity = nerfedAttacks ? 75f : malice ? 100f : death ? 90f : revenge ? 86.25f : expertMode ? 82.5f : 75f; + + if (Main.getGoodWorld) + chargeVelocity *= 1.15f; + float chargeDistance = 2000f; float chargeDuration = chargeDistance / chargeVelocity; bool lineUpAttack = calamityGlobalNPC.newAI[3] >= attackPhaseGateValue + 2f; @@ -487,6 +494,9 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis float baseVelocity = ((AIState == (int)Phase.Deathray || lineUpAttack || AIState == (int)Phase.LaserShotgun) ? 40f : 20f) * baseVelocityMult; float decelerationVelocityMult = 0.85f; + if (Main.getGoodWorld) + baseVelocity *= 1.5f; + // Laser shotgun variables float laserShotgunDuration = lastMechAlive ? 120f : 90f; @@ -498,8 +508,17 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis { pickNewLocation = false; - NPC.localAI[0] = Main.rand.Next(-50, 51); - NPC.localAI[1] = Main.rand.Next(-250, 251); + int randomLocationVarianceX = 50; + int randomLocationVarianceY = 250; + + if (Main.getGoodWorld) + { + randomLocationVarianceX *= 2; + randomLocationVarianceY *= 2; + } + + NPC.localAI[0] = Main.rand.Next(-randomLocationVarianceX, randomLocationVarianceX + 1); + NPC.localAI[1] = Main.rand.Next(-randomLocationVarianceY, randomLocationVarianceY + 1); if (SecondaryAIState == (float)SecondaryPhase.Passive) { NPC.localAI[0] *= 0.5f; diff --git a/NPCs/ExoMechs/Thanatos/ThanatosHead.cs b/NPCs/ExoMechs/Thanatos/ThanatosHead.cs index 7cba5b4de4..9775aa82fa 100644 --- a/NPCs/ExoMechs/Thanatos/ThanatosHead.cs +++ b/NPCs/ExoMechs/Thanatos/ThanatosHead.cs @@ -22,8 +22,6 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos { public class ThanatosHead : ModNPC { - - public static int normalIconIndex; public static int vulnerableIconIndex; @@ -222,7 +220,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos } public float GetSlowdownAreaEdgeRadius(bool lastMechAlive) => - ((CalamityWorld.malice || BossRushEvent.BossRushActive) ? 400f : CalamityWorld.death ? 600f : CalamityWorld.revenge ? 700f : Main.expertMode ? 800f : 1000f) * (lastMechAlive ? 0.6f : 1f); + ((CalamityWorld.malice || BossRushEvent.BossRushActive) ? 400f : CalamityWorld.death ? 600f : CalamityWorld.revenge ? 700f : Main.expertMode ? 800f : 1000f) * (lastMechAlive ? 0.6f : 1f) * (Main.getGoodWorld ? 0.5f : 1f); public int CheckForOtherMechs(ref Player target, out bool exoPrimeAlive, out bool exoTwinsAlive) { @@ -495,6 +493,9 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos else baseVelocity *= increaseSpeedMult; + if (Main.getGoodWorld) + baseVelocity *= 1.15f; + float turnDegrees = baseVelocity * 0.11f * (shouldGetBuffedByBerserkPhase ? 1.25f : 1f); float turnSpeed = MathHelper.ToRadians(turnDegrees); diff --git a/Projectiles/Boss/AresGaussNukeProjectile.cs b/Projectiles/Boss/AresGaussNukeProjectile.cs index 9cc041d728..35bb411109 100644 --- a/Projectiles/Boss/AresGaussNukeProjectile.cs +++ b/Projectiles/Boss/AresGaussNukeProjectile.cs @@ -37,6 +37,9 @@ namespace CalamityMod.Projectiles.Boss Projectile.penetrate = -1; CooldownSlot = 1; Projectile.timeLeft = timeLeft; + + if (Main.getGoodWorld) + Projectile.extraUpdates = 1; } public override void SendExtraAI(BinaryWriter writer) diff --git a/Projectiles/Boss/ArtemisLaser.cs b/Projectiles/Boss/ArtemisLaser.cs index 03ff3c47ff..f9efd1bae0 100644 --- a/Projectiles/Boss/ArtemisLaser.cs +++ b/Projectiles/Boss/ArtemisLaser.cs @@ -104,7 +104,7 @@ namespace CalamityMod.Projectiles.Boss // If a velocity is in reserve, set the true velocity to it and make it as "taken" by setting it to <0,0> if (Velocity != Vector2.Zero) { - Projectile.extraUpdates = 3; + Projectile.extraUpdates = Main.getGoodWorld ? 4 : 3; Projectile.velocity = Velocity * ((CalamityWorld.malice || BossRushEvent.BossRushActive) ? 1.25f : 1f); Velocity = Vector2.Zero; Projectile.netUpdate = true; diff --git a/Projectiles/Boss/ThanatosLaser.cs b/Projectiles/Boss/ThanatosLaser.cs index 6fbab0fbae..c0eff91248 100644 --- a/Projectiles/Boss/ThanatosLaser.cs +++ b/Projectiles/Boss/ThanatosLaser.cs @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Boss // If a velocity is in reserve, set the true velocity to it and make it as "taken" by setting it to <0,0> if (Velocity != Vector2.Zero) { - Projectile.extraUpdates = 3; + Projectile.extraUpdates = Main.getGoodWorld ? 4 : 3; Projectile.velocity = Velocity * ((CalamityWorld.malice || BossRushEvent.BossRushActive) ? 1.25f : 1f); Velocity = Vector2.Zero; Projectile.netUpdate = true; @@ -161,7 +161,7 @@ namespace CalamityMod.Projectiles.Boss // If a velocity is in reserve, set the true velocity to it and make it as "taken" by setting it to <0,0> if (Velocity != Vector2.Zero) { - Projectile.extraUpdates = 3; + Projectile.extraUpdates = Main.getGoodWorld ? 4 : 3; Projectile.velocity = Velocity * ((CalamityWorld.malice || BossRushEvent.BossRushActive) ? 1.25f : 1f); Velocity = Vector2.Zero; Projectile.netUpdate = true;