mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-14 02:43:16 +00:00
26 lines
729 B
Plaintext
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() |