tModLoader v0.11.8.9
A mod to make and play Terraria mods
NPCSpawnInfo.cs
Go to the documentation of this file.
1namespace Terraria.ModLoader
2{
6 public struct NPCSpawnInfo
7 {
11 public int spawnTileX;
12 //num
16 public int spawnTileY;
17 //num2
18 public int spawnTileType;
19 //num3
50 public Player player;
51 //Main.player[j]
55 public int playerFloorX;
56 //num25
60 public int playerFloorY;
61 //num26
65 public bool sky;
66 //flag
70 public bool lihzahrd;
71 //flag2
75 public bool playerSafe;
76 //flag3
80 public bool invasion;
81 //flag4
85 public bool water;
86 //flag5
90 public bool granite;
91 //flag7
95 public bool marble;
96 //flag8
100 public bool spiderCave;
101 //flag9
105 public bool playerInTown;
106 //flag10
110 public bool desertCave;
111 //flag11
115 public bool planteraDefeated;
116 //flag12
120 public bool safeRangeX;
121 //flag14
122 }
123}
A struct that stores information regarding where an NPC is naturally spawning and the player it is sp...
Definition: NPCSpawnInfo.cs:7
bool lihzahrd
Whether or not the player is inside the jungle temple, where Lihzahrds spawn.
Definition: NPCSpawnInfo.cs:70
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.
Definition: NPCSpawnInfo.cs:85
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.
Definition: NPCSpawnInfo.cs:90
int spawnTileY
The y-coordinate of the tile the NPC will spawn above.
Definition: NPCSpawnInfo.cs:16
Player player
The player that this NPC is spawning around. For convenience, here are the player zones,...
Definition: NPCSpawnInfo.cs:50
bool invasion
Whether or not there is an invasion going on and the player is near it.
Definition: NPCSpawnInfo.cs:80
int playerFloorX
The x-coordinate of the tile the player is standing on.
Definition: NPCSpawnInfo.cs:55
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.
Definition: NPCSpawnInfo.cs:65
int spawnTileX
The x-coordinate of the tile the NPC will spawn above.
Definition: NPCSpawnInfo.cs:11
bool playerSafe
Whether or not the player is in front of a player-placed wall or in a large town. If this is true,...
Definition: NPCSpawnInfo.cs:75
bool marble
Whether or not the NPC will spawn on a marble block or the player is near a marble biome.
Definition: NPCSpawnInfo.cs:95
int playerFloorY
The y-coordinate of the tile the player is standing on.
Definition: NPCSpawnInfo.cs:60