mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-10 16:54:30 +01:00
fa136e71f4
This reverts commit0244b61886, reversing changes made to5d07df08ea.
38 lines
803 B
Plaintext
38 lines
803 B
Plaintext
SUBSYSTEM_DEF(fire_burning)
|
|
name = "Fire Burning"
|
|
priority = 40
|
|
flags = SS_NO_INIT|SS_BACKGROUND
|
|
runlevels = RUNLEVEL_GAME | RUNLEVEL_POSTGAME
|
|
|
|
var/list/currentrun = list()
|
|
var/list/processing = list()
|
|
|
|
/datum/controller/subsystem/fire_burning/stat_entry()
|
|
..("P:[processing.len]")
|
|
|
|
|
|
/datum/controller/subsystem/fire_burning/fire(resumed = 0)
|
|
if (!resumed)
|
|
src.currentrun = processing.Copy()
|
|
|
|
//cache for sanic speed (lists are references anyways)
|
|
var/list/currentrun = src.currentrun
|
|
|
|
while(currentrun.len)
|
|
var/obj/O = currentrun[currentrun.len]
|
|
currentrun.len--
|
|
if (!O || QDELETED(O))
|
|
processing -= O
|
|
if (MC_TICK_CHECK)
|
|
return
|
|
continue
|
|
|
|
if(O.resistance_flags & ON_FIRE)
|
|
O.take_damage(20, BURN, "fire", 0)
|
|
else
|
|
processing -= O
|
|
|
|
if (MC_TICK_CHECK)
|
|
return
|
|
|