class BCDice::GameSystem::OneWayHeroics::BranchByDayParity

Public Instance Methods

branch_result(value, _) click to toggle source
# File lib/bcdice/game_system/one_way_heroics/random_event_table.rb, line 94
def branch_result(value, _)
  if value.odd?
    "奇数"
  else
    "偶数"
  end
end
choise(value, _) click to toggle source
# File lib/bcdice/game_system/one_way_heroics/random_event_table.rb, line 90
def choise(value, _)
  value.odd? ? @greater : @less_than_equal
end