class BCDice::GameSystem::WARPS
Constants
- HELP_MESSAGE
ダイスボットの使い方
- ID
ゲームシステムの識別子
- NAME
ゲームシステム名
- SORT_KEY
ゲームシステム名の読みがな
Public Instance Methods
result_2d6(total, dice_total, _dice_list, cmp_op, target)
click to toggle source
# File lib/bcdice/game_system/WARPS.rb, line 18 def result_2d6(total, dice_total, _dice_list, cmp_op, target) return nil unless cmp_op == :<= if dice_total <= 2 Result.critical("クリティカル") elsif dice_total >= 12 Result.fumble("ファンブル") elsif target == "?" Result.nothing elsif total <= target Result.success("#{target - total}成功") else Result.failure("失敗") end end