law 
When slotted into an AI law rack, adds laws! The bread and butter of AI modules.
Vars | |
| ion_storm_immune | If TRUE, this module will never be ioned by an ion storm. It also cannot be repaired by a multitool. |
|---|---|
| ioned | If TRUE, this board has sustained damage and must be repaired |
| laws | This is where our laws get put at for the module |
| saved_laws | The laws list last time save_laws() was called |
Procs | |
| add_law | Adds a law to the module and updates any racks we're installed in. |
| add_law_to_index | Adds a law to the module at a specific index and updates any racks we're installed in. |
| configure | Allows users to configure aspects of the module, if applicable. |
| display_laws | Returns a text display of the laws for the module. |
| handle_unique_ai | what this module should do if it is mapload spawning on a unique AI station trait round. |
| log_install | Logs the installation of this module to the law change log and silicon log. |
| log_uninstall | Logs the uninstallation of this module to the law change log and silicon log. |
| remove_law | Removes a law by text from the module and updates any racks we're installed in. |
| save_laws | Saves whatever laws are currently programmed into the module, so they can be restored later. |
| set_ioned | Updates the "ioned" stat of the module |
| set_laws | Helper to set the laws list and automatically update any racks we're installed in. |
| update_rack_laws | Update any racks we're installed in |
Var Details
ion_storm_immune 
If TRUE, this module will never be ioned by an ion storm. It also cannot be repaired by a multitool.
ioned 
If TRUE, this board has sustained damage and must be repaired
laws 
This is where our laws get put at for the module
saved_laws 
The laws list last time save_laws() was called
Proc Details
add_law
Adds a law to the module and updates any racks we're installed in.
add_law_to_index
Adds a law to the module at a specific index and updates any racks we're installed in.
configure
Allows users to configure aspects of the module, if applicable.
display_laws
Returns a text display of the laws for the module.
handle_unique_ai
what this module should do if it is mapload spawning on a unique AI station trait round.
log_install
Logs the installation of this module to the law change log and silicon log.
log_uninstall
Logs the uninstallation of this module to the law change log and silicon log.
remove_law
Removes a law by text from the module and updates any racks we're installed in.
save_laws
Saves whatever laws are currently programmed into the module, so they can be restored later.
set_ioned
Updates the "ioned" stat of the module
set_laws
Helper to set the laws list and automatically update any racks we're installed in.
update_rack_laws
Update any racks we're installed in