class BCDice::GameSystem::OneWayHeroics::MoveToTableWithDay
Public Class Methods
new(text, table)
click to toggle source
# File lib/bcdice/game_system/one_way_heroics/random_event_table.rb, line 104 def initialize(text, table) @text = text @table = table end
Public Instance Methods
roll_with_day(day, randomizer)
click to toggle source
# File lib/bcdice/game_system/one_way_heroics/random_event_table.rb, line 109 def roll_with_day(day, randomizer) <<~RESULT.chomp #{@text} > #{@table.key}#{day} > #{@table.roll_with_day(day, randomizer)} RESULT end