Class: BCDice::GameSystem::Revulture
- Defined in:
- lib/bcdice/game_system/Revulture.rb
Constant Summary collapse
- ID =
ゲームシステムの識別子
'Revulture'- NAME =
ゲームシステム名
'光砕のリヴァルチャー'- SORT_KEY =
ゲームシステム名の読みがな
'こうさいのりうあるちやあ'- HELP_MESSAGE =
ダイスボットの使い方
"\u25A0\u30A2\u30BF\u30C3\u30AF\u5224\u5B9A\uFF08 xAT, xATK, xATTACK \uFF09\nx: \u30C0\u30A4\u30B9\u6570\uFF08\u52A0\u7B97 + \u3068\u9664\u7B97 / \u3092\u4F7F\u7528\u53EF\u80FD\uFF09\n\u4F8B\uFF09 3AT, 4ATK, 5+6ATTACK, 15/2AT\n\n\u25A1\u30A2\u30BF\u30C3\u30AF\u5224\u5B9A\u3000\u76EE\u6A19\u5024\u3064\u304D\uFF08 xAT<=y, xATK<=y, xATTACK<=y \uFF09\nx: \u30C0\u30A4\u30B9\u6570\uFF08\u52A0\u7B97 + \u3068\u9664\u7B97 / \u3092\u4F7F\u7528\u53EF\u80FD\uFF09\ny: \u76EE\u6A19\u5024\uFF08 1 \u4EE5\u4E0A 6 \u4EE5\u4E0B\u3002\u52A0\u7B97 + \u3092\u4F7F\u7528\u53EF\u80FD\uFF09\n\u4F8B\uFF09 3AT<=4, 3AT<=2+1\n\n\u25A1\u30A2\u30BF\u30C3\u30AF\u5224\u5B9A\u3000\u76EE\u6A19\u5024\uFF06\u8FFD\u52A0\u30C0\u30E1\u30FC\u30B8\u3064\u304D\uFF08 xAT<=y[>=a:+b], xATK<=y[>=a:+b], xATTACK<=y[z] \uFF09\nx: \u30C0\u30A4\u30B9\u6570\uFF08\u52A0\u7B97 + \u3068\u9664\u7B97 / \u3092\u4F7F\u7528\u53EF\u80FD\uFF09\ny: \u76EE\u6A19\u5024\uFF08 1 \u4EE5\u4E0A 6 \u4EE5\u4E0B\u3002\u52A0\u7B97 + \u3092\u4F7F\u7528\u53EF\u80FD\uFF09\nz: \u8FFD\u52A0\u30C0\u30E1\u30FC\u30B8\u306E\u898F\u5247\uFF08\u8A73\u7D30\u306F\u5F8C\u8FF0\uFF09\uFF08\u203B\u8907\u6570\u540C\u6642\u306B\u6307\u5B9A\u53EF\u80FD\uFF09\n\n\u25BD\u8FFD\u52A0\u30C0\u30E1\u30FC\u30B8\u306E\u898F\u5247 [a:+b]\na: \u30D2\u30C3\u30C8\u6570\u304C a \u306A\u3089\n\u3000=a\u3000\uFF08\u30D2\u30C3\u30C8\u6570\u304C a \u306B\u7B49\u3057\u3044\uFF09\n\u3000>=a\u3000\uFF08\u30D2\u30C3\u30C8\u6570\u304C a \u4EE5\u4E0A\uFF09\nb: \u30C0\u30E1\u30FC\u30B8\u3092 b \u70B9\u8FFD\u52A0\n\n\u4F8B\uFF09 3AT<=4[>=2:+3] #\u30EB\u30FC\u30EB\u30D6\u30C3\u30AFp056\u300C\u30B0\u30EC\u30F3\u30B0\u30E9\u30F3\u30C8AR\u300D\n\u4F8B\uFF09 2AT<=4[=1:+5][>=2:+8] #\u30EB\u30FC\u30EB\u30D6\u30C3\u30AFp067\u300C\u30D5\u30A1\u30FC\u30DC\u30EB\u30FB\u30C9\u30E9\u30B4\u30F3\u30D6\u30EC\u30B9\u300D\n"- ATTACK_ROLL_REG =
%r{^(\d+([+/]\d+)*)?AT(TACK|K)?(<=([1-6](\+\d)*))?((\[>?=\d+:\+\d+\])+)?}i.freeze
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
44 45 46 47 48 |
# File 'lib/bcdice/game_system/Revulture.rb', line 44 def eval_game_system_specific_command(command) if (m = ATTACK_ROLL_REG.match(command)) roll_attack(m[1], m[5], m[7]) end end |