/tg/ Station 13 - Modules - TypesVar Details - Proc Details

ai_law_rack

Vars

ai_modulesAssoc list of modules insalled in the rack to how secure they are First slot is always reserved for core modules
first_slot_offsetPixel_z offset of the first slot (the topmost)
has_core_slotIf TRUE, the first slot slot is dedicated to the core module
law_slotsHow many slots for laws
max_slot_overlaysVisually, how many slots can we show
refresh_cooldownCooldown between allowing refreshes via ui
securedIf we are double secured to the floor

Procs

get_core_moduleReturns the core module if it exists, otherwise returns null
get_law_affecting_modulesReturns a list of all modules that will contribute to the combined lawset
get_parent_rackFinds a core law rack this rack is linked to, if any
log_statusTo be used in logging to specify the status of the law rack
refresh_linkable_listsHandles updating the lists of things the rack can link to
scramble_ai_rackScrambles 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

Returns TRUE if any law was affected, FALSE otherwise.