1 - Fixed an EoW alpha issue.

2 - Fixed non-rev Queen Bee enrage.
3 - Fixed non-rev Golem Free Head drawing.
This commit is contained in:
mountaindrew10 committed 2024-03-05 02:31:36 -06:00
1 parent 75304f170f
commit 3954a8fe2b
3 files changed
+27 -3

No files matched your search

+6 -2
View File
@@ -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);
@@ -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;
}
@@ -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)