1 - Ares cannons no longer attack unfairly when Ares is transitioning to deathray phase.

2 - Old Duke is no longer turbo enraged at all times in malice.
This commit is contained in:
Andrew Marheine committed 2021-11-16 07:20:05 -06:00
1 parent 6a17ac09b0
commit cccdf445ac
5 files changed
+40 -5

No files matched your search

+1 -1
View File
@@ -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;
+27 -1
View File
@@ -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<AresTeslaOrb>() || projectile.type == ModContent.ProjectileType<AresPlasmaFireball>() ||
projectile.type == ModContent.ProjectileType<AresPlasmaBolt>() || projectile.type == ModContent.ProjectileType<AresGaussNukeProjectile>() ||
projectile.type == ModContent.ProjectileType<AresGaussNukeProjectileSpark>())
{
if (projectile.timeLeft > 15)
projectile.timeLeft = 15;
if (projectile.type == ModContent.ProjectileType<AresPlasmaFireball>())
{
projectile.ai[0] = -1f;
projectile.ai[1] = -1f;
}
else if (projectile.type == ModContent.ProjectileType<AresGaussNukeProjectile>())
projectile.ai[0] = -1f;
}
else if (projectile.type == ModContent.ProjectileType<AresGaussNukeProjectileBoom>())
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];
+4 -1
View File
@@ -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;
+4 -1
View File
@@ -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;
+4 -1
View File
@@ -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;