Class: BCDice::GameSystem::StellarLife::StellarLife2D10HalfTable
- Inherits:
-
StellarLife2D10Table
- Object
- StellarLife2D10Table
- BCDice::GameSystem::StellarLife::StellarLife2D10HalfTable
- Defined in:
- lib/bcdice/game_system/StellarLife.rb
Overview
D10 を 2 個振って、 50 通りの結果を得るテーブル
イメージ図:
[0-1] [2-3] .. [8-9]
- 0
- 1
- 2
- 1
-
:
- 8
- 9
-
(c.f. ルールブック p120, p123 )
Instance Method Summary collapse
-
#initialize(name, items) ⇒ StellarLife2D10HalfTable
constructor
A new instance of StellarLife2D10HalfTable.
Methods inherited from StellarLife2D10Table
Constructor Details
#initialize(name, items) ⇒ StellarLife2D10HalfTable
Returns a new instance of StellarLife2D10HalfTable.
175 176 177 178 179 180 181 182 183 184 |
# File 'lib/bcdice/game_system/StellarLife.rb', line 175 def initialize(name, items) super( name, *items.map do |row| row.map do |value| [value, value] end.flatten end.flatten ) end |