Prevents spawning of off-station mobs (#20538)

* no more syndicate cow

* i swear I commited this the first time
This commit is contained in:
Contrabang
2023-03-13 17:37:24 -04:00
committed by GitHub
parent d19b04b036
commit 2e19c7f6d7
+2
View File
@@ -1169,6 +1169,8 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \
if((usr in GLOB.respawnable_list) && (stat == DEAD || isobserver(usr)))
var/list/creatures = list("Mouse")
for(var/mob/living/simple_animal/L in GLOB.alive_mob_list)
if(!(is_station_level(L.z) || is_admin_level(L.z))) // Prevents players from spawning in space
continue
if(L.npc_safe(src) && L.stat != DEAD && !L.key)
creatures += L
var/picked = input("Please select an NPC to respawn as", "Respawn as NPC") as null|anything in creatures