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

◆ SpawnNPC_TryFindingProperGroundTileType()

static int Terraria.NPC.SpawnNPC_TryFindingProperGroundTileType ( int spawnTileType,
int x,
int y )
inlinestaticprivate

Definition at line 90383 of file NPC.cs.

90384 {
90385 if (!IsValidSpawningGroundTile(x, y))
90386 {
90387 for (int i = y + 1; i < y + 30; i++)
90388 {
90389 if (IsValidSpawningGroundTile(x, i))
90390 {
90391 return Main.tile[x, i].type;
90392 }
90393 }
90394 }
90395 return spawnTileType;
90396 }
static bool IsValidSpawningGroundTile(int x, int y)
Definition NPC.cs:90398

References Terraria.Main.tile.