synth_powercord
Vars | |
synth_charge_whitelist | Object basetypes which the powercord is allowed to connect to. |
---|---|
Procs | |
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. |
try_power_draw | Attempts 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:
- The user's internal cell is full.
- The cell has less than the minimum charge.
- The user moves, or anything else that can happen to interrupt a do_after.
Arguments:
- target - The power cell or APC to drain.
- user - The human mob draining the power cell.
try_power_draw
Attempts to start using an object as a power source. Checks the user's internal powercell to see if it exists.