byond - Modules - TypesVar Details - Proc Details

cell

Vars

chargenote %age conveted to actual charge in New
charge_amountHow much power to give, if self_recharge is true. The number is in absolute cell charge, as it gets divided by CELLRATE later.
charge_delayHow long it takes for the cell to start recharging after last use
charge_overlayused to track what set of overlays to use to display charge level
last_useA tracker for use in self-charging
maxchargemaximum amount of charge the cell can hold
minor_faultIf not 100% reliable, it will build up faults.
riggedBOOL, true if rigged to explode
self_rechargeBOOL, If true, the cell will recharge itself.

Procs

corruptDivides charge and maxcharge, then has a 10% chance to be rigged to explode
explodeExplodes, scaling with cell charge
get_electrocute_damageReturns a number based on the current charge of the power cell
giveAdds power to the cell
is_fully_chargedReturns TRUE if charge is equal to maxcharge
percentreturn % 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