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

candle

Vars

current_wax_levelThe current wax level, used for drawing the correct icon
last_wax_levelThe previous wax level, remembered so we only have to make 3 update_appearance calls total as opposed to every tick

Procs

attackbyallows lighting an unlit candle from some fire source by left clicking the candle with the source
check_wax_levelJust checks the wax level of the candle for displaying the correct sprite.
try_light_candleTry to ignite the candle.

Var Details

current_wax_level

The current wax level, used for drawing the correct icon

last_wax_level

The previous wax level, remembered so we only have to make 3 update_appearance calls total as opposed to every tick

Proc Details

attackby

allows lighting an unlit candle from some fire source by left clicking the candle with the source

check_wax_level

Just checks the wax level of the candle for displaying the correct sprite.

This gets called in process() every tick. If the wax level has changed, then we call our update.

try_light_candle

Try to ignite the candle.

Candles are ignited a bit differently from flares, in that they must be manually lit from other fire sources. This will perform all the necessary checks to ensure that can happen, and display a message if it worked.

Arguments: