A struct that stores information regarding where an NPC is naturally spawning and the player it is sp...
bool lihzahrd
Whether or not the player is inside the jungle temple, where Lihzahrds spawn.
bool safeRangeX
Whether or not the NPC is horizontally within the range near the player in which NPCs cannot spawn....
bool water
Whether or not the tile the NPC will spawn in contains water.
bool playerInTown
Whether or not the player is in a town. This is used for spawning critters instead of monsters.
bool spiderCave
Whether or not the player is in a spider cave or the NPC will spawn near one.
bool desertCave
Whether or not the player is in front of a desert wall or the NPC will spawn near one.
bool granite
Whether or not the NPC will spawn on a granite block or the player is near a granite biome.
int spawnTileY
The y-coordinate of the tile the NPC will spawn above.
Player player
The player that this NPC is spawning around. For convenience, here are the player zones,...
bool invasion
Whether or not there is an invasion going on and the player is near it.
int playerFloorX
The x-coordinate of the tile the player is standing on.
bool planteraDefeated
Whether Plantera is defeated and the world is in hardmode. This isn't needed (it's easy to find by yo...
bool sky
Whether or not the player is in the sky biome, where harpies and wyverns spawn.
int spawnTileX
The x-coordinate of the tile the NPC will spawn above.
bool playerSafe
Whether or not the player is in front of a player-placed wall or in a large town. If this is true,...
bool marble
Whether or not the NPC will spawn on a marble block or the player is near a marble biome.
int playerFloorY
The y-coordinate of the tile the player is standing on.