diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index a5f2592680..2bdbffe1ad 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -1340,8 +1340,6 @@ namespace CalamityMod.NPCs else if (npc.type == NPCID.GolemHeadFree) { npc.lifeMax = (int)Math.Round(npc.lifeMax * 2D); - npc.width = 88; - npc.height = 90; npc.dontTakeDamage = false; } else if (npc.type == NPCID.HallowBoss) @@ -2358,6 +2356,12 @@ namespace CalamityMod.NPCs canBreakPlayerDefense = true; break; + // Fix drawing issues with Golem's Free Head + case NPCID.GolemHeadFree: + npc.width = 88; + npc.height = 90; + break; + // Make Core hitbox bigger and reduce HP case NPCID.MartianSaucerCore: npc.lifeMax = (int)Math.Round(npc.lifeMax * 0.6); diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/EaterOfWorldsAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/EaterOfWorldsAI.cs index 6aac78f7c5..bf42e845a3 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/EaterOfWorldsAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/EaterOfWorldsAI.cs @@ -680,6 +680,12 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses npc.alpha = 0; } } + else if (npc.type > NPCID.EaterofWorldsHead && npc.alpha > 0) + { + npc.alpha -= 42; + if (npc.alpha < 0) + npc.alpha = 0; + } // Manually sync newAI because there is no GlobalNPC.SendExtraAI if (npc.active && npc.netUpdate && Main.netMode == NetmodeID.Server) @@ -1180,6 +1186,12 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses npc.alpha = 0; } } + else if (npc.type > NPCID.EaterofWorldsHead && npc.alpha > 0) + { + npc.alpha -= 42; + if (npc.alpha < 0) + npc.alpha = 0; + } return false; } diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/QueenBeeAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/QueenBeeAI.cs index e8bc9c64be..db9e870d2a 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/QueenBeeAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/QueenBeeAI.cs @@ -838,9 +838,17 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if (npc.target < 0 || npc.target == Main.maxPlayers || Main.player[npc.target].dead || !Main.player[npc.target].active) npc.TargetClosest(); + bool enrage = true; + int targetTileX = (int)Main.player[npc.target].Center.X / 16; + int targetTileY = (int)Main.player[npc.target].Center.Y / 16; + + Tile tile = Framing.GetTileSafely(targetTileX, targetTileY); + if (tile.WallType == WallID.HiveUnsafe) + enrage = false; + bool dead4 = Main.player[npc.target].dead; float num644 = 0f; - if ((double)(npc.position.Y / 16f) < Main.worldSurface) + if ((double)(npc.position.Y / 16f) < Main.worldSurface && enrage) num644 += 1f; if (!Main.player[npc.target].ZoneJungle)