class BCDice::GameSystem::WaresBlade

Constants

HELP_MESSAGE

ダイスボットの使い方

ID

ゲームシステムの識別子

NAME

ゲームシステム名

SORT_KEY

ゲームシステム名の読みがな

Public Instance Methods

result_nd10(_total, _dice_total, dice_list, cmp_op, _target) click to toggle source
# File lib/bcdice/game_system/WaresBlade.rb, line 18
def result_nd10(_total, _dice_total, dice_list, cmp_op, _target)
  return nil unless cmp_op == :>=

  if dice_list.count(10) == dice_list.size
    Result.critical("完全成功")
  elsif dice_list.count(1) == dice_list.size
    Result.fumble("絶対失敗")
  end
end