Files
CHOMPStation2/code/modules/events/maint_lurker.dm
CHOMPStation2StaffMirrorBot ce12ae569f [MIRROR] "Maint Lurker" Hole (#9587)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2024-12-09 22:51:15 +01:00

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))