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

synth_powercord

Vars

synth_charge_whitelistObject basetypes which the powercord is allowed to connect to.

Procs

can_power_drawReturns TRUE or FALSE depending on if the target object can be used as a power source.
do_power_drawRuns a loop to charge a synth cell (stomach) from a power cell or APC. Displays chat messages to the user and nearby observers.
try_power_drawAttempts to start using an object as a power source. Checks the user's internal powercell to see if it exists.

Var Details

synth_charge_whitelist

Object basetypes which the powercord is allowed to connect to.

Proc Details

can_power_draw

Returns TRUE or FALSE depending on if the target object can be used as a power source.

do_power_draw

Runs a loop to charge a synth cell (stomach) from a power cell or APC. Displays chat messages to the user and nearby observers.

Stops when:

Arguments:

try_power_draw

Attempts to start using an object as a power source. Checks the user's internal powercell to see if it exists.