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

◆ CheckRitual()

static bool Terraria.GameContent.Events.CultistRitual.CheckRitual ( int x,
int y )
inlinestaticprivate

Definition at line 69 of file CultistRitual.cs.

70 {
71 //IL_0064: Unknown result type (might be due to invalid IL or missing references)
72 if (delay != 0.0 || !Main.hardMode || !NPC.downedGolemBoss || !NPC.downedBoss3)
73 {
74 return false;
75 }
76 if (y < 7 || WorldGen.SolidTile(Main.tile[x, y - 7]))
77 {
78 return false;
79 }
80 if (NPC.AnyNPCs(437))
81 {
82 return false;
83 }
84 Vector2 center = new Vector2((float)(x * 16 + 8), (float)(y * 16 - 64 - 8 - 27));
85 Point[] spawnPoints = null;
87 {
88 return false;
89 }
90 return true;
91 }
static bool CheckFloor(Vector2 Center, out Point[] spawnPoints)

References Terraria.NPC.AnyNPCs(), Terraria.GameContent.Events.CultistRitual.CheckFloor(), Terraria.GameContent.Events.CultistRitual.delay, Terraria.NPC.downedBoss3, Terraria.NPC.downedGolemBoss, Terraria.Main.hardMode, Terraria.WorldGen.SolidTile(), and Terraria.Main.tile.

Referenced by Terraria.GameContent.Events.CultistRitual.TrySpawning().

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