mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-20 07:12:55 +00:00
28 lines
816 B
Plaintext
28 lines
816 B
Plaintext
/datum/event/anomaly/anomaly_pyro
|
|
startWhen = 30
|
|
announceWhen = 3
|
|
endWhen = 110
|
|
|
|
/datum/event/anomaly/anomaly_pyro/announce()
|
|
command_announcement.Announce("Atmospheric anomaly detected on long range scanners. Expected location: [impact_area.name].", "Anomaly Alert")
|
|
|
|
/datum/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/event/anomaly/anomaly_pyro/tick()
|
|
if(!newAnomaly)
|
|
kill()
|
|
return
|
|
if(IsMultiple(activeFor, 5))
|
|
newAnomaly.anomalyEffect()
|
|
|
|
/datum/event/anomaly/anomaly_pyro/end()
|
|
if(newAnomaly.loc)
|
|
explosion(get_turf(newAnomaly), -1,0,3, flame_range = 4)
|
|
|
|
var/mob/living/carbon/slime/S = new/mob/living/carbon/slime(get_turf(newAnomaly))
|
|
S.colour = pick("red", "orange")
|
|
|
|
qdel(newAnomaly) |