Code refactoring

AIs and borgs now share law statement procs, rather than have 95% identical code variants.
Improved handling available law-statement channels. Now lists all available radio channels + any additional variants (such as "Binary", "Holopad", etc.)
Fixes a bug where synths could not state laws on the binary channel due to improper return-value.
This commit is contained in:
PsiOmega
2014-10-27 10:11:23 +01:00
parent 83426c1ad4
commit 06b9881fa2
10 changed files with 197 additions and 262 deletions

View File

@@ -117,7 +117,7 @@
O << "To use something, simply click on it."
O << {"Use say ":b to speak to your cyborgs through binary."}
O << "For department channels, use the following say commands:"
O << ":o AI Private, :c - Command, :s - Security, :e - Engineering, :u - Supply, :m - Medical, :n - Science."
O << ":o - AI Private, :c - Command, :s - Security, :e - Engineering, :u - Supply, :m - Medical, :n - Science."
if (!(ticker && ticker.mode && (O.mind in ticker.mode.malf_ai)))
O.show_laws()
O << "<b>These laws may be changed by other players, or by you being the traitor.</b>"