mob_spawning ![code/modules/events/mob_spawning/_mob_spawning.dm 1](git.png)
Vars | |
MOB_SPAWNING_EVENT_SPACE | Spawns mobs on space edge turfs and throws them at the ship. |
---|---|
delete_on_end | Boolean. If set, deletes linked mobs when the event ends. |
mobs | List of spawned mobs linked to this event. |
mobs_to_spawn | List or weighted list of mob paths to spawn. |
remaining_to_spawn | Integer. Remaining number of mobs to spawn. Counts down from total_to_spawn as mobs are spawned in. |
spawn_area | String. One if MOB_SPAWNING_EVENT_* . Determines the spawn location/method of the mobs. |
total_spawned | Integer. Number of mobs the event spawned. Used for debug logs. |
total_to_spawn_per_z | Integer. Total number of mobs to spawn per z-level. Does not mean this number will spawn at each z-level, but rather multiplies this number by the affected z-levels to determine the total mobs to spawn. |
wave_to_spawn | Integer. Number of mobs to spawn in a single 'wave'. |
Procs | |
lag_check | Lag mitigation checks. Returns TRUE if spawning mobs is safe, FALSE otherwise. |
mob_destroyed | Handler for mob destroyed events. |
spawn_mobs | Handler for spawning and 'throwing' mobs at the ship. |
Var Details
MOB_SPAWNING_EVENT_SPACE ![code/modules/events/mob_spawning/_mob_spawning.dm 16](git.png)
Spawns mobs on space edge turfs and throws them at the ship.
delete_on_end ![code/modules/events/mob_spawning/_mob_spawning.dm 11](git.png)
Boolean. If set, deletes linked mobs when the event ends.
mobs ![code/modules/events/mob_spawning/_mob_spawning.dm 3](git.png)
List of spawned mobs linked to this event.
mobs_to_spawn ![code/modules/events/mob_spawning/_mob_spawning.dm 9](git.png)
List or weighted list of mob paths to spawn.
remaining_to_spawn ![code/modules/events/mob_spawning/_mob_spawning.dm 19](git.png)
Integer. Remaining number of mobs to spawn. Counts down from total_to_spawn
as mobs are spawned in.
spawn_area ![code/modules/events/mob_spawning/_mob_spawning.dm 13](git.png)
String. One if MOB_SPAWNING_EVENT_*
. Determines the spawn location/method of the mobs.
total_spawned ![code/modules/events/mob_spawning/_mob_spawning.dm 21](git.png)
Integer. Number of mobs the event spawned. Used for debug logs.
total_to_spawn_per_z ![code/modules/events/mob_spawning/_mob_spawning.dm 5](git.png)
Integer. Total number of mobs to spawn per z-level. Does not mean this number will spawn at each z-level, but rather multiplies this number by the affected z-levels to determine the total mobs to spawn.
wave_to_spawn ![code/modules/events/mob_spawning/_mob_spawning.dm 7](git.png)
Integer. Number of mobs to spawn in a single 'wave'.
Proc Details
lag_check
Lag mitigation checks. Returns TRUE if spawning mobs is safe, FALSE otherwise.
mob_destroyed
Handler for mob destroyed events.
spawn_mobs
Handler for spawning and 'throwing' mobs at the ship.