AI Law Message Fix (#9120)

This commit is contained in:
Geeves
2020-06-14 10:25:47 +02:00
committed by GitHub
parent 656ac11ce1
commit 6fbda4e5b3
4 changed files with 18 additions and 1 deletions
+5
View File
@@ -226,10 +226,15 @@ var/global/const/base_law_type = /datum/ai_laws/nanotrasen
for(var/datum/ai_law/law in sorted_laws)
if(law == zeroth_law_borg)
continue
var/mob/M = who
if(law == zeroth_law)
to_chat(who, "<span class='danger'>[law.get_index()]. [law.law]</span>")
if(ismob(who) && M.vr_mob)
to_chat(M.vr_mob, "<span class='danger'>[law.get_index()]. [law.law]</span>")
else
to_chat(who, "[law.get_index()]. [law.law]")
if(ismob(who) && M.vr_mob)
to_chat(M.vr_mob, "<span class='danger'>[law.get_index()]. [law.law]</span>")
/********************
* Stating Laws *