Skip to content

SPAWN_TYPE

source

NameValueDescription
SPAWN_TYPE.ANY63

Covers all of the above.

SPAWN_TYPE.LEVEL_GEN15

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_SPREADING4

Includes solid floor type spreading (i.e. floorstyled bleeding to existing generic floor) but also corner filling of empty tiles.

SPAWN_TYPE.LEVEL_GEN_GENERAL8

Covers all spawns during level gen that are not covered by the other two.

SPAWN_TYPE.LEVEL_GEN_PROCEDURAL2

Similar to LEVEL_GEN but only triggers on random level spawns, like snakes or bats.

SPAWN_TYPE.LEVEL_GEN_TILE_CODE1

Similar to LEVEL_GEN but only triggers on tile code spawns.

SPAWN_TYPE.SCRIPT16

Runs for any spawn happening through a call from the Lua API, also during level generation.

SPAWN_TYPE.SYSTEMIC32

Covers all other spawns, such as items from crates or the player throwing bombs.