class BCDice::GameSystem::HuntersMoon::StrangeAbilityTable2
Constants
- BODY
Attributes
chosen[R]
dice[R]
Public Instance Methods
roll(randomizer)
click to toggle source
# File lib/bcdice/game_system/HuntersMoon.rb, line 114 def roll(randomizer) dice = randomizer.roll_once(6) table = dice.odd? ? StrangeAbilityTable1::BODY : BODY table_id = dice.odd? ? 1 : 2 dice1 = randomizer.roll_once(6) dice2 = randomizer.roll_once(6) index = (dice1 - 1) * 6 + (dice2 - 1) @dice = [dice, dice1 * 10 + dice2].join("-") @chosen = "[่กจ#{table_id}]#{table[index]}" end