mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
23 lines
564 B
Plaintext
23 lines
564 B
Plaintext
/datum/event/maintenance_lurker
|
|
startWhen = 1
|
|
endWhen = 30
|
|
|
|
/datum/event/maintenance_lurker/start()
|
|
|
|
var/obj/effect/landmark/spawnspot = null
|
|
var/list/possibleSpawnspots = list()
|
|
for(var/obj/effect/landmark/L in landmarks_list)
|
|
if(L.name == "maint_pred")
|
|
possibleSpawnspots += L
|
|
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/maint_lurker(get_turf(spawnspot))
|