Admin law panel fixes and enhancements

This resolves some deficiencies in the PP law toolkit for silicons.

 - Added remove button for each law (tested)
 - Removed buggy blank law behavior.  Blank laws are now ignored.
 - Added button to reset lawset to a standard one (e.g. asimov) (tested)
 - Cyborgs slaved to AI are notified of law change when Send Laws is used, and are also forced to sync.
 - Law changes refresh PP.
This commit is contained in:
Rob Nelson
2014-12-18 12:04:25 -08:00
parent 961d0bce8a
commit 583a0cc949
4 changed files with 96 additions and 34 deletions

View File

@@ -164,6 +164,7 @@ var/global/floorIsLava = 0
body += L.display_admin_tools(M)
body += "<br /><a href='?src=\ref[src];mob=\ref[M];add_law=1'>Add Law</a>"
body += " | <a href='?src=\ref[src];mob=\ref[M];clear_laws=1'>Clear Laws</a>"
body += " | <a href='?src=\ref[src];mob=\ref[M];reset_laws=1'>Reset Lawset</a>"
body += "<br /><a href='?src=\ref[src];mob=\ref[M];announce_laws=1'><b>Send Laws</b></a> - User is not notified of changes until this button pushed!<br />"
body += {"<br><br>