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

◆ AnyoneNearCultists()

static bool Terraria.NPC.AnyoneNearCultists ( )
inlinestatic

Definition at line 90526 of file NPC.cs.

90527 {
90528 //IL_0018: Unknown result type (might be due to invalid IL or missing references)
90529 //IL_0027: Unknown result type (might be due to invalid IL or missing references)
90530 //IL_002c: Unknown result type (might be due to invalid IL or missing references)
90531 //IL_0031: Unknown result type (might be due to invalid IL or missing references)
90532 //IL_0045: Unknown result type (might be due to invalid IL or missing references)
90533 //IL_0046: Unknown result type (might be due to invalid IL or missing references)
90534 //IL_0050: Unknown result type (might be due to invalid IL or missing references)
90535 //IL_0055: Unknown result type (might be due to invalid IL or missing references)
90536 //IL_0074: Unknown result type (might be due to invalid IL or missing references)
90537 //IL_007f: Unknown result type (might be due to invalid IL or missing references)
90538 //IL_0096: Unknown result type (might be due to invalid IL or missing references)
90539 //IL_00a1: Unknown result type (might be due to invalid IL or missing references)
90540 //IL_00b0: Unknown result type (might be due to invalid IL or missing references)
90541 int num = FindFirstNPC(437);
90542 if (num == -1)
90543 {
90544 return false;
90545 }
90546 Rectangle rectangle = Utils.CenteredRectangle(Main.npc[num].Center, new Vector2(2500f, 1500f));
90547 Rectangle r = default(Rectangle);
90548 ((Rectangle)(ref r))._002Ector(0, 0, 2500, 1500);
90549 Vector2 vector = r.Size() / 2f;
90550 for (int i = 0; i < 255; i++)
90551 {
90552 if (Main.player[i].active)
90553 {
90554 r.X = (int)Main.player[i].Center.X - (int)vector.X;
90555 r.Y = (int)Main.player[i].Center.Y - (int)vector.Y;
90556 if (((Rectangle)(ref rectangle)).Intersects(r))
90557 {
90558 return true;
90559 }
90560 }
90561 }
90562 return false;
90563 }
static int FindFirstNPC(int Type)
Returns the index within F:Terraria.Main.npc of the the first active NPC in the world of the given NP...
Definition NPC.cs:106632

References Terraria.Utils.CenteredRectangle(), Terraria.Main.npc, and Terraria.Main.player.

Referenced by Terraria.MessageBuffer.GetData(), Terraria.Player.ItemCheck_CheckCanUse(), and Terraria.Player.ItemCheck_UseEventItems().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: