Class: BCDice::GameSystem::Aoharubaan

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

Constant Summary collapse

ID =

ゲームシステムの識別子

'Aoharubaan'
NAME =

ゲームシステム名

'あおはるばーんっ'
SORT_KEY =

ゲームシステム名の読みがな

'あおはるはあんつ'
HELP_MESSAGE =

ダイスボットの使い方

<<~HELP
  カレカノ反応表( KR, KReaction )
HELP
JUDGE_ROLL_REG =
/^(1d6?|d6)(\+\d+)?(>=|=>)(\d+)$/i.freeze

Instance Attribute Summary

Attributes inherited from Base

#d66_sort_type, #default_cmp_op, #default_target_number, #randomizer, #reroll_dice_reroll_threshold, #round_type, #sides_implicit_d, #upper_dice_reroll_threshold

Instance Method Summary collapse

Methods inherited from Base

#change_text, #check_result, command_pattern, #enable_debug, #enabled_d9?, #eval, eval, #grich_text, #initialize, prefixes_pattern, register_prefix, register_prefix_from_super_class, #sort_add_dice?, #sort_barabara_dice?

Methods included from Translate

#translate

Constructor Details

This class inherits a constructor from BCDice::Base

Instance Method Details

#eval_game_system_specific_command(command) ⇒ Object



23
24
25
26
27
28
29
30
31
# File 'lib/bcdice/game_system/Aoharubaan.rb', line 23

def eval_game_system_specific_command(command)
  command = ALIAS[command] || command

  if (m = JUDGE_ROLL_REG.match(command))
    roll_judge(m[2], m[4])
  else
    roll_tables(command, TABLES)
  end
end