Class: BCDice::GameSystem::SteamPunkers::SPTable
- Inherits:
- 
      DiceTable::D66RangeTable
      
        - Object
- DiceTable::D66RangeTable
- BCDice::GameSystem::SteamPunkers::SPTable
 
- Defined in:
- lib/bcdice/game_system/SteamPunkers.rb
Overview
スチームパンカーズ用のテーブル
Constant Summary collapse
- RANGE =
          23..32 と 61..66 が6パターン分その他が4パターン分 
- [11..14, 15..22, 23..32, 33..36, 41..44, 45..52, 53..56, 61..66].freeze 
Instance Method Summary collapse
- 
  
    
      #initialize(name, items)  ⇒ SPTable 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of SPTable. 
Methods inherited from DiceTable::D66RangeTable
Constructor Details
#initialize(name, items) ⇒ SPTable
Returns a new instance of SPTable.
| 79 80 81 82 83 84 85 86 87 | # File 'lib/bcdice/game_system/SteamPunkers.rb', line 79 def initialize(name, items) if items.size != RANGE.size raise UnexpectedTableSize.new(name, items.size) end items_with_range = RANGE.zip(items) super(name, items_with_range) end |