[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>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2024-12-09 14:51:15 -07:00
committed by GitHub
parent fe4b5ec2cb
commit ce12ae569f
14 changed files with 170 additions and 14 deletions

View File

@@ -0,0 +1,22 @@
/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))