class BCDice::GameSystem::IthaWenUa
Constants
- HELP_MESSAGE
ダイスボットの使い方
- ID
ゲームシステムの識別子
- NAME
ゲームシステム名
- SORT_KEY
ゲームシステム名の読みがな
Public Instance Methods
result_1d100(total, _dice_total, cmp_op, target)
click to toggle source
# File lib/bcdice/game_system/IthaWenUa.rb, line 18 def result_1d100(total, _dice_total, cmp_op, target) return nil unless cmp_op == :<= if total % 100 == 1 Result.critical("01 > クリティカル") elsif total % 100 == 0 Result.fumble("00 > ファンブル") elsif target == "?" Result.nothing end end