Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
SpawnNPC_TryFindingProperGroundTileType()
static int Terraria.NPC.SpawnNPC_TryFindingProperGroundTileType
(
int
spawnTileType
,
int
x
,
int
y
)
inline
static
private
Definition at line
76918
of file
NPC.cs
.
76919
{
76920
if
(!
IsValidSpawningGroundTile
(x, y))
76921
{
76922
for
(
int
i = y + 1;
i
< y + 30;
i
++)
76923
{
76924
if
(
IsValidSpawningGroundTile
(x, i))
76925
{
76926
return
Main.tile[x,
i
].type;
76927
}
76928
}
76929
}
76930
return
spawnTileType
;
76931
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
Terraria.NPC.IsValidSpawningGroundTile
static bool IsValidSpawningGroundTile(int x, int y)
Definition
NPC.cs:76933
System.Text.RegularExpressions.ExceptionArgument.i
@ i
References
Terraria.Main.tile
.
Terraria
NPC
Generated by
1.10.0