Class: BCDice::GameSystem::CthulhuTech
- Defined in:
- lib/bcdice/game_system/CthulhuTech.rb
Defined Under Namespace
Constant Summary collapse
- ID =
ゲームシステムの識別子
'CthulhuTech'- NAME =
ゲームシステム名
'クトゥルフテック'- SORT_KEY =
ゲームシステム名の読みがな
'くとうるふてつく'- HELP_MESSAGE =
ダイスボットの使い方
"\u30FB\u884C\u70BA\u5224\u5B9A\uFF08test\uFF09\uFF1AnD10+m>=d\n\u3000n\u500B\u306E\u30C0\u30A4\u30B9\u3092\u4F7F\u7528\u3057\u3066\u3001\u4FEE\u6B63\u5024m\u3001\u96E3\u6613\u5EA6d\u3067\u884C\u70BA\u5224\u5B9A\uFF08test\uFF09\u3092\u884C\u3044\u307E\u3059\u3002\n\u3000\u4FEE\u6B63\u5024m\u306F\u7701\u7565\u53EF\u80FD\u3001\u8907\u6570\u6307\u5B9A\u53EF\u80FD\uFF08\u4F8B\uFF1A+2-4\uFF09\u3067\u3059\u3002\n\u3000\u6210\u529F\u3001\u5931\u6557\u3001\u30AF\u30EA\u30C6\u30A3\u30AB\u30EB\u3001\u30D5\u30A1\u30F3\u30D6\u30EB\u3092\u81EA\u52D5\u5224\u5B9A\u3057\u307E\u3059\u3002\n\u3000\u4F8B\uFF092D10>=12\u30004D10+2>=28\u30005D10+2-4>=32\n\n\u30FB\u5BFE\u6297\u5224\u5B9A\uFF08contest\uFF09\uFF1AnD10+m>d\n\u3000\u884C\u70BA\u5224\u5B9A\u3068\u540C\u69D8\u3067\u3059\u304C\u3001\u9632\u5FA1\u5074\u6709\u5229\u306E\u305F\u3081\u300C>=\u300D\u3067\u306F\u306A\u304F\u300C>\u300D\u3092\u5165\u529B\u3057\u307E\u3059\u3002\n\u3000\u30C0\u30E1\u30FC\u30B8\u30C0\u30A4\u30B9\u3082\u8868\u793A\u3057\u307E\u3059\u3002\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
-
#eval_game_system_specific_command(command) ⇒ String?
ダイスボット固有コマンドの処理を行う.
-
#initialize(command) ⇒ CthulhuTech
constructor
ダイスボットを初期化する.
Methods inherited from Base
#change_text, #check_result, command_pattern, #enable_debug, #enabled_d9?, #eval, eval, #grich_text, prefixes_pattern, register_prefix, register_prefix_from_super_class, #sort_add_dice?, #sort_barabara_dice?
Methods included from Translate
Constructor Details
#initialize(command) ⇒ CthulhuTech
ダイスボットを初期化する
216 217 218 219 220 221 |
# File 'lib/bcdice/game_system/CthulhuTech.rb', line 216 def initialize(command) super(command) # 加算ロールで出目をソートする @sort_add_dice = true end |
Instance Method Details
#eval_game_system_specific_command(command) ⇒ String?
ダイスボット固有コマンドの処理を行う
227 228 229 230 231 232 |
# File 'lib/bcdice/game_system/CthulhuTech.rb', line 227 def eval_game_system_specific_command(command) node = parse(command) return nil unless node return node.execute(@randomizer) end |