mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +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
@@ -577,13 +577,11 @@
|
||||
target.lawsync()
|
||||
return TRUE
|
||||
if("notify_laws")
|
||||
to_chat(target, span_danger("Law Notice"))
|
||||
target.laws.show_laws(target)
|
||||
to_chat(target, span_danger("Law Notice\n") + target.laws.get_formatted_laws())
|
||||
if(isAI(target))
|
||||
var/mob/living/silicon/ai/our_ai = target
|
||||
for(var/mob/living/silicon/robot/R in our_ai.connected_robots)
|
||||
to_chat(R, span_danger("Law Notice"))
|
||||
R.laws.show_laws(R)
|
||||
to_chat(R, span_danger("Law Notice\n") + R.laws.get_formatted_laws())
|
||||
if(ui.user != target)
|
||||
to_chat(ui.user, span_notice("Laws displayed."))
|
||||
return TRUE
|
||||
@@ -613,7 +611,7 @@
|
||||
target.clear_supplied_laws()
|
||||
target.clear_inherent_laws()
|
||||
target.laws = new global.using_map.default_law_type
|
||||
target.laws.show_laws(target)
|
||||
to_chat(target, span_danger("Laws updated!\n") + target.laws.get_formatted_laws())
|
||||
target.hud_used?.update_robot_modules_display()
|
||||
else
|
||||
target.emagged = 1
|
||||
@@ -625,7 +623,7 @@
|
||||
if(target.bolt)
|
||||
if(!target.bolt.malfunction)
|
||||
target.bolt.malfunction = MALFUNCTION_PERMANENT
|
||||
target.laws.show_laws(target)
|
||||
to_chat(target, span_danger("Laws updated!\n") + target.laws.get_formatted_laws())
|
||||
target.hud_used?.update_robot_modules_display()
|
||||
return TRUE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user