mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
* wae explosions * okay * changes * fixes * fix * ok * ok * kills more dead code * okay * fix * ok * tiles * ok * okay * woops * ok * fix * okay * mob damage * fixes * insanity * more * more * fixes * more * woot * don't commit that * YES * fix
24 lines
614 B
Plaintext
24 lines
614 B
Plaintext
SUBSYSTEM_DEF(explosions)
|
|
name = "Explosions"
|
|
wait = 1
|
|
flags = SS_TICKER
|
|
priority = FIRE_PRIORITY_EXPLOSIONS
|
|
var/static/list/datum/wave_explosion/wave_explosions = list()
|
|
var/static/list/datum/wave_explosion/active_wave_explosions = list()
|
|
var/static/list/datum/wave_explosion/currentrun = list()
|
|
|
|
/datum/controller/subsystem/explosions/fire(resumed)
|
|
if(!resumed)
|
|
currentrun = active_wave_explosions.Copy()
|
|
var/datum/wave_explosion/E
|
|
var/ran = 0
|
|
while(length(currentrun) && !MC_TICK_CHECK)
|
|
ran = 0
|
|
for(var/i in currentrun)
|
|
E = i
|
|
if(E.tick())
|
|
currentrun -= E
|
|
ran++
|
|
if(!ran)
|
|
break
|