Dead mobs no longer hold up the arrivals shuttle. (#11123)

This commit is contained in:
Matt Atlas
2021-02-04 15:45:53 +01:00
committed by GitHub
parent 503517d8cc
commit 37e4a49da8
2 changed files with 44 additions and 1 deletions
+3 -1
View File
@@ -19,7 +19,7 @@
var/list/mobstoyellat = list()
for(var/area/subarea in shuttle_area)
mobs_in_area(subarea)
if (!mobstoyellat || !mobstoyellat.len)
if (!mobstoyellat || !length(mobstoyellat))
return FALSE
for(var/mob/living/A in mobstoyellat)
to_chat(A, "<span class='danger'>You feel as if you shouldn't be on the shuttle.</span>") // give them an angry text
@@ -34,6 +34,8 @@
qdel(A)
else if(issilicon(A.loc) && isMMI(A))
mobstoyellat -= A
else if(A.stat == DEAD)
mobstoyellat -= A
if (mobstoyellat)
global_announcer.autosay("Current life-forms on shuttle: [english_list(mobstoyellat)].", "Arrivals Shuttle Oversight") // tell on them
return FALSE