class BCDice::GameSystem::Gorilla
Constants
- HELP_MESSAGE
ダイスボットの使い方
- ID
ゲームシステムの識別子
- NAME
ゲームシステム名
- SORT_KEY
ゲームシステム名の読みがな
Public Instance Methods
change_text(string)
click to toggle source
# File lib/bcdice/game_system/Gorilla.rb, line 26 def change_text(string) string = string.gsub(/^(S)?G/i) { "#{Regexp.last_match(1)}2D6" } return string end
result_2d6(_total, _dice_total, dice_list, _cmp_op, _target)
click to toggle source
# File lib/bcdice/game_system/Gorilla.rb, line 31 def result_2d6(_total, _dice_total, dice_list, _cmp_op, _target) if dice_list == [5, 5] Result.critical("ゴリティカル(自動的成功)") end end