Method: BCDice::GameSystem::CthulhuTech#eval_game_system_specific_command

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

#eval_game_system_specific_command(command) ⇒ String?

ダイスボット固有コマンドの処理を行う

Parameters:

  • command (String)

    コマンド

Returns:

  • (String)

    ダイスボット固有コマンドの結果

  • (nil)

    無効なコマンドだった場合



227
228
229
230
231
232
# File 'lib/bcdice/game_system/CthulhuTech.rb', line 227

def eval_game_system_specific_command(command)
  node = parse(command)
  return nil unless node

  return node.execute(@randomizer)
end