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

portable_wind_turbine

Vars

available_powerPower that has been generated by moving about.
capCapacitor currently inserted.
chargingWhat item is being charged currently?
finished_rechargingDid we finish recharging the currently inserted item?
last_sound_timeThe last time (world.time) a sound was played at.
rotor_tickCurrent rotor animation frame. (floating point value).
using_powerDid we put power into "charging" last process()?

Procs

add_powerAdds a certain amount of power to the internal buffer
block_dir_changes_unanchoredCalled when src changes direction when not equipped
on_anchorCalled when src is anchored
on_dir_changeCalled when the thing HOLDING the turbine changes direction
on_moveCalled when the thing HOLDING the turbine moves
on_space_windCalled when this resists space wind
set_rotor_tickSets the rotor animation tick to a new value. Returns TRUE if the rotor made a full rotation.
take_charging_outTakes charging item out if there is one
try_playsoundTries to play the woosh sound effect. May not play it if it's been too soon since the last call.
update_backUpdates the worn back icon for the current loc

Var Details

available_power

Power that has been generated by moving about.

cap

Capacitor currently inserted.

charging

What item is being charged currently?

finished_recharging

Did we finish recharging the currently inserted item?

last_sound_time

The last time (world.time) a sound was played at.

rotor_tick

Current rotor animation frame. (floating point value).

using_power

Did we put power into "charging" last process()?

Proc Details

add_power

Adds a certain amount of power to the internal buffer

block_dir_changes_unanchored

Called when src changes direction when not equipped

on_anchor

Called when src is anchored

on_dir_change

Called when the thing HOLDING the turbine changes direction

on_move

Called when the thing HOLDING the turbine moves

on_space_wind

Called when this resists space wind

set_rotor_tick

Sets the rotor animation tick to a new value. Returns TRUE if the rotor made a full rotation.

take_charging_out

Takes charging item out if there is one

try_playsound

Tries to play the woosh sound effect. May not play it if it's been too soon since the last call.

update_back

Updates the worn back icon for the current loc