mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-01-28 18:02:17 +00:00
22 lines
580 B
Plaintext
22 lines
580 B
Plaintext
/datum/event/morph_spawn
|
|
startWhen = 1
|
|
endWhen = 30
|
|
|
|
/datum/event/morph_spawn/start()
|
|
|
|
var/obj/effect/landmark/spawnspot = null
|
|
var/list/possibleSpawnspots = list()
|
|
for(var/obj/effect/landmark/newSpawnspot in landmarks_list)
|
|
if(newSpawnspot.name == "morphspawn")
|
|
possibleSpawnspots += newSpawnspot
|
|
if(possibleSpawnspots.len)
|
|
spawnspot = pick(possibleSpawnspots)
|
|
else
|
|
kill() // To prevent fake announcements
|
|
return
|
|
|
|
if(!spawnspot)
|
|
kill() // To prevent fake announcements
|
|
return
|
|
|
|
new /obj/structure/ghost_pod/ghost_activated/morphspawn(get_turf(spawnspot)) |