mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 01:49:19 +00:00
27 lines
734 B
Plaintext
27 lines
734 B
Plaintext
//WHAT IF WE TAKE THE ACTIVE TURF PROCESSING AND PUSH IT SOMEWHERE ELSE!!!
|
|
|
|
SUBSYSTEM_DEF(air_turfs)
|
|
name = "Atmospherics - Turfs"
|
|
init_order = INIT_ORDER_AIR_TURFS
|
|
priority = FIRE_PRIORITY_AIR_TURFS
|
|
wait = 2
|
|
flags = SS_BACKGROUND
|
|
runlevels = RUNLEVEL_GAME | RUNLEVEL_POSTGAME
|
|
var/list/currentrun = list()
|
|
|
|
/datum/controller/subsystem/air_turfs/fire(resumed = 0)
|
|
var/fire_count = times_fired
|
|
if (!resumed)
|
|
src.currentrun = SSair.active_turfs.Copy()
|
|
//cache for sanic speed (lists are references anyways)
|
|
var/list/currentrun = src.currentrun
|
|
while(currentrun.len)
|
|
var/turf/open/T = currentrun[currentrun.len]
|
|
currentrun.len--
|
|
if (T)
|
|
T.process_cell(fire_count)
|
|
if (MC_TICK_CHECK)
|
|
return
|
|
resumed = 0
|
|
return
|