Files
Bubberstation/code/modules/events/anomaly_pyro.dm
2013-09-20 00:28:19 -05:00

26 lines
729 B
Plaintext

/datum/round_event_control/anomaly/anomaly_pyro
name = "Pyroclastic Anomaly"
typepath = /datum/round_event/anomaly/anomaly_pyro
max_occurrences = 2
weight = 15
/datum/round_event/anomaly/anomaly_pyro
startWhen = 10
announceWhen = 3
endWhen = 70
/datum/round_event/anomaly/anomaly_pyro/announce()
command_alert("Atmospheric anomaly detected on long range scanners. Expected location: [impact_area.name].", "Anomaly Alert")
/datum/round_event/anomaly/anomaly_pyro/start()
var/turf/T = pick(get_area_turfs(impact_area))
if(T)
newAnomaly = new /obj/effect/anomaly/pyro(T.loc)
/datum/round_event/anomaly/anomaly_pyro/tick()
if(!newAnomaly)
kill()
return
if(IsMultiple(activeFor, 5))
newAnomaly.anomalyEffect()