Class: BCDice::GameSystem::Cthulhu7th::FullAuto

Inherits:
Object
  • Object
show all
Includes:
Rollable
Defined in:
lib/bcdice/game_system/cthulhu7th/full_auto.rb

Constant Summary collapse

BONUS_DICE_RANGE =
(-2..2).freeze
ROLL_FULL_AUTO_DIFFICULTY_THRESHOLD =

連射処理を止める条件(難易度の閾値) 成功の種類の小文字表記 => 難易度の閾値

Returns:

  • (Hash<String, Integer>)
{
  # レギュラー
  "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/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/full_auto.rb', line 26

def eval(command, randomizer)
  @randomizer = randomizer
  getFullAutoResult(command)
end