Fixes Stacking with the Check AI Laws verb (#27497)

This commit is contained in:
Contrabang
2024-11-30 15:13:26 +00:00
committed by GitHub
parent f1b3b0e9ef
commit eea4872e93
2 changed files with 25 additions and 9 deletions
+12
View File
@@ -236,6 +236,18 @@
else
to_chat(who, "[law.get_index()]. [law.law]")
/datum/ai_laws/proc/return_laws_text()
. = list()
sort_laws()
for(var/datum/ai_law/law in sorted_laws)
if(law == zeroth_law_borg)
continue
if(law == zeroth_law)
. += "<span class='danger'>[law.get_index()]. [law.law]</span>"
else
. += "[law.get_index()]. [law.law]"
/********************
* Stating Laws *
********************/