mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-03 22:12:38 +00:00
27 lines
658 B
Plaintext
27 lines
658 B
Plaintext
/datum/event/portalstorm
|
|
|
|
Announce()
|
|
command_alert("Subspace disruption detected around the vessel", "Anomaly Alert")
|
|
LongTerm()
|
|
|
|
var/list/turfs = list( )
|
|
var/turf/picked
|
|
|
|
for(var/turf/T in turfs)
|
|
if(T.z < 5 && istype(T,/turf/simulated/floor))
|
|
turfs += T
|
|
|
|
for(var/turf/T in turfs)
|
|
if(prob(10) && T.z < 5 && istype(T,/turf/simulated/floor))
|
|
spawn(50+rand(0,3000))
|
|
picked = pick(turfs)
|
|
var/obj/portal/P = new /obj/portal( T )
|
|
P.target = picked
|
|
P.creator = null
|
|
P.icon = 'icons/obj/objects.dmi'
|
|
P.failchance = 0
|
|
P.icon_state = "anom"
|
|
P.name = "wormhole"
|
|
spawn(rand(100,150))
|
|
qdel(P)
|