diff --git a/NPCs/CalamityGlobalAI.cs b/NPCs/CalamityGlobalAI.cs index b86ea5a0b5..a0b066a89c 100644 --- a/NPCs/CalamityGlobalAI.cs +++ b/NPCs/CalamityGlobalAI.cs @@ -12091,7 +12091,7 @@ namespace CalamityMod.NPCs int iceMistAmt = phase3 ? 2 : 1; int fireballFireRate = phase5 ? 10 : 12; float fireballSpeed = (phase6 ? 7.5f : 6f) + (death ? 2f * (1f - lifeRatio) : 0f) - (isCultist ? 0f : 3f); - int lightningOrbPhaseTime = phase2 ? 150 : 180; + int lightningOrbPhaseTime = phase2 ? 90 : 120; int ancientLightSpawnRate = phase4 ? 25 : 30; int ancientLightAmt = phase4 ? 3 : 2; int ancientDoomLimit = 10; @@ -12919,8 +12919,8 @@ namespace CalamityMod.NPCs } int num52 = list8.Count + 1; - if (num52 > 3) - num52 = 3; + if (num52 > 2) + num52 = 2; int num53 = Math.Sign(player.Center.X - center.X); if (num53 != 0) @@ -13217,12 +13217,15 @@ namespace CalamityMod.NPCs kill = true; if (Main.netMode != NetmodeID.MultiplayerClient) { - for (int num1501 = 0; num1501 < 4; num1501++) - { - Vector2 vector255 = new Vector2(0f, -splitProjVelocity).RotatedBy(MathHelper.PiOver2 * num1501); - Projectile.NewProjectile(npc.Center, vector255, type, damage, 0f, Main.myPlayer); - } - } + int totalProjectiles = (Main.npc[(int)npc.ai[0]].type == NPCID.CultistBoss && !phase3) ? 8 : 4; + float radians = MathHelper.TwoPi / totalProjectiles; + Vector2 spinningPoint = new Vector2(0f, -splitProjVelocity); + for (int k = 0; k < totalProjectiles; k++) + { + Vector2 vector255 = spinningPoint.RotatedBy(radians * k); + Projectile.NewProjectile(npc.Center, vector255, type, damage, 0f, Main.myPlayer); + } + } } if (kill) diff --git a/NPCs/ExoMechs/Ares/AresGaussNuke.cs b/NPCs/ExoMechs/Ares/AresGaussNuke.cs index 94c4d12fa0..1d7a3bb008 100644 --- a/NPCs/ExoMechs/Ares/AresGaussNuke.cs +++ b/NPCs/ExoMechs/Ares/AresGaussNuke.cs @@ -12,7 +12,6 @@ using Terraria.ModLoader; namespace CalamityMod.NPCs.ExoMechs.Ares { - //[AutoloadBossHead] public class AresGaussNuke : ModNPC { public enum Phase diff --git a/NPCs/ExoMechs/Ares/AresLaserCannon.cs b/NPCs/ExoMechs/Ares/AresLaserCannon.cs index b63e55f14f..6e75ae655d 100644 --- a/NPCs/ExoMechs/Ares/AresLaserCannon.cs +++ b/NPCs/ExoMechs/Ares/AresLaserCannon.cs @@ -12,7 +12,6 @@ using Terraria.ModLoader; namespace CalamityMod.NPCs.ExoMechs.Ares { - //[AutoloadBossHead] public class AresLaserCannon : ModNPC { public enum Phase diff --git a/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs b/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs index d1f0324618..349e955dd4 100644 --- a/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs +++ b/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs @@ -12,7 +12,6 @@ using Terraria.ModLoader; namespace CalamityMod.NPCs.ExoMechs.Ares { - //[AutoloadBossHead] public class AresPlasmaFlamethrower : ModNPC { public enum Phase diff --git a/NPCs/ExoMechs/Ares/AresTeslaCannon.cs b/NPCs/ExoMechs/Ares/AresTeslaCannon.cs index e9e53b7570..62aad8fdab 100644 --- a/NPCs/ExoMechs/Ares/AresTeslaCannon.cs +++ b/NPCs/ExoMechs/Ares/AresTeslaCannon.cs @@ -12,7 +12,6 @@ using Terraria.ModLoader; namespace CalamityMod.NPCs.ExoMechs.Ares { - //[AutoloadBossHead] public class AresTeslaCannon : ModNPC { public enum Phase diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 4babe3c05d..255fab5554 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -852,8 +852,11 @@ namespace CalamityMod.Projectiles if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityWorld.malice) { - if (projectile.type == ProjectileID.DemonSickle && CalamityPlayer.areThereAnyDamnBosses) + if (projectile.type == ProjectileID.DemonSickle) { + if (Main.wof < 0 || !Main.npc[Main.wof].active || Main.npc[Main.wof].life <= 0) + return true; + if (projectile.ai[0] == 0f) Main.PlaySound(SoundID.Item8, projectile.position); @@ -1166,7 +1169,13 @@ namespace CalamityMod.Projectiles return false; } - else if (projectile.type == ProjectileID.CultistBossLightningOrb) + else if (projectile.type == ProjectileID.AncientDoomProjectile) + { + if (projectile.velocity.Length() < 12f) + projectile.velocity *= 1.02f; + } + + else if (projectile.type == ProjectileID.CultistBossLightningOrb && (CalamityWorld.malice || BossRushEvent.BossRushActive)) { if (NPC.AnyNPCs(NPCID.CultistBoss)) { @@ -1313,7 +1322,7 @@ namespace CalamityMod.Projectiles float scaleFactor2 = projectile.velocity.Length(); vector11.Normalize(); vector11 *= scaleFactor2; - projectile.velocity = (projectile.velocity * 15f + vector11) / 16f; + projectile.velocity = (projectile.velocity * 20f + vector11) / 21f; projectile.velocity.Normalize(); projectile.velocity *= scaleFactor2;