samples/06_save_load/01_save_load_game/app/main.rb
# Determines fire progress (how close the fire is to being ready to light).
Determines fire progress (how close the fire is to being ready to light).
Determines fire progress ( how close the fire is to being ready to light ) .
def tick_fire
    return if state.active_module == :alert 
    state.fire_progress += 1 
    state.fire_progress = state.fire_progress.lesser(state.fire_ready_in)
  end
def tick_fire return if state . active_module == :alert state . fire_progress += 1 state . fire_progress = state . fire_progress . lesser ( state . fire_ready_in ) end
Determines fire progress (how close the fire is to being ready to light).
Determines fire progress ( how close the fire is to being ready to light ) .
# return if active module is alert # increment fire progress # fire_ready_in is 10. The fire_progress is either the current value or 10, whichever has a lower value.