Class: BCDice::GameSystem::Cthulhu7th_ChineseTraditional::FullAuto
- Inherits:
-
Object
- Object
- BCDice::GameSystem::Cthulhu7th_ChineseTraditional::FullAuto
- Includes:
- Rollable
- Defined in:
- lib/bcdice/game_system/Cthulhu7th_ChineseTraditional/full_auto.rb
Constant Summary collapse
- BONUS_DICE_RANGE =
(-2..2).freeze
- ROLL_FULL_AUTO_DIFFICULTY_THRESHOLD =
停止連射的條件(難度閾值)成功類型的小寫表記 => 難度的閾值
{ # 一般 "r" => 0, # 困難 "h" => 1, # 極限 "e" => 2 }.freeze
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.eval(command, randomizer) ⇒ Object
22 23 24 |
# File 'lib/bcdice/game_system/Cthulhu7th_ChineseTraditional/full_auto.rb', line 22 def self.eval(command, randomizer) new.eval(command, randomizer) end |
Instance Method Details
#eval(command, randomizer) ⇒ Object
26 27 28 29 |
# File 'lib/bcdice/game_system/Cthulhu7th_ChineseTraditional/full_auto.rb', line 26 def eval(command, randomizer) @randomizer = randomizer get_full_auto_result(command) end |