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

◆ ShouldEmpressBeEnraged()

static bool Terraria.NPC.ShouldEmpressBeEnraged ( )
inlinestatic

Definition at line 46913 of file NPC.cs.

46914 {
46915 //IL_0044: Unknown result type (might be due to invalid IL or missing references)
46916 if (Main.remixWorld)
46917 {
46918 if (empressRageMode)
46919 {
46920 return true;
46921 }
46922 int num = -1;
46923 for (int i = 0; i < 200; i++)
46924 {
46925 if (Main.npc[i].type == 636)
46926 {
46927 num = i;
46928 break;
46929 }
46930 }
46931 if (num >= 0 && (double)Main.npc[num].Center.Y < Main.worldSurface * 16.0)
46932 {
46933 empressRageMode = true;
46934 return true;
46935 }
46936 empressRageMode = false;
46937 return false;
46938 }
46939 return Main.dayTime;
46940 }
static bool empressRageMode
Definition NPC.cs:1227

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.DrawProj_DrawSpecialProjs().

+ Here is the caller graph for this function: