diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index 418387cc20..f47c219b0d 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -5459,7 +5459,7 @@ namespace CalamityMod.NPCs else npc.localAI[1] = CalamityGlobalNPC.biomeEnrageTimerMax; - bool biomeEnraged = npc.localAI[1] <= 0f || malice; + bool biomeEnraged = npc.localAI[1] <= 0f; npc.Calamity().CurrentlyEnraged = biomeEnraged || enraged; diff --git a/NPCs/ExoMechs/Ares/AresBody.cs b/NPCs/ExoMechs/Ares/AresBody.cs index a8a4ff7ee8..f9246dce8e 100644 --- a/NPCs/ExoMechs/Ares/AresBody.cs +++ b/NPCs/ExoMechs/Ares/AresBody.cs @@ -643,6 +643,32 @@ namespace CalamityMod.NPCs.ExoMechs.Ares calamityGlobalNPC.newAI[2] += 1f; if (calamityGlobalNPC.newAI[2] > deathrayPhaseGateValue) { + // Despawn stupid fucking dog shit to avoid screaming the word "cunt" + for (int x = 0; x < Main.maxProjectiles; x++) + { + Projectile projectile = Main.projectile[x]; + if (projectile.active) + { + if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType() || + projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType() || + projectile.type == ModContent.ProjectileType()) + { + if (projectile.timeLeft > 15) + projectile.timeLeft = 15; + + if (projectile.type == ModContent.ProjectileType()) + { + projectile.ai[0] = -1f; + projectile.ai[1] = -1f; + } + else if (projectile.type == ModContent.ProjectileType()) + projectile.ai[0] = -1f; + } + else if (projectile.type == ModContent.ProjectileType()) + projectile.Kill(); + } + } + calamityGlobalNPC.newAI[2] = 0f; AIState = (float)Phase.Deathrays; @@ -705,7 +731,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares // Fire deathray telegraph beams if (calamityGlobalNPC.newAI[2] == 1f) { - // Despawn stupid fucking dog shit to avoid screaming the word "cunt" + // Despawn stupid fucking dog shit to avoid screaming the word "cunt", again for (int x = 0; x < Main.maxProjectiles; x++) { Projectile projectile = Main.projectile[x]; diff --git a/NPCs/ExoMechs/Ares/AresLaserCannon.cs b/NPCs/ExoMechs/Ares/AresLaserCannon.cs index e58b872828..d6480af875 100644 --- a/NPCs/ExoMechs/Ares/AresLaserCannon.cs +++ b/NPCs/ExoMechs/Ares/AresLaserCannon.cs @@ -317,7 +317,10 @@ namespace CalamityMod.NPCs.ExoMechs.Ares revenge ? AresBody.deathrayTelegraphDuration_Rev : expertMode ? AresBody.deathrayTelegraphDuration_Expert : AresBody.deathrayTelegraphDuration_Normal; // Variable to disable deathray firing - bool doNotFire = calamityGlobalNPC_Body.newAI[1] == (float)AresBody.SecondaryPhase.PassiveAndImmune || (calamityGlobalNPC_Body.newAI[2] >= deathrayTelegraphDuration + AresBody.deathrayDuration - 1 && fireNormalLasers); + bool doNotFire = calamityGlobalNPC_Body.newAI[1] == (float)AresBody.SecondaryPhase.PassiveAndImmune || + (calamityGlobalNPC_Body.newAI[2] >= deathrayTelegraphDuration + AresBody.deathrayDuration - 1 && fireNormalLasers) || + (calamityGlobalNPC_Body.newAI[3] == 0f && fireNormalLasers); + if (doNotFire) { AIState = (float)Phase.Nothing; diff --git a/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs b/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs index 0a863329d0..805aa7df4b 100644 --- a/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs +++ b/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs @@ -319,7 +319,10 @@ namespace CalamityMod.NPCs.ExoMechs.Ares revenge ? AresBody.deathrayTelegraphDuration_Rev : expertMode ? AresBody.deathrayTelegraphDuration_Expert : AresBody.deathrayTelegraphDuration_Normal; // Variable to cancel plasma bolt firing - bool doNotFire = calamityGlobalNPC_Body.newAI[1] == (float)AresBody.SecondaryPhase.PassiveAndImmune || (calamityGlobalNPC_Body.newAI[2] >= deathrayTelegraphDuration + AresBody.deathrayDuration - 1 && calamityGlobalNPC_Body.newAI[0] == (float)AresBody.Phase.Deathrays); + bool doNotFire = calamityGlobalNPC_Body.newAI[1] == (float)AresBody.SecondaryPhase.PassiveAndImmune || + (calamityGlobalNPC_Body.newAI[2] >= deathrayTelegraphDuration + AresBody.deathrayDuration - 1 && calamityGlobalNPC_Body.newAI[0] == (float)AresBody.Phase.Deathrays) || + (calamityGlobalNPC_Body.newAI[3] == 0f && calamityGlobalNPC_Body.newAI[0] == (float)AresBody.Phase.Deathrays); + if (doNotFire) { AIState = (float)Phase.Nothing; diff --git a/NPCs/ExoMechs/Ares/AresTeslaCannon.cs b/NPCs/ExoMechs/Ares/AresTeslaCannon.cs index 0ff7a33137..e72f756994 100644 --- a/NPCs/ExoMechs/Ares/AresTeslaCannon.cs +++ b/NPCs/ExoMechs/Ares/AresTeslaCannon.cs @@ -317,7 +317,10 @@ namespace CalamityMod.NPCs.ExoMechs.Ares revenge ? AresBody.deathrayTelegraphDuration_Rev : expertMode ? AresBody.deathrayTelegraphDuration_Expert : AresBody.deathrayTelegraphDuration_Normal; // Variable to cancel tesla orb firing - bool doNotFire = calamityGlobalNPC_Body.newAI[1] == (float)AresBody.SecondaryPhase.PassiveAndImmune || (calamityGlobalNPC_Body.newAI[2] >= deathrayTelegraphDuration + AresBody.deathrayDuration - 1 && calamityGlobalNPC_Body.newAI[0] == (float)AresBody.Phase.Deathrays); + bool doNotFire = calamityGlobalNPC_Body.newAI[1] == (float)AresBody.SecondaryPhase.PassiveAndImmune || + (calamityGlobalNPC_Body.newAI[2] >= deathrayTelegraphDuration + AresBody.deathrayDuration - 1 && calamityGlobalNPC_Body.newAI[0] == (float)AresBody.Phase.Deathrays) || + (calamityGlobalNPC_Body.newAI[3] == 0f && calamityGlobalNPC_Body.newAI[0] == (float)AresBody.Phase.Deathrays); + if (doNotFire) { AIState = (float)Phase.Nothing;