diff --git a/NPCs/AquaticScourge/AquaticScourgeBody.cs b/NPCs/AquaticScourge/AquaticScourgeBody.cs index d25c134b4d..6f5cab3b5f 100644 --- a/NPCs/AquaticScourge/AquaticScourgeBody.cs +++ b/NPCs/AquaticScourge/AquaticScourgeBody.cs @@ -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; diff --git a/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs b/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs index 3ae566a23b..6b561e7d90 100644 --- a/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs +++ b/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs @@ -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; diff --git a/NPCs/AquaticScourge/AquaticScourgeHead.cs b/NPCs/AquaticScourge/AquaticScourgeHead.cs index 6d36b57ec8..70f38c134c 100644 --- a/NPCs/AquaticScourge/AquaticScourgeHead.cs +++ b/NPCs/AquaticScourge/AquaticScourgeHead.cs @@ -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())) - return 0.01f; + return (Main.getGoodWorld ? 0.05f : 0.01f); } return 0f; diff --git a/NPCs/AquaticScourge/AquaticScourgeTail.cs b/NPCs/AquaticScourge/AquaticScourgeTail.cs index 3a42faf9b1..99f8f0c5c2 100644 --- a/NPCs/AquaticScourge/AquaticScourgeTail.cs +++ b/NPCs/AquaticScourge/AquaticScourgeTail.cs @@ -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; diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index 3351efb486..ffbf3bbf4c 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -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; diff --git a/NPCs/VanillaNPCOverrides/Bosses/EmpressofLightAI.cs b/NPCs/VanillaNPCOverrides/Bosses/EmpressofLightAI.cs index 1509c87ddc..4f92ae0615 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/EmpressofLightAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/EmpressofLightAI.cs @@ -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); diff --git a/NPCs/VanillaNPCOverrides/Bosses/QueenSlimeAI.cs b/NPCs/VanillaNPCOverrides/Bosses/QueenSlimeAI.cs index 84e6622c9d..c77d2b3788 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/QueenSlimeAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/QueenSlimeAI.cs @@ -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;