class BCDice::GameSystem::FilledWith::D66Table
Public Class Methods
new(name, rows)
click to toggle source
# File lib/bcdice/game_system/FilledWith.rb, line 284 def initialize(name, rows) @name = name @rows = rows end
Public Instance Methods
roll(randomizer, difficality)
click to toggle source
# File lib/bcdice/game_system/FilledWith.rb, line 289 def roll(randomizer, difficality) value = randomizer.roll_d66(D66SortType::NO_SORT) chosen = @rows[value] "#{@name}<#{difficality.name}>(#{value}):#{chosen.format(difficality)}" end