mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[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:
committed by
GitHub
parent
fe4b5ec2cb
commit
ce12ae569f
22
code/modules/events/maint_lurker.dm
Normal file
22
code/modules/events/maint_lurker.dm
Normal 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))
|
||||
Reference in New Issue
Block a user