Method: BCDice::GameSystem::TorgEternity#getSuccessLevelDiceCommandResult
- Defined in:
- lib/bcdice/game_system/TorgEternity.rb
#getSuccessLevelDiceCommandResult(command) ⇒ Object
成功レベル表コマンド
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 |
# File 'lib/bcdice/game_system/TorgEternity.rb', line 194 def getSuccessLevelDiceCommandResult(command) debug("TorgEternity Success Level Table Command ? ", command) m = /(RT|Result)(-*\d+([+\-]\d+)*)/i.match(command) unless m return nil end value = ArithmeticEvaluator.eval(m[2]) debug(value) if value < 0 output = "Failure." else output = get_torg_eternity_success_level(value) end output = "成功レベル表[#{value}] > #{output}" debug(output) return output end |