Class: BCDice::GameSystem::TalesFromTheLoop
- Defined in:
- lib/bcdice/game_system/TalesFromTheLoop.rb
Constant Summary collapse
- ID =
ゲームシステムの識別子
"TalesFromTheLoop"
- NAME =
ゲームシステム名
"ザ・ループTRPG"
- SORT_KEY =
ゲームシステム名の読みがな
"さるうふTRPG"
- HELP_MESSAGE =
"\u25A0 \u5224\u5B9A\u30B3\u30DE\u30F3\u30C9(nTFLx-x+x or nTFLx+x-x)\n (\u5FC5\u8981\u6210\u529F\u6570)TFL(\u5224\u5B9A\u30C0\u30A4\u30B9\u6570)+/-(\u4FEE\u6B63\u30C0\u30A4\u30B9\u6570)\n\n\u203B \u5FC5\u8981\u6210\u529F\u6570\u3068\u4FEE\u6B63\u30C0\u30A4\u30B9\u6570\u306F\u7701\u7565\u53EF\u80FD\n\n\u4F8B1) \u5FC5\u8981\u6210\u529F\u65701\u3001\u5224\u5B9A\u30C0\u30A4\u30B9\u306F\u80FD\u529B\u50243\n 1TFL3\n\n\u4F8B2\uFF09\u5FC5\u8981\u6210\u529F\u6570\u4E0D\u660E\u3001\u3042\u308B\u3044\u306F\u30C0\u30A4\u30B9\u30DC\u30C3\u30C8\u306E\u6210\u529F\u5224\u5B9A\u3092\u4F7F\u308F\u306A\u3044\u3001\u5224\u5B9A\u30C0\u30A4\u30B9\u306F\u80FD\u529B\u50243+\u6280\u80FD1\u30674\u3001\u30A2\u30A4\u30C6\u30E0\u306E\u4FEE\u6B63+1\n TFL4+1\n\n\u4F8B3\uFF09\u5FC5\u8981\u6210\u529F\u65701\u3001\u5224\u5B9A\u30C0\u30A4\u30B9\u306F\u80FD\u529B\u50242+\u6280\u80FD1\u30673\u3001\u30B3\u30F3\u30C7\u30A3\u30B7\u30E7\u30F3\u306B\u30C1\u30A7\u30C3\u30AF\u304C2\u3064\u3001\u30A2\u30A4\u30C6\u30E0\u306E\u4FEE\u6B63+1\n 1TFL3-2+1\n \u3042\u308B\u3044\u306F\u4EE5\u4E0B\u306E\u3088\u3046\u306B\u30AB\u30C3\u30B3\u66F8\u304D\u3067\u5185\u8A33\u3092\u8A73\u7D30\u306B\u8A18\u8FF0\u3059\u308B\u3053\u3068\u3082\u53EF\u80FD\u3002\n 1TFL(2+1)-(1+1)+1\n \u4FEE\u6B63\u30C0\u30A4\u30B9\u306E\u30D7\u30E9\u30B9\u3068\u30DE\u30A4\u30CA\u30B9\u306F\u9006\u3067\u3082\u3088\u3044\u3002\n 1TFL(2+1)+1-(1+1)\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
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
#eval_game_system_specific_command(command) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/bcdice/game_system/TalesFromTheLoop.rb', line 37 def eval_game_system_specific_command(command) parser = Command::Parser.new(/\d*TFL\d+/, round_type: round_type) parsed = parser.parse(command) return nil unless parsed difficulty, dice_pool = parsed.command.split("TFL", 2).map(&:to_i) dice_pool += parsed.modify_number if dice_pool <= 0 dice_pool = 1 end ability_dice_text, success_dice = make_dice_roll(dice_pool) return make_dice_roll_text(difficulty, dice_pool, ability_dice_text, success_dice) end |