Class: BCDice::GameSystem::TacticalExorcist

Inherits:
NinjaSlayer2 show all
Defined in:
lib/bcdice/game_system/TacticalExorcist.rb

Constant Summary collapse

ID =

ゲームシステムの識別子

"TacticalExorcist"
NAME =

ゲームシステム名

"タクティカル祓魔師TRPG"
SORT_KEY =

ゲームシステム名の読みがな

"たくていかるふつましTRPG"
HELP_MESSAGE =
"--- \u6210\u529F\u5224\u5B9A\u30B3\u30DE\u30F3\u30C9 ---\n\u901A\u5E38\u306E\u30C0\u30A4\u30B9\u306E\u300C{\u30C0\u30A4\u30B9\u500B\u6570}B6>={\u96E3\u6613\u5EA6\u3054\u3068\u306E\u76EE\u6A19\u51FA\u76EE}\u300D\u3092\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u7C21\u6613\u5165\u529B\u30B3\u30DE\u30F3\u30C9\u3067\u3059\u3002\n\n- K{x}\n\u96E3\u6613\u5EA6K([K]ids/\u76EE\u6A19\u5024=2)\u306E\u6210\u529F\u5224\u5B9A\u3092\u30C0\u30A4\u30B9{x}\u500B\u3067\u5B9F\u884C\u3057\u307E\u3059\u3002\n\u5148\u982D\u306E\u6587\u5B57\u3092\u5909\u3048\u308B\u3053\u3068\u3067\u3001\u96E3\u6613\u5EA6E([E]asy/\u76EE\u6A19\u5024=3),N([N]ormal/\u76EE\u6A19\u5024=4),H([H]ard/\u76EE\u6A19\u5024=5),U([U]ltra-hard/\u76EE\u6A19\u5024=6)\u3082\u3057\u304F\u306FUH([U]ltra-[H]ard/\u76EE\u6A19\u5024=6)\u3067\u3082\u5B9F\u884C\u53EF\u80FD\u3067\u3059\u3002\n\n- K{x1},N{x2},...,U{xn}\nK{x}\u306E\u8907\u6570\u30ED\u30FC\u30EB\u7248\u3002\n\u30AB\u30F3\u30DE(,)\u3067\u533A\u5207\u3063\u3066\u8907\u6570\u56DE\u5165\u529B\u3059\u308B\u3068\u3001\u533A\u5207\u3089\u308C\u305F\u30BB\u30C3\u30C8\u3054\u3068\u306B\u6210\u529F\u5224\u5B9A\u3092\u884C\u3044\u307E\u3059\u3002\n2\u56DE\u76EE\u4EE5\u964D\u306F\u96E3\u6613\u5EA6\u6307\u5B9A\u3092\u7701\u7565\u53EF\u80FD\u3067\u3001\u7701\u7565\u3057\u305F\u5834\u5408\u306F\u3072\u3068\u3064\u524D\u306E\u96E3\u6613\u5EA6\u3092\u5F15\u304D\u7D99\u3044\u3067\u5224\u5B9A\u3092\u884C\u3044\u307E\u3059\u3002\n\u4EE5\u4E0B\u306E\u30B3\u30DE\u30F3\u30C9\u306B\u3064\u3044\u3066\u3082\u540C\u69D8\u306E\u66F8\u5F0F\u3067\u8907\u6570\u30ED\u30FC\u30EB\u3057\u3066\u306E\u540C\u6642\u5224\u5B9A\u304C\u53EF\u80FD\u3067\u3059\u3002\n\n- K{x1},{x2},...,{xn}@{y1},{y2},...,{yn}\nK{x1},{x2},...,{xn}\u306E\u5224\u5B9A\u3092\u884C\u3044\u3001\u51FA\u76EE\u306E\u4E2D\u3067{y1}\u304B\u3089{yn}\u306E\u3044\u305A\u308C\u304B\u306E\u5024\u3068\u4E00\u81F4\u3057\u305F\u51FA\u76EE\u3092\u5217\u6319\u3057\u3066\u8FFD\u52A0\u3067\u51FA\u529B\u3057\u307E\u3059\u3002(\u8FFD\u52A0\u5224\u5B9A\u30B3\u30DE\u30F3\u30C9\u306E\u7C21\u6613\u5165\u529B\u7248\u3067\u3059)\n\n--- \u8FFD\u52A0\u5224\u5B9A\u30B3\u30DE\u30F3\u30C9 ---\n\u4EE5\u4E0B\u306E\u30B3\u30DE\u30F3\u30C9\u7FA4\u306F\u3001\u6210\u529F\u5224\u5B9A\u30B3\u30DE\u30F3\u30C9\u306E\u5F8C\u308D\u306B\u4ED8\u3051\u3066\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\n\n- [>={y}]\n- [>{y}]\n- [<={y}]\n- [<{y}]\n- [={y}]\n- [!={y}]\n\u6210\u529F\u5224\u5B9A\u30B3\u30DE\u30F3\u30C9\u3067\u30AB\u30F3\u30DE\u533A\u5207\u308A\u3067\u6307\u5B9A\u3057\u305F\u5404\u30ED\u30FC\u30EB\u7D50\u679C\u306B\u5BFE\u3057\u3066\u3001[]\u5185\u3067\u6307\u5B9A\u3055\u308C\u305F\u6761\u4EF6\u3067\u8FFD\u52A0\u5224\u5B9A\u3092\u884C\u3044\u307E\u3059\u3002\n\u305D\u308C\u305E\u308C\u3001{y}\u4EE5\u4E0A(>=)\u3001{y}\u3088\u308A\u5927\u304D\u3044(>)\u3001{y}\u4EE5\u4E0B(<=)\u3001{y}\u672A\u6E80(<)\u3001{y}\u306E\u307F(=)\u3001{y}\u4EE5\u5916(!=)\u3092\u5224\u5B9A\u3057\u3001\n\u30ED\u30FC\u30EB\u7D50\u679C\u306E\u4E2D\u3067\u6761\u4EF6\u3092\u6E80\u305F\u3057\u305F\u30C0\u30A4\u30B9\u306E\u500B\u6570\u3092\u300C\u8FFD\u52A0\u5224\u5B9A\u300D\u3068\u3044\u3046\u30C6\u30AD\u30B9\u30C8\u3068\u5171\u306B\u51FA\u529B\u3057\u307E\u3059\u3002\n[=5][=6]\u306E\u3088\u3046\u306B\u8907\u6570\u8A18\u8FF0\u3059\u308B\u3053\u3068\u3067\u3001\u3072\u3068\u3064\u306E\u30ED\u30FC\u30EB\u306B\u5BFE\u3057\u3066\u8907\u6570\u30D1\u30BF\u30FC\u30F3\u3067\u306E\u8FFD\u52A0\u5224\u5B9A\u304C\u53EF\u80FD\u3067\u3059\u3002\n\u203B \u6761\u4EF6\u306F\u4E00\u62EC\u3067\u3057\u304B\u6307\u5B9A\u3067\u304D\u306A\u3044\u305F\u3081\u3001\u30ED\u30FC\u30EB\u3054\u3068\u306B\u7570\u306A\u308B\u6761\u4EF6\u3092\u6307\u5B9A\u3057\u305F\u3044\u5834\u5408\u306F\u30B3\u30DE\u30F3\u30C9\u3092\u5206\u3051\u3066\u304F\u3060\u3055\u3044\u3002\u4EE5\u4E0B\u3082\u540C\u69D8\u3067\u3059\u3002\u3002\n\n- [>={y1}{y2}...{yn}+]\n\u6210\u529F\u5224\u5B9A\u30B3\u30DE\u30F3\u30C9\u3067\u30AB\u30F3\u30DE\u533A\u5207\u308A\u3067\u6307\u5B9A\u3057\u305F\u5404\u30ED\u30FC\u30EB\u7D50\u679C\u306B\u5BFE\u3057\u3066\u3001[>={y1}]\uFF5E[>={yn}]\u306E\u5404\u6761\u4EF6\u3067\u8FFD\u52A0\u5224\u5B9A\u3092\u884C\u3044\u307E\u3059\u3002\n\u51FA\u76EE\u306E\u4E2D\u306B\u6761\u4EF6\u3092\u6E80\u305F\u3057\u305F\u30C0\u30A4\u30B9\u304C**\u5168\u3066**\u542B\u307E\u308C\u3066\u3044\u305F\u5834\u5408\u3001\u300C\u8FFD\u52A0\u5224\u5B9A\u6210\u529F\uFF01\u300D\u3068\u3044\u3046\u30C6\u30AD\u30B9\u30C8\u3092\u51FA\u529B\u3057\u307E\u3059\u3002\n\u4F8B\u3048\u3070[>=665+]\u3068\u3057\u305F\u5834\u5408\u3001\u51FA\u76EE\u306E\u4E2D\u306B6\u4EE5\u4E0A\u306E\u30C0\u30A4\u30B9\u304C2\u3064\u30685\u4EE5\u4E0A\u306E\u30C0\u30A4\u30B9\u304C1\u3064\u542B\u307E\u308C\u3066\u3044\u308C\u3070\u6210\u529F\u6271\u3044\u306B\u306A\u308A\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

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

#translate

Constructor Details

This class inherits a constructor from BCDice::Base

Instance Method Details

#eval_game_system_specific_command(command) ⇒ String?

Base::eval_game_system_specific_commandの実装



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'lib/bcdice/game_system/TacticalExorcist.rb', line 58

def eval_game_system_specific_command(command)
  # @debug = true
  debug("input: #{command}")

  begin
    case command
    when RE_JUDGE_DICEROLL_TE
      # タクティカル祓魔師TRPGで追加されたコマンド
      proc_result = proc_dice_command_with_at(command)

      # 結果は文字列と達成値という形で受け取る
      if proc_result[1] > 0
        return Result.success(proc_result[0])
      else
        return Result.failure(proc_result[0])
      end
    when RE_JUDGE_DICEROLL
      # ソウルワイヤードTRPGフレームワーク2版(ニンジャスレイヤーTRPG第2版)用のダイス判定
      proc_result = proc_dice_2nd(Regexp.last_match)

      # 結果は文字列と達成値という形で受け取る
      if proc_result[1] > 0
        return Result.success(proc_result[0])
      else
        return Result.failure(proc_result[0])
      end
    else
      # ダイスでなければ定型文処理
      return proc_text(command)
    end
  rescue StandardError => e
    # 解析できずにエラーが出たら構文ミスと皆してnilを返す
    debug("#{e.message} \n#{e.backtrace}")
    return nil
  end
end