diff --git a/NPCs/NormalNPCs/SkeletronPrime2.cs b/NPCs/NormalNPCs/SkeletronPrime2.cs index 898692c130..f98e80ad41 100644 --- a/NPCs/NormalNPCs/SkeletronPrime2.cs +++ b/NPCs/NormalNPCs/SkeletronPrime2.cs @@ -287,7 +287,7 @@ namespace CalamityMod.NPCs.NormalNPCs { // Start spin phase after 1.875 seconds NPC.ai[2] += phase3 ? 1.2f : 0.8f; - if (NPC.ai[2] >= (90f - (death ? 60f * (1f - lifeRatio) : 0f)) && (!otherHeadChargingOrSpinning || phase3) && canUseAttackInMaster) + if (NPC.ai[2] >= (90f - (death ? 15f * (1f - lifeRatio) : 0f)) && (!otherHeadChargingOrSpinning || phase3) && canUseAttackInMaster) { bool shouldSpinAround = NPC.ai[1] == 4f && NPC.position.Y < Main.player[NPC.target].position.Y - 400f && Vector2.Distance(Main.player[NPC.target].Center, NPC.Center) < 600f && Vector2.Distance(Main.player[NPC.target].Center, NPC.Center) > 400f; @@ -405,7 +405,7 @@ namespace CalamityMod.NPCs.NormalNPCs { NPC.localAI[0] = 0f; - int totalProjectiles = bossRush ? 20 : death ? 15 : 10; + int totalProjectiles = bossRush ? 20 : death ? 12 : 10; float radians = MathHelper.TwoPi / totalProjectiles; int type = ProjectileID.FrostBeam; int damage = NPC.GetProjectileDamage(type); @@ -615,9 +615,9 @@ namespace CalamityMod.NPCs.NormalNPCs NPC.rotation = NPC.velocity.X / 50f; - float bombSpawnDivisor = bossRush ? 14f : death ? 22f - (float)Math.Round(8f * (1f - lifeRatio)) : 22f; + float bombSpawnDivisor = bossRush ? 14f : death ? 22f - (float)Math.Round(5f * (1f - lifeRatio)) : 22f; float totalBombs = 6f; - int bombSpread = bossRush ? 250 : death ? 150 : 100; + int bombSpread = bossRush ? 250 : death ? 125 : 100; // Spin for about 3 seconds float spinVelocity = 24f; @@ -660,7 +660,7 @@ namespace CalamityMod.NPCs.NormalNPCs if (Main.netMode != NetmodeID.MultiplayerClient) { Vector2 headCenter = NPC.Center; - float enragedHeadSpeed = 6f + (death ? 3f * (1f - lifeRatio) : 0f); + float enragedHeadSpeed = 6f + (death ? 2f * (1f - lifeRatio) : 0f); float enragedHeadBombTargetX = Main.player[NPC.target].Center.X - headCenter.X + Main.rand.Next(-20, 21); float enragedHeadBombTargetY = Main.player[NPC.target].Center.Y - headCenter.Y + Main.rand.Next(-20, 21); float enragedHeadBombTargetDist = (float)Math.Sqrt(enragedHeadBombTargetX * enragedHeadBombTargetX + enragedHeadBombTargetY * enragedHeadBombTargetY); @@ -731,7 +731,7 @@ namespace CalamityMod.NPCs.NormalNPCs NPC.localAI[3] += 1f; if (Vector2.Distance(NPC.Center, destination) < 160f || NPC.ai[2] > 0f || NPC.localAI[3] > 120f) { - float bombSpawnDivisor = death ? 40f : 60f; + float bombSpawnDivisor = death ? 50f : 60f; float totalBombSpreads = 2f; NPC.ai[2] += 1f; if (NPC.ai[2] % bombSpawnDivisor == 0f) diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronPrimeAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronPrimeAI.cs index 463f4de7c3..a062ee9db8 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronPrimeAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronPrimeAI.cs @@ -263,7 +263,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses { // Start spin phase after 1.5 seconds npc.ai[2] += phase3 ? 1.5f : 1f; - if (npc.ai[2] >= (90f - (death ? 60f * (1f - lifeRatio) : 0f)) && (!otherHeadChargingOrSpinning || !masterMode || phase3) && (canUseAttackInMaster || !masterMode)) + if (npc.ai[2] >= (90f - (death ? (masterMode ? 15f : 60f) * (1f - lifeRatio) : 0f)) && (!otherHeadChargingOrSpinning || !masterMode || phase3) && (canUseAttackInMaster || !masterMode)) { bool shouldSpinAround = npc.ai[1] == 4f && npc.position.Y < Main.player[npc.target].position.Y - 400f && Vector2.Distance(Main.player[npc.target].Center, npc.Center) < 600f && Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 400f; @@ -382,7 +382,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses { npc.localAI[0] = 0f; - int totalProjectiles = bossRush ? 24 : death ? 18 : 12; + int totalProjectiles = bossRush ? 24 : death ? (masterMode ? 15 : 18) : 12; float radians = MathHelper.TwoPi / totalProjectiles; int type = ProjectileID.DeathLaser; int damage = npc.GetProjectileDamage(type); @@ -592,9 +592,9 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses npc.rotation = npc.velocity.X / 50f; - float skullSpawnDivisor = bossRush ? 9f : death ? 15f - (float)Math.Round(5f * (1f - lifeRatio)) : 15f; + float skullSpawnDivisor = bossRush ? 9f : death ? 15f - (float)Math.Round((masterMode ? 3f : 5f) * (1f - lifeRatio)) : 15f; float totalSkulls = 12f; - int skullSpread = bossRush ? 250 : death ? 150 : 100; + int skullSpread = bossRush ? 250 : death ? (masterMode ? 125 : 150) : 100; // Spin for about 3 seconds float spinVelocity = 30f; @@ -634,7 +634,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if (Main.netMode != NetmodeID.MultiplayerClient) { Vector2 headCenter = npc.Center; - float enragedHeadSpeed = (masterMode ? 5f : 4f) + (death ? (masterMode ? 2.5f : 2f) * (1f - lifeRatio) : 0f); + float enragedHeadSpeed = (masterMode ? 5f : 4f) + (death ? (masterMode ? 1f : 2f) * (1f - lifeRatio) : 0f); float enragedHeadSkullTargetX = Main.player[npc.target].Center.X - headCenter.X + Main.rand.Next(-20, 21); float enragedHeadSkullTargetY = Main.player[npc.target].Center.Y - headCenter.Y + Main.rand.Next(-20, 21); float enragedHeadSkullTargetDist = (float)Math.Sqrt(enragedHeadSkullTargetX * enragedHeadSkullTargetX + enragedHeadSkullTargetY * enragedHeadSkullTargetY); @@ -663,7 +663,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if (npc.localAI[0] % 3f == 0f) { - int probeLimit = death ? 4 : 2; + int probeLimit = death ? (masterMode ? 3 : 4) : 2; if (NPC.CountNPCS(NPCID.Probe) < probeLimit) NPC.NewNPC(npc.GetSource_FromAI(), (int)headCenter.X, (int)headCenter.Y + 30, NPCID.Probe); } @@ -718,7 +718,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses npc.localAI[3] += 1f; if (Vector2.Distance(npc.Center, destination) < 80f || npc.ai[2] > 0f || npc.localAI[3] > 120f) { - float missileSpawnDivisor = death ? (masterMode ? 6f : 8f) : (masterMode ? 9f : 12f); + float missileSpawnDivisor = death ? 8f : (masterMode ? 10f : 12f); float totalMissiles = masterMode ? 12f : 10f; npc.ai[2] += 1f; if (npc.ai[2] % missileSpawnDivisor == 0f)