Terraria v1.4.4.9
Terraria 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 if (delay != 0 || !Main.hardMode || !NPC.downedGolemBoss || !NPC.downedBoss3)
72 {
73 return false;
74 }
75 if (y < 7 || WorldGen.SolidTile(Main.tile[x, y - 7]))
76 {
77 return false;
78 }
79 if (NPC.AnyNPCs(437))
80 {
81 return false;
82 }
83 Vector2 center = new Vector2(x * 16 + 8, y * 16 - 64 - 8 - 27);
84 Point[] spawnPoints = null;
85 if (!CheckFloor(center, out spawnPoints))
86 {
87 return false;
88 }
89 return true;
90 }
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().