Class: BCDice::GameSystem::WaresBlade
- Defined in:
- lib/bcdice/game_system/WaresBlade.rb
Constant Summary collapse
- ID =
ゲームシステムの識別子
'WaresBlade'
- NAME =
ゲームシステム名
'ワースブレイド'
- SORT_KEY =
ゲームシステム名の読みがな
'わあすふれいと'
- HELP_MESSAGE =
ダイスボットの使い方
"nD10>=m 方式の判定で成否、完全成功、完全失敗を自動判定します。\n"
Instance Attribute Summary
Attributes inherited from Base
#d66_sort_type, #default_cmp_op, #default_target_number, #randomizer, #reroll_dice_reroll_threshold, #round_type, #sides_implicit_d, #upper_dice_reroll_threshold
Instance Method Summary collapse
Methods inherited from Base
#change_text, #check_result, command_pattern, #enable_debug, #enabled_d9?, #eval, eval, #grich_text, #initialize, prefixes_pattern, register_prefix, register_prefix_from_super_class, #sort_add_dice?, #sort_barabara_dice?
Methods included from Translate
Constructor Details
This class inherits a constructor from BCDice::Base
Instance Method Details
#result_nd10(_total, _dice_total, dice_list, cmp_op, _target) ⇒ Object
18 19 20 21 22 23 24 25 26 |
# 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 |