Class: BCDice::GameSystem::ChroniclesOfDarkness2e

Inherits:
Base
  • Object
show all
Defined in:
lib/bcdice/game_system/ChroniclesOfDarkness2e.rb

Constant Summary collapse

ID =

ゲームシステムの識別子

'ChroniclesOfDarkness2e'
NAME =

ゲームシステム名

'Chronicles of Darkness 2nd Edtion'
SORT_KEY =

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

'くろにくるすおふたあくねす2'
HELP_MESSAGE =

ダイスボットの使い方

"\u30FB\u5224\u5B9A\u30B3\u30DE\u30F3\u30C9(CDx@cWdAs)\n    x:\u30C0\u30A4\u30B9\u30D7\u30FC\u30EB(0\u4EE5\u4E0B\u3067Chance Roll)\n    c:\u632F\u308A\u8DB3\u3057\u5024(\u7701\u7565\u53EF\u3001\u7701\u7565\u6642\u306F10)\u30028-10\u306E\u5024\u3092\u53D6\u308B\u3002Chance Roll\u306B\u306F\u9069\u7528\u3055\u308C\u306A\u3044\u3002\n    d:\u6B66\u5668\u30C0\u30E1\u30FC\u30B8\u4FEE\u6B63(\u7701\u7565\u53EF)\u3002\u5224\u5B9A\u306B\u3088\u308B\u6210\u529F\u6570\u304C1\u4EE5\u4E0A\u306E\u3068\u304D\u306B\u30C0\u30E1\u30FC\u30B8\u3068\u3057\u3066\u4FEE\u6B63\u5024\u3092\u52A0\u7B97\u3002\n    s:\u81EA\u52D5\u6210\u529F\u6570(\u7701\u7565\u53EF)\u3002\u6210\u529F\u6570\u306B\u52A0\u7B97\u3055\u308C\u308B\u3002\n\n    \u4F8B1\uFF1A6\u30C0\u30A4\u30B9\u30D7\u30FC\u30EB\u300110 again\n    CD6\n    CD6@10\n\n    \u4F8B2\uFF1A9\u30C0\u30A4\u30B9\u30D7\u30FC\u30EB\u30019\u306E\u632F\u308A\u8DB3\u3057(9 again)\u3001\u81EA\u52D5\u6210\u529F1\n    CD9@9A1\n\n    \u4F8B3\uFF1A0\u30C0\u30A4\u30B9\u30D7\u30FC\u30EB(Chance Roll)\u30018\u306E\u632F\u308A\u8DB3\u3057(8 again, \u9069\u7528\u3055\u308C\u306A\u3044)\u3001\u81EA\u52D5\u6210\u529F1\u3001\u6B66\u5668\u4FEE\u6B63+2\n    CD0@8W2A1\n\n    \u4F8B4\uFF1A-1\u30C0\u30A4\u30B9\u30D7\u30FC\u30EB(Chance Roll)\n    CD(4-5)\n\n"
DICE_POOL_INDEX =
2
AGAIN_NUMBER_INDEX =
4
WEAPON_MODIFIER_INDEX =
6
AUTO_SUCCESS_INDEX =
8
EXCEPTIONAL_SUCCESS_THRESHOLD =

Exceptional Successの閾値

5

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) ⇒ Object



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/bcdice/game_system/ChroniclesOfDarkness2e.rb', line 47

def eval_game_system_specific_command(command)
  m = /\A(CD)(-?\d+)(@([8-9]|10))?(W(\d+))?(A(\d+))?$/.match(command)
  unless m
    return ''
  end

  # 引数分解
  dice_pool, again_number, weapon_modifier, auto_success = get_arguments(m)

  # ダイスロール
  success_number, dice_text, dramatic_failure = make_dice_roll(dice_pool, again_number)

  # 結果判定
  get_roll_result(dice_pool, dice_text, success_number, weapon_modifier, auto_success, dramatic_failure)
end