Removes decoy mobs from check-ai-laws (#13522)

* Removes decoy AIs from check-ai-laws

* hotfix

updates method because my test server wasn't running stonedmc when i first tested
This commit is contained in:
jknpj
2017-01-18 03:30:28 -03:00
committed by Probe1
parent 7a20c36140
commit 624fa14aca

View File

@@ -1336,6 +1336,7 @@ var/global/floorIsLava = 0
/datum/admins/proc/output_ai_laws()
var/ai_number = 0
for(var/mob/living/silicon/S in mob_list)
if(!istype(S, /mob/living/silicon/decoy))
ai_number++
if(isAI(S))
to_chat(usr, "<b>AI [key_name(S, usr)]'s laws:</b>")
@@ -1355,11 +1356,9 @@ var/global/floorIsLava = 0
to_chat(usr, "[key_name(S, usr)]'s laws are null?? Contact a coder.")
else
S.laws.show_laws(usr)
if(!ai_number)
to_chat(usr, "<b>No AIs located</b>")//Just so you know the thing is actually working and not just ignoring you.
/client/proc/update_mob_sprite(mob/living/carbon/human/H as mob in mob_list)
set category = "Admin"
set name = "Update Mob Sprite"