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

◆ Spawn_ForceClearArea()

static void Terraria.Player.Spawn_ForceClearArea ( int floorX,
int floorY )
inlinestaticprivate

Definition at line 36767 of file Player.cs.

36768 {
36769 for (int i = floorX - 1; i < floorX + 2; i++)
36770 {
36771 for (int j = floorY - 3; j < floorY; j++)
36772 {
36773 if (Main.tile[i, j] != null)
36774 {
36775 if (Main.tile[i, j].nactive() && Main.tileSolid[Main.tile[i, j].type] && !Main.tileSolidTop[Main.tile[i, j].type])
36776 {
36777 WorldGen.KillTile(i, j);
36778 }
36779 if (Main.tile[i, j].liquid > 0)
36780 {
36781 Main.tile[i, j].lava(lava: false);
36782 Main.tile[i, j].liquid = 0;
36783 WorldGen.SquareTileFrame(i, j);
36784 }
36785 }
36786 }
36787 }
36788 }

References Terraria.WorldGen.KillTile(), Terraria.WorldGen.SquareTileFrame(), Terraria.Main.tile, Terraria.Main.tileSolid, and Terraria.Main.tileSolidTop.

Referenced by Terraria.Player.Shellphone_Spawn(), and Terraria.Player.Spawn_SetPositionAtWorldSpawn().

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