Class: BCDice::GameSystem::Gorilla
- Defined in:
- lib/bcdice/game_system/Gorilla.rb
Constant Summary collapse
- ID =
ゲームシステムの識別子
'Gorilla'- NAME =
ゲームシステム名
'ゴリラTRPG'- SORT_KEY =
ゲームシステム名の読みがな
'こりらTRPG'- HELP_MESSAGE =
ダイスボットの使い方
"2D6\u30ED\u30FC\u30EB\u6642\u306E\u30B4\u30EA\u30C6\u30A3\u30AB\u30EB\u81EA\u52D5\u5224\u5B9A\u3092\u884C\u3044\u307E\u3059\u3002\n\nG = 2D6\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\n\n\u4F8B) G>=7 : 2D6\u3057\u30667\u4EE5\u4E0A\u306A\u3089\u6210\u529F\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
- #change_text(string) ⇒ Object
- #result_2d6(_total, _dice_total, dice_list, _cmp_op, _target) ⇒ Object
Methods inherited from Base
#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
#change_text(string) ⇒ Object
26 27 28 29 |
# 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) ⇒ Object
31 32 33 34 35 |
# 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 |