Class: BCDice::GameSystem::ChaosFlare
- Defined in:
- lib/bcdice/game_system/ChaosFlare.rb
Constant Summary collapse
- ID =
ゲームシステムの識別子
'ChaosFlare'- NAME =
ゲームシステム名
'カオスフレア'- SORT_KEY =
ゲームシステム名の読みがな
'かおすふれあ'- HELP_MESSAGE =
ダイスボットの使い方
"\u5224\u5B9A\nCF\n \u66F8\u5F0F: [\u30C0\u30A4\u30B9\u306E\u6570]CF[\u4FEE\u6B63\u5024][@\u30AF\u30EA\u30C6\u30A3\u30AB\u30EB\u5024][#\u30D5\u30A1\u30F3\u30D6\u30EB\u5024][>=\u76EE\u6A19\u5024]\n CF\u4EE5\u5916\u306F\u5168\u3066\u7701\u7565\u53EF\u80FD\n \u4F8B:\n - CF 2D6,\u30AF\u30EA\u30C6\u30A3\u30AB\u30EB\u502412,\u30D5\u30A1\u30F3\u30D6\u30EB\u50242\u3067\u5224\u5B9A\n - CF+10@10 \u4FEE\u6B63\u5024+10,\u30AF\u30EA\u30C6\u30A3\u30AB\u30EB\u502410\u3067\u5224\u5B9A\n - CF+10#3 \u4FEE\u6B63\u5024+10,\u30D5\u30A1\u30F3\u30D6\u30EB\u50243\u3067\u5224\u5B9A\n - CF+10>=10 \u76EE\u6A19\u5024\u3092\u6307\u5B9A\u3057\u305F\u5834\u5408\u3001\u5DEE\u5206\u5024\u3082\u51FA\u529B\u3059\u308B\n - 3CF+10@10#3>=10 3D6\u3067\u306E\u5224\u5B9A\n - CF@9#3+8>=10\n\n2D6\n \u30D5\u30A1\u30F3\u30D6\u30EB\u50242\u3067\u5224\u5B9A\u3059\u308B\u3002\u30AF\u30EA\u30C6\u30A3\u30AB\u30EB\u306E\u5224\u5B9A\u306F\u884C\u308F\u308C\u306A\u3044\u3002\n \u76EE\u6A19\u5024\u304C\u8A2D\u5B9A\u3055\u308C\u305F\u5834\u5408\u3001\u5DEE\u5206\u5024\u3092\u51FA\u529B\u3059\u308B\u3002\n - 2D6+4>=10\n\n\u5404\u7A2E\u8868\n FT: \u56E0\u7E01\u8868\n FTx: \u6570\u5024\u3092\u6307\u5B9A\u3059\u308B\u3068\u56E0\u679C\u8868\u306E\u5024\u3092\u51FA\u529B\u3059\u308B\n - FT -> 11\u304B\u308966\u306E\u9593\u3067\u30E9\u30F3\u30C0\u30E0\u6C7A\u5B9A\n - FT23 -> 23\u306E\u9805\u76EE\u3092\u51FA\u529B\n - FT0\n - FT7\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
-
#check_2D6(total, dice_total, _dice_list, cmp_op, target) ⇒ Object
ゲーム別成功度判定(2D6)。以前の処理をそのまま残しています。.
- #eval_game_system_specific_command(command) ⇒ Object
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
#check_2D6(total, dice_total, _dice_list, cmp_op, target) ⇒ Object
ゲーム別成功度判定(2D6)。以前の処理をそのまま残しています。
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/bcdice/game_system/ChaosFlare.rb', line 45 def check_2D6(total, dice_total, _dice_list, cmp_op, target) return '' if target == '?' output = '' if dice_total <= 2 total -= 20 output = " > ファンブル(-20)" end unless cmp_op == :>= return output end if total >= target output += " > 成功" if total > target output += " > 差分値#{total - target}" end else output += " > 失敗 > 差分値#{total - target}" end return output end |
#eval_game_system_specific_command(command) ⇒ Object
71 72 73 74 75 76 77 |
# File 'lib/bcdice/game_system/ChaosFlare.rb', line 71 def eval_game_system_specific_command(command) if command.start_with? "FT" roll_fate_table(command) else cf_roll(command) end end |