class BCDice::GameSystem::Nuekagami
Constants
- HELP_MESSAGE
ダイスボットの使い方
- ID
ゲームシステムの識別子
- NAME
ゲームシステム名
- SORT_KEY
ゲームシステム名の読みがな
- TABLES
Public Instance Methods
eval_game_system_specific_command(command)
click to toggle source
# File lib/bcdice/game_system/Nuekagami.rb, line 24 def eval_game_system_specific_command(command) info = TABLES[command.upcase] return nil if info.nil? name = info[:name] type = info[:type] table = info[:table] text, number = case type when '1D20' get_table_by_nDx(table, 1, 20) end return nil if text.nil? return "#{name}(#{number}) > #{text}" end