Files
CHOMPStation2/code/modules/events/maint_spawner.dm
CHOMPStation2StaffMirrorBot e49179e010 [MIRROR] Unified Ghost Hole (#11833)
Co-authored-by: Killian <49700375+KillianKirilenko@users.noreply.github.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2025-10-19 02:10:29 +02:00

23 lines
571 B
Plaintext

/datum/event/maintenance_critter
startWhen = 1
endWhen = 30
/datum/event/maintenance_critter/start()
var/obj/effect/landmark/spawnspot = null
var/list/possibleSpawnspots = list()
for(var/obj/effect/landmark/L in GLOB.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/unified_hole(get_turf(spawnspot))