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

◆ IsStandActive()

static bool Terraria.GameContent.Events.DD2Event.IsStandActive ( int x,
int y )
inlinestatic

Definition at line 1748 of file DD2Event.cs.

1749 {
1750 Vector2 target = new Vector2(x * 16 + 8, y * 16 + 8);
1751 for (int i = 0; i < 200; i++)
1752 {
1753 NPC nPC = Main.npc[i];
1754 if (nPC != null && nPC.active && nPC.type == 548)
1755 {
1756 return nPC.Bottom.Distance(target) < 36f;
1757 }
1758 }
1759 return false;
1760 }

References Terraria.Main.npc.

Referenced by Terraria.GameContent.Events.DD2Event.RequestToSkipWaitTime().