Class: BCDice::GameSystem::ShinobiGami::DemonSkillTableForMetamorphose

Inherits:
Object
  • Object
show all
Defined in:
lib/bcdice/game_system/ShinobiGami.rb

Instance Method Summary collapse

Constructor Details

#initialize(pretext, table) ⇒ DemonSkillTableForMetamorphose

Returns a new instance of DemonSkillTableForMetamorphose.



64
65
66
67
# File 'lib/bcdice/game_system/ShinobiGami.rb', line 64

def initialize(pretext, table)
  @pretext = pretext
  @table = table
end

Instance Method Details

#roll(randomizer) ⇒ Object



69
70
71
# File 'lib/bcdice/game_system/ShinobiGami.rb', line 69

def roll(randomizer)
  return "#{@pretext}#{@table.roll(randomizer)}"
end