1 - Boss HP bar enrage and defense/DR boost support for EoL and Queen Slime.

2 - Aquatic Scourge FTW stuff.
This commit is contained in:
mountaindrew10 committed 2022-06-18 05:12:24 -05:00
1 parent 8e612b97b8
commit a4e6a3929b
7 files changed
+31 -11

No files matched your search

+3 -1
View File
@@ -44,7 +44,9 @@ namespace CalamityMod.NPCs.AquaticScourge
NPC.chaseable = false;
NPC.canGhostHeal = false;
if (CalamityWorld.malice || BossRushEvent.BossRushActive)
if (Main.getGoodWorld)
NPC.scale = 1.5f;
else if (CalamityWorld.malice || BossRushEvent.BossRushActive)
NPC.scale = 1.25f;
else if (CalamityWorld.death)
NPC.scale = 1.2f;
+3 -1
View File
@@ -43,7 +43,9 @@ namespace CalamityMod.NPCs.AquaticScourge
NPC.chaseable = false;
NPC.canGhostHeal = false;
if (CalamityWorld.malice || BossRushEvent.BossRushActive)
if (Main.getGoodWorld)
NPC.scale = 1.5f;
else if (CalamityWorld.malice || BossRushEvent.BossRushActive)
NPC.scale = 1.25f;
else if (CalamityWorld.death)
NPC.scale = 1.2f;
+5 -3
View File
@@ -61,7 +61,9 @@ namespace CalamityMod.NPCs.AquaticScourge
NPC.DeathSound = SoundID.NPCDeath1;
NPC.netAlways = true;
if (CalamityWorld.malice || BossRushEvent.BossRushActive)
if (Main.getGoodWorld)
NPC.scale = 1.5f;
else if (CalamityWorld.malice || BossRushEvent.BossRushActive)
NPC.scale = 1.25f;
else if (CalamityWorld.death)
NPC.scale = 1.2f;
@@ -108,7 +110,7 @@ namespace CalamityMod.NPCs.AquaticScourge
public override void AI()
{
if (NPC.justHit || NPC.life <= NPC.lifeMax * 0.999 || BossRushEvent.BossRushActive)
if (NPC.justHit || NPC.life <= NPC.lifeMax * 0.999 || BossRushEvent.BossRushActive || Main.getGoodWorld)
Music = CalamityMod.Instance.GetMusicFromMusicMod("AquaticScourge") ?? MusicID.Boss2;
CalamityAI.AquaticScourgeAI(NPC, Mod, true);
@@ -180,7 +182,7 @@ namespace CalamityMod.NPCs.AquaticScourge
if (spawnInfo.Player.Calamity().ZoneSulphur && spawnInfo.Water)
{
if (!NPC.AnyNPCs(ModContent.NPCType<AquaticScourgeHead>()))
return 0.01f;
return (Main.getGoodWorld ? 0.05f : 0.01f);
}
return 0f;
+3 -1
View File
@@ -43,7 +43,9 @@ namespace CalamityMod.NPCs.AquaticScourge
NPC.chaseable = false;
NPC.canGhostHeal = false;
if (CalamityWorld.malice || BossRushEvent.BossRushActive)
if (Main.getGoodWorld)
NPC.scale = 1.5f;
else if (CalamityWorld.malice || BossRushEvent.BossRushActive)
NPC.scale = 1.25f;
else if (CalamityWorld.death)
NPC.scale = 1.2f;
+7 -1
View File
@@ -40,7 +40,7 @@ namespace CalamityMod.NPCs
bool death = CalamityWorld.death || BossRushEvent.BossRushActive;
// Adjust hostility and stats
if (npc.justHit || npc.life <= npc.lifeMax * 0.999 || BossRushEvent.BossRushActive)
if (npc.justHit || npc.life <= npc.lifeMax * 0.999 || BossRushEvent.BossRushActive || Main.getGoodWorld)
{
if (calamityGlobalNPC.newAI[0] == 0f)
{
@@ -426,6 +426,12 @@ namespace CalamityMod.NPCs
float accelerationMultiplier = MathHelper.Lerp(1f, 2f, npc.localAI[3] / colorFadeTimeAfterSpiral);
num189 *= accelerationMultiplier;
}
if (Main.getGoodWorld)
{
num188 *= 1.15f;
num189 *= 1.15f;
}
}
float num48 = num188 * 1.3f;
@@ -37,10 +37,14 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
if (shouldBeInPhase2ButIsStillInPhase1)
calamityGlobalNPC.DR = 0.99f;
bool dayTimeEnrage = NPC.ShouldEmpressBeEnraged() || malice;
calamityGlobalNPC.CurrentlyIncreasingDefenseOrDR = shouldBeInPhase2ButIsStillInPhase1 || npc.ai[0] == 6f;
bool dayTimeEnrage = NPC.ShouldEmpressBeEnraged();
if (npc.life == npc.lifeMax && dayTimeEnrage && !npc.AI_120_HallowBoss_IsGenuinelyEnraged())
npc.ai[3] += 2f;
npc.Calamity().CurrentlyEnraged = !BossRushEvent.BossRushActive && dayTimeEnrage;
int projectileDamageMultiplier = dayTimeEnrage ? 2 : 1;
Vector2 rainbowStreakDistance = new Vector2(-250f, -350f);
@@ -1,4 +1,5 @@
using CalamityMod.World;
using CalamityMod.Events;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
@@ -14,8 +15,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
public static bool BuffedQueenSlimeAI(NPC npc, Mod mod)
{
// Difficulty bools
bool malice = CalamityWorld.malice;
bool death = CalamityWorld.death;
bool malice = CalamityWorld.malice || BossRushEvent.BossRushActive;
bool death = CalamityWorld.death || BossRushEvent.BossRushActive;
npc.Calamity().CurrentlyEnraged = !BossRushEvent.BossRushActive && malice;
// Percent life remaining
float lifeRatio = npc.life / (float)npc.lifeMax;