ai_law_rack 
Vars | |
| ai_modules | Assoc list of modules insalled in the rack to how secure they are First slot is always reserved for core modules |
|---|---|
| first_slot_offset | Pixel_z offset of the first slot (the topmost) |
| has_core_slot | If TRUE, the first slot slot is dedicated to the core module |
| law_slots | How many slots for laws |
| max_slot_overlays | Visually, how many slots can we show |
| refresh_cooldown | Cooldown between allowing refreshes via ui |
| secured | If we are double secured to the floor |
Procs | |
| get_core_module | Returns the core module if it exists, otherwise returns null |
| get_law_affecting_modules | Returns a list of all modules that will contribute to the combined lawset |
| get_parent_rack | Finds a core law rack this rack is linked to, if any |
| log_status | To be used in logging to specify the status of the law rack |
| refresh_linkable_lists | Handles updating the lists of things the rack can link to |
| scramble_ai_rack | Scrambles the modules on the rack, messing up their laws |
Var Details
ai_modules 
Assoc list of modules insalled in the rack to how secure they are First slot is always reserved for core modules
first_slot_offset 
Pixel_z offset of the first slot (the topmost)
has_core_slot 
If TRUE, the first slot slot is dedicated to the core module
law_slots 
How many slots for laws
max_slot_overlays 
Visually, how many slots can we show
refresh_cooldown 
Cooldown between allowing refreshes via ui
secured 
If we are double secured to the floor
Proc Details
get_core_module
Returns the core module if it exists, otherwise returns null
get_law_affecting_modules
Returns a list of all modules that will contribute to the combined lawset
get_parent_rack
Finds a core law rack this rack is linked to, if any
log_status
To be used in logging to specify the status of the law rack
refresh_linkable_lists
Handles updating the lists of things the rack can link to
scramble_ai_rack
Scrambles the modules on the rack, messing up their laws
the crew will have to remove the modules and use a multitool on them to restore their laws to normal
- new_lawset_prob - chance the core lawset is replaced with a new lawset entirely
- remove_law_prob - chance a random law is removed from the core lawset / chance a supplied law is removed entirely
- shuffle_prob - chance the core lawset is shuffled
- base_ion_prob - chance the first law in the core lawset is replaced with an ion law
- sub_ion_prob - chance a random law in the core lawset is replaced with an ion law / chance a supplied law is replaced with an ion law entirely
- ion_limit - max number of ion laws that can be added. does nothing if "base_ion_prob" and a "sub_ion_prob" are both 0
- ion_message - if set, uses this message instead of a random ion law. does nothing if "base_ion_prob" and a "sub_ion_prob" are both 0
Returns TRUE if any law was affected, FALSE otherwise.