mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-02-05 13:50:08 +00:00
Merge pull request #16639 from KillianKirilenko/kk-charpod
"Maint Lurker" Hole
This commit is contained in:
@@ -20,10 +20,11 @@ var/global/list/special_roles = list( //keep synced with the defines BE_* in set
|
||||
//VOREStation Add
|
||||
"lost drone" = 1, // 16
|
||||
"maint pred" = 1, // 17
|
||||
"morph" = 1, // 18
|
||||
"corgi" = 1, // 19
|
||||
"cursed sword" = 1, // 20
|
||||
"Ship Survivor" = 1, // 21
|
||||
"maint lurker" = 1, // 18
|
||||
"morph" = 1, // 19
|
||||
"corgi" = 1, // 20
|
||||
"cursed sword" = 1, // 21
|
||||
"Ship Survivor" = 1, // 22
|
||||
//VOREStation Add End
|
||||
)
|
||||
|
||||
|
||||
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