mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] moves law outputs to a block (#11706)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9efbeb86af
commit
19006d64ac
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user