mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 02:57:48 +01:00
Fixes Issue 697
Alright, added in list stuff to the alien's New() to handle it, and while I was at it I reworked add_to_mob_list() to actually be useful and used that in some places instead (It just takes into account everything for the lists, so that should be a bit more robust. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4203 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -79,6 +79,10 @@ proc/rebuild_mob_lists()
|
||||
proc/add_to_mob_list(var/mob/A)//Adds an individual mob
|
||||
if(A)
|
||||
mob_list |= A
|
||||
if(A.stat == 2)
|
||||
dead_mob_list |= A
|
||||
if(A.stat != 2)
|
||||
living_mob_list |= A
|
||||
if(A.client)
|
||||
player_list |= A
|
||||
if(A.client.holder)
|
||||
@@ -86,6 +90,10 @@ proc/add_to_mob_list(var/mob/A)//Adds an individual mob
|
||||
|
||||
proc/remove_from_mob_list(var/mob/R)//Removes an individual mob
|
||||
mob_list -= R
|
||||
if(R.stat == 2)
|
||||
dead_mob_list -= R
|
||||
if(R.stat != 2)
|
||||
living_mob_list -= R
|
||||
if(R.client)
|
||||
player_list -= R
|
||||
if(R.client.holder)
|
||||
|
||||
Reference in New Issue
Block a user