[MIRROR] moves law outputs to a block (#11706)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-09-19 15:48:39 -07:00
committed by GitHub
parent 9efbeb86af
commit 19006d64ac
13 changed files with 51 additions and 54 deletions

View File

@@ -222,6 +222,18 @@
supplied_laws.Cut()
sorted_laws.Cut()
/datum/ai_laws/proc/get_formatted_laws()
sort_laws()
var/list/law_block = list()
for(var/datum/ai_law/law in sorted_laws)
if(law == zeroth_law_borg)
continue
if(law == zeroth_law)
law_block += span_info(span_red("[law.get_index()]. [law.law]"))
else
law_block += span_infoplain("[law.get_index()]. [law.law]")
return examine_block(law_block.Join("\n"))
/datum/ai_laws/proc/show_laws(var/who)
sort_laws()
for(var/datum/ai_law/law in sorted_laws)

View File

@@ -46,4 +46,4 @@
/decl/hierarchy/outfit/tournament_gear/janitor/post_equip(var/mob/living/carbon/human/H)
var/obj/item/reagent_containers/glass/bucket/bucket = locate(/obj/item/reagent_containers/glass/bucket) in H
if(bucket)
bucket.reagents.add_reagent(/datum/reagent/water, 70)
bucket.reagents.add_reagent(REAGENT_ID_WATER, 70)