Class: BCDice::GameSystem::HuntersMoon::StrangeAbilityTable1

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

Constant Summary collapse

BODY =
['大牙', '大鎌', '針山', '大鋏', '吸血根', '巨大化', '瘴気', '火炎放射', '', 'ドリル', '絶叫', '粘液噴射', '潤滑液', '皮膚装甲', '器官生成', '', '四肢複製', '分解', '異言', '閃光', '冷気', '悪臭', '化膿歯', '気嚢', '触手', '肉瘤', '暗視', '邪視', '超振動', '酸分泌', '結晶化', '裏腹', '融合', '嘔吐', '腐敗', '変色'].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#chosenObject (readonly)

Returns the value of attribute chosen.



97
98
99
# File 'lib/bcdice/game_system/HuntersMoon.rb', line 97

def chosen
  @chosen
end

#diceObject (readonly)

Returns the value of attribute dice.



97
98
99
# File 'lib/bcdice/game_system/HuntersMoon.rb', line 97

def dice
  @dice
end

Instance Method Details

#roll(randomizer) ⇒ Object



99
100
101
102
103
104
105
106
# File 'lib/bcdice/game_system/HuntersMoon.rb', line 99

def roll(randomizer)
  dice1 = randomizer.roll_once(6)
  dice2 = randomizer.roll_once(6)
  index = (dice1 - 1) * 6 + (dice2 - 1)

  @dice = dice1 * 10 + dice2
  @chosen = BODY[index]
end