cell

Vars | |
charge | note %age conveted to actual charge in New |
---|---|
charge_amount | How much power to give, if self_recharge is true. The number is in absolute cell charge, as it gets divided by CELLRATE later. |
charge_delay | How long it takes for the cell to start recharging after last use |
charge_overlay | used to track what set of overlays to use to display charge level |
last_use | A tracker for use in self-charging |
maxcharge | maximum amount of charge the cell can hold |
minor_fault | If not 100% reliable, it will build up faults. |
rigged | BOOL, true if rigged to explode |
self_recharge | BOOL, If true, the cell will recharge itself. |
Procs | |
corrupt | Divides charge and maxcharge, then has a 10% chance to be rigged to explode |
explode | Explodes, scaling with cell charge |
get_electrocute_damage | Returns a number based on the current charge of the power cell |
give | Adds power to the cell |
is_fully_charged | Returns TRUE if charge is equal to maxcharge |
percent | return % charge of cell |
Var Details
charge

note %age conveted to actual charge in New
charge_amount

How much power to give, if self_recharge is true. The number is in absolute cell charge, as it gets divided by CELLRATE later.
charge_delay

How long it takes for the cell to start recharging after last use
charge_overlay

used to track what set of overlays to use to display charge level
last_use

A tracker for use in self-charging
maxcharge

maximum amount of charge the cell can hold
minor_fault

If not 100% reliable, it will build up faults.
rigged

BOOL, true if rigged to explode
self_recharge

BOOL, If true, the cell will recharge itself.
Proc Details
corrupt
Divides charge and maxcharge, then has a 10% chance to be rigged to explode
explode
Explodes, scaling with cell charge
get_electrocute_damage
Returns a number based on the current charge of the power cell
give
Adds power to the cell
is_fully_charged
Returns TRUE if charge is equal to maxcharge
percent
return % charge of cell