Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ShouldEmpressBeEnraged()

static bool Terraria.NPC.ShouldEmpressBeEnraged ( )
inlinestatic

Definition at line 39121 of file NPC.cs.

39122 {
39123 if (Main.remixWorld)
39124 {
39125 if (empressRageMode)
39126 {
39127 return true;
39128 }
39129 int num = -1;
39130 for (int i = 0; i < 200; i++)
39131 {
39132 if (Main.npc[i].type == 636)
39133 {
39134 num = i;
39135 break;
39136 }
39137 }
39138 if (num >= 0 && (double)Main.npc[num].Center.Y < Main.worldSurface * 16.0)
39139 {
39140 empressRageMode = true;
39141 return true;
39142 }
39143 empressRageMode = false;
39144 return false;
39145 }
39146 return Main.dayTime;
39147 }
static bool empressRageMode
Definition NPC.cs:585

References Terraria.Main.dayTime, Terraria.NPC.empressRageMode, Terraria.Main.npc, Terraria.Main.remixWorld, and Terraria.Main.worldSurface.

Referenced by Terraria.NPC.AI_120_HallowBoss(), Terraria.Projectile.AI_171_GetColor(), Terraria.Projectile.AI_173_GetColor(), Terraria.Main.DrawNPCDirect_HallowBoss(), and Terraria.Main.DrawProjDirect().