From f95dd45a48ddf649191c34bc2ca9181510936c6f Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sun, 26 Mar 2023 10:50:04 -0500 Subject: [PATCH] Rev+ Queen Bee now only gets a surface enrage if her target doesn't have unsafe hive walls behind them. --- NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs b/NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs index 94c7a01aef..287249acfc 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs @@ -20,8 +20,16 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses bool bossRush = BossRushEvent.BossRushActive; bool death = CalamityWorld.death || bossRush; + bool enrage = true; + int num = (int)Main.player[npc.target].Center.X / 16; + int num2 = (int)Main.player[npc.target].Center.Y / 16; + + Tile tile = Framing.GetTileSafely(num, num2); + if (tile.WallType == WallID.HiveUnsafe) + enrage = false; + float enrageScale = death ? 0.25f : 0f; - if ((npc.position.Y / 16f) < Main.worldSurface || bossRush) + if (((npc.position.Y / 16f) < Main.worldSurface && enrage) || bossRush) { npc.Calamity().CurrentlyEnraged = !bossRush; enrageScale += 0.5f;