class BCDice::GameSystem::UnsungDuet
Constants
- ALIAS
- ALIAS_1D10
- ALIAS_2D6
- BINDER_ALIAS_REG
- HELP_MESSAGE
- ID
- NAME
- SHIFTER_ALIAS_REG
- SORT_KEY
- TABLES
Public Instance Methods
eval_game_system_specific_command(command)
click to toggle source
# File lib/bcdice/game_system/UnsungDuet.rb, line 38 def eval_game_system_specific_command(command) command = ALIAS[command] || command roll_replaced_command_if_match(command, SHIFTER_ALIAS_REG, "1D10") || roll_replaced_command_if_match(command, BINDER_ALIAS_REG, "2D6") || roll_tables(command, TABLES) end
roll_replaced_command_if_match(command, regexp, dist)
click to toggle source
# File lib/bcdice/game_system/UnsungDuet.rb, line 46 def roll_replaced_command_if_match(command, regexp, dist) if command.match?(regexp) CommonCommand::AddDice.eval(command.sub(regexp, dist), self, @randomizer) end end