Class: BCDice::GameSystem::DarkDaysDrive
- Defined in:
- lib/bcdice/game_system/DarkDaysDrive.rb
Constant Summary collapse
- ID =
ゲームシステムの識別子
'DarkDaysDrive'- NAME =
ゲームシステム名
'ダークデイズドライブ'- SORT_KEY =
ゲームシステム名の読みがな
'たあくていすとらいふ'- HELP_MESSAGE =
ダイスボットの使い方
"\u30FB\u5224\u5B9A\n\u30B9\u30DA\u30B7\u30E3\u30EB\uFF0F\u30D5\u30A1\u30F3\u30D6\u30EB\uFF0F\u6210\u529F\uFF0F\u5931\u6557\u3092\u5224\u5B9A\n\u30FB\u5404\u7A2E\u8868\nRTTn \u30E9\u30F3\u30C0\u30E0\u7279\u6280\u6C7A\u5B9A\u8868(n\uFF1A\u5206\u91CE\u756A\u53F7\u3001\u7701\u7565\u53EF\u80FD)\nRCT \u30E9\u30F3\u30C0\u30E0\u5206\u91CE\u6C7A\u5B9A\u8868\nABRT \u30A2\u30D3\u30EA\u30C6\u30A3\u6C7A\u5B9A\u8868\nDT \u30C0\u30E1\u30FC\u30B8\u8868\nFT \u5931\u6557\u8868\nGJT \u5927\u6210\u529F\u8868\nITT \u79FB\u52D5\u30C8\u30E9\u30D6\u30EB\u8868\nNTT \u4EFB\u52D9\u30C8\u30E9\u30D6\u30EB\u8868\nSTT \u8972\u6483\u30C8\u30E9\u30D6\u30EB\u8868\nHTT \u5909\u8EAB\u30C8\u30E9\u30D6\u30EB\u8868\nDET \u30C9\u30E9\u30A4\u30D6\u30A4\u30D9\u30F3\u30C8\u8868\nBET \u30D6\u30EC\u30A4\u30AF\u30A4\u30D9\u30F3\u30C8\u8868\nCT \u30AD\u30E3\u30F3\u30D7\u8868\nKZT \u95A2\u4FC2\u5C5E\u6027\u8868\nIA \u30A4\u30B1\u30E1\u30F3\u30A2\u30AF\u30B7\u30E7\u30F3\u6C7A\u5B9A\u8868\n IAA \u9060\u8DDD\u96E2 IAB \u79FB\u52D5 IAC \u8FD1\u8DDD\u96E2 IAD \u5584\u4EBA IAE \u60AA\u4EBA\n IAF \u5E7C\u3044 IAG \u30D0\u30AB IAH \u6E0B\u3044 IAI \u8CE2\u3044 IAJ \u8D85\u81EA\u7136\nIAX \u30A4\u30B1\u30E1\u30F3\u30A2\u30AF\u30B7\u30E7\u30F3\u6C7A\u5B9A\u8868 \u2192 IA\u8868\n\u25A0\u672C\u683C\u7684\u306A\u6226\u95D8\nCAC \u30BB\u30F3\u30BF\u30FC\u306E\u884C\u52D5\u6C7A\u5B9A\nDDC \u5BFE\u8A71\u30C0\u30E1\u30FC\u30B8\u8868\n\u30FBD66\u30C0\u30A4\u30B9\u6607\u9806\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) ⇒ Object
-
#initialize(command) ⇒ DarkDaysDrive
constructor
A new instance of DarkDaysDrive.
-
#result_2d6(total, dice_total, _dice_list, cmp_op, target) ⇒ Object
ゲーム別成功度判定(2D6).
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) ⇒ DarkDaysDrive
Returns a new instance of DarkDaysDrive.
44 45 46 47 |
# File 'lib/bcdice/game_system/DarkDaysDrive.rb', line 44 def initialize(command) super(command) @d66_sort_type = D66SortType::ASC end |
Instance Method Details
#eval_game_system_specific_command(command) ⇒ Object
66 67 68 69 70 |
# File 'lib/bcdice/game_system/DarkDaysDrive.rb', line 66 def eval_game_system_specific_command(command) roll_tables(command, TABLES) || command_iax(command) || RTT.roll_command(randomizer, command) end |
#result_2d6(total, dice_total, _dice_list, cmp_op, target) ⇒ Object
ゲーム別成功度判定(2D6)
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/bcdice/game_system/DarkDaysDrive.rb', line 50 def result_2d6(total, dice_total, _dice_list, cmp_op, target) return nil unless cmp_op == :>= if dice_total <= 2 Result.fumble("ファンブル(判定失敗。失敗表(FT)を追加で1回振る)") elsif dice_total >= 12 Result.critical("スペシャル(判定成功。大成功表(GJT)を1回使用可能)") elsif target == "?" Result.nothing elsif total >= target Result.success("成功") else Result.failure("失敗") end end |