Method: BCDice::GameSystem::Paranoia#eval_game_system_specific_command

Defined in:
lib/bcdice/game_system/Paranoia.rb

#eval_game_system_specific_command(command) ⇒ Object



28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/bcdice/game_system/Paranoia.rb', line 28

def eval_game_system_specific_command(command)
  debug('eval_game_system_specific_command command', command)

  result = ''

  case command
  when /geta/i
    result = getaRoll()
  end

  return nil if result.empty?

  return "#{command}#{result}"
end