SPAWN_TYPE
| Name | Value | Description |
|---|---|---|
SPAWN_TYPE.ANY | 63 | Covers all of the above. |
SPAWN_TYPE.LEVEL_GEN | 15 | For any spawn happening during level generation, even if the call happened from the Lua API during a tile code callback. |
SPAWN_TYPE.LEVEL_GEN_FLOOR_SPREADING | 4 | Includes solid floor type spreading (i.e. floorstyled bleeding to existing generic floor) but also corner filling of empty tiles. |
SPAWN_TYPE.LEVEL_GEN_GENERAL | 8 | Covers all spawns during level gen that are not covered by the other two. |
SPAWN_TYPE.LEVEL_GEN_PROCEDURAL | 2 | Similar to LEVEL_GEN but only triggers on random level spawns, like snakes or bats. |
SPAWN_TYPE.LEVEL_GEN_TILE_CODE | 1 | Similar to LEVEL_GEN but only triggers on tile code spawns. |
SPAWN_TYPE.SCRIPT | 16 | Runs for any spawn happening through a call from the Lua API, also during level generation. |
SPAWN_TYPE.SYSTEMIC | 32 | Covers all other spawns, such as items from crates or the player throwing bombs. |