candle
Vars | |
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 |
Procs | |
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. |
try_light_candle | Try 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:
- obj/item/fire_starter - the item being used to ignite the candle.
- mob/user - the user to display a message to.
- quiet - suppresses the to_chat message.
- silent - suppresses the balloon alerts as well as the to_chat message.