module Toji::Progress::MoromiState

Constants

KEYS

Public Instance Methods

bmd() click to toggle source
# File lib/toji/progress/moromi_state.rb, line 47
def bmd
  _moromi_day = moromi_day
  _baume = baume

  if _moromi_day && _baume
    _moromi_day * _baume
  end
end
display_baume() click to toggle source
# File lib/toji/progress/moromi_state.rb, line 36
def display_baume
  _baume = baume
  if _baume
    if _baume<3.0
      nihonshudo
    else
      _baume
    end
  end
end
expected_alcohol(target_alc, target_nihonshudo, coef) click to toggle source
# File lib/toji/progress/moromi_state.rb, line 56
def expected_alcohol(target_alc, target_nihonshudo, coef)
  _baume = baume

  if _baume
    target_alc - (_baume - target_nihonshudo * -0.1) * coef
  end
end
moromi_day() click to toggle source

@dynamic baume @dynamic nihonshudo @dynamic alcohol @dynamic acid @dynamic amino_acid @dynamic glucose @dynamic warmings

# File lib/toji/progress/moromi_state.rb, line 27
def moromi_day
  _tome_day = progress.moromi_tome_day
  _now_day = day

  if _tome_day && _tome_day < _now_day
    _now_day - _tome_day + 1
  end
end