portable_wind_turbine 
Vars | |
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()? |
Procs | |
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 |
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