computer

Vars | |
| 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. |
Procs | |
| 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. |
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.