Space Station 13 - Modules - TypesVar Details - Proc Details

computer

Vars

criticalPrevent disabling for important component, like the HDD.
damage_failure"Failure" threshold. When damage exceeds this value the hardware piece will not work at all.
damage_malfunction"Malfunction" threshold. When damage exceeds this value the hardware piece will semi-randomly fail and do !!FUN!! things
enabledIf the hardware is turned off set this to FALSE.
external_slotWhether attackby will be passed on it even with a closed panel
hardware_sizeLimits which devices can contain this component. 1: All, 2: Laptops/Consoles, 3: Consoles only
malfunction_probabilityChance of malfunction when the component is damaged
power_usageIf the hardware uses extra power, change this.

Procs

check_functionalityHandles damage checks
diagnosticsReturns a list of lines containing diagnostic information for display.
is_failingWhether or not the stock part's damage has reached the failure threshhold.
is_malfunctioningWhether or not the stock part's damage has reached the malfunction threshhold.
malfunction_checkIs the component should malfunction this time. Checks before the damage value, and then the probability of malfunction.
on_disableCalled when component is disabled/enabled by the OS
set_damage_failureSets the part's health to the failure threshhold, if not already at or below it.
set_damage_malfunctionSets the part's health to the malfunction threshhold, if not already at or below it.

Var Details

critical

Prevent disabling for important component, like the HDD.

damage_failure

"Failure" threshold. When damage exceeds this value the hardware piece will not work at all.

damage_malfunction

"Malfunction" threshold. When damage exceeds this value the hardware piece will semi-randomly fail and do !!FUN!! things

enabled

If the hardware is turned off set this to FALSE.

external_slot

Whether attackby will be passed on it even with a closed panel

hardware_size

Limits which devices can contain this component. 1: All, 2: Laptops/Consoles, 3: Consoles only

malfunction_probability

Chance of malfunction when the component is damaged

power_usage

If the hardware uses extra power, change this.

Proc Details

check_functionality

Handles damage checks

diagnostics

Returns a list of lines containing diagnostic information for display.

is_failing

Whether or not the stock part's damage has reached the failure threshhold.

is_malfunctioning

Whether or not the stock part's damage has reached the malfunction threshhold.

malfunction_check

Is the component should malfunction this time. Checks before the damage value, and then the probability of malfunction.

on_disable

Called when component is disabled/enabled by the OS

set_damage_failure

Sets the part's health to the failure threshhold, if not already at or below it.

set_damage_malfunction

Sets the part's health to the malfunction threshhold, if not already at or below it.