Class: BCDice::GameSystem::KillDeathBusiness

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

Direct Known Subclasses

KillDeathBusiness_Korean

Constant Summary collapse

ID =

ゲームシステムの識別子

'KillDeathBusiness'
NAME =

ゲームシステム名

'キルデスビジネス'
SORT_KEY =

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

'きるてすひしねす'
HELP_MESSAGE =

ダイスボットの使い方

"\u30FB\u5224\u5B9A\n\u3000JDx or JDx\u00B1y or JDx,z JDx#z or JDx\u00B1y,z JDx\u00B1y#z\n\u3000\uFF08x\uFF1D\u96E3\u6613\u5EA6\u3001y\uFF1D\u88DC\u6B63\u3001z\uFF1D\u30D5\u30A1\u30F3\u30D6\u30EB\u7387(\u30EA\u30B9\u30AF)\uFF09\n\u30FB\u5C65\u6B74\u8868 (HST)\n\u30FB\u9858\u3044\u4E8B\u8868 (-WT)\n\u3000\u6B7B(DWT)\u3001\u5FA9\u8B90(RWT)\u3001\u52DD\u5229(VWT)\u3001\u7372\u5F97(PWT)\u3001\u652F\u914D(CWT)\u3001\u7E41\u6804(FWT)\n\u3000\u5F37\u5316(IWT)\u3001\u5065\u5EB7(HWT)\u3001\u5B89\u5168(SAWT)\u3001\u9577\u5BFF(LWT)\u3001\u751F(EWT)\n\u30FB\u4E07\u80FD\u547D\u540D\u8868 (NAME, NAMEx) x\u306B\u6570\u5B57(1,2,3)\u3067\u8868\u3092\u500B\u5225\u30ED\u30FC\u30EB\n\u30FB\u30B5\u30D6\u30D7\u30ED\u30C3\u30C8\u8868 (-SPT)\n\u3000\u30AA\u30AB\u30EB\u30C8(OSPT)\u3001\u5BB6\u65CF(FSPT)\u3001\u604B\u611B(LOSPT)\u3001\u6B63\u7FA9(JSPT)\u3001\u4FEE\u884C(TSPT)\n\u3000\u7B11\u3044(BSPT)\u3001\u610F\u5730\u60AA(MASPT)\u3001\u6068\u307F(UMSPT)\u3001\u4EBA\u6C17(POSPT)\u3001\u4ED5\u5207\u308A(PASPT)\n\u3000\u91D1\u5132\u3051(MOSPT)\u3001\u5BFE\u60AA\u9B54(ANSPT)\n\u30FB\u30B7\u30FC\u30F3\u8868 (ST)\u3001\u30B5\u30FC\u30D3\u30B9\u30B7\u30FC\u30F3\u8868 (EST)\n\u30FBCM\u8868 (CMT)\n\u30FB\u8607\u751F\u526F\u4F5C\u7528\u8868 (ERT)\n\u30FB\u4E00\u9031\u9593\u8868\uFF08WKT)\n\u30FB\u30BD\u30A6\u30EB\u653E\u51FA\u8868 (SOUL)\n\u30FB\u6C4E\u7528\u6F14\u51FA\u8868 (STGT)\n\u30FB\u30D8\u30EB\u30B9\u30BF\u30A4\u30EA\u30B9\u30C8\u7F75\u5012\u8868 (HSAT\u3001HSATx) x\u306B\u6570\u5B57(1,2)\u3067\u8868\u3092\u500B\u5225\u30ED\u30FC\u30EB\n\u30FB\u6307\u5B9A\u7279\u6280\u30E9\u30F3\u30C0\u30E0\u6C7A\u5B9A\u8868 (SKLT, RTTn n\u306F\u5206\u91CE\u756A\u53F7)\u3001\u6307\u5B9A\u7279\u6280\u5206\u91CE\u30E9\u30F3\u30C0\u30E0\u6C7A\u5B9A\u8868 (RCT, SKLJ)\n\u30FB\u30A8\u30AD\u30B9\u30C8\u30E9\u8868 (EXT\u3001EXTx) x\u306B\u6570\u5B57(1,2,3,4)\u3067\u8868\u3092\u500B\u5225\u30ED\u30FC\u30EB\n\u30FB\u88FD\u4F5C\u59D4\u54E1\u6C7A\u5B9A\u8868\u3000PCDT/\u5B9F\u969B\u3069\u3046\u3060\u3063\u305F\u306E\u304B\u8868\u3000OHT\n\u30FB\u30BF\u30B9\u30AF\u8868\u3000\u30D8\u30EB\u30E9\u30A4\u30AA\u30F3\u3000PCT1/\u30D8\u30EB\u30AF\u30ED\u30A6\u3000PCT2/\u30D8\u30EB\u30B9\u30CD\u30FC\u30AF\u3000PCT3/\n\u3000\u30D8\u30EB\u30C9\u30E9\u30B4\u30F3\u3000PCT4/\u30D8\u30EB\u30D5\u30E9\u30A4\u3000PCT5/\u30D8\u30EB\u30B4\u30FC\u30C8\u3000PCT6/\u30D8\u30EB\u30D9\u30A2\u3000PCT7\n\u30FBD66\u30C0\u30A4\u30B9\u3042\u308A\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, prefixes_pattern, register_prefix, register_prefix_from_super_class, #sort_add_dice?, #sort_barabara_dice?

Methods included from Translate

#translate

Constructor Details

#initialize(command) ⇒ KillDeathBusiness



44
45
46
47
48
49
# File 'lib/bcdice/game_system/KillDeathBusiness.rb', line 44

def initialize(command)
  super(command)

  @sort_add_dice = true
  @d66_sort_type = D66SortType::ASC
end

Instance Method Details

#eval_game_system_specific_command(command) ⇒ Object



62
63
64
65
66
67
68
69
70
# File 'lib/bcdice/game_system/KillDeathBusiness.rb', line 62

def eval_game_system_specific_command(command)
  debug("eval_game_system_specific_command command", command)

  if command.start_with?("JD")
    judgeDice(command)
  else
    rollTableCommand(command)
  end
end

#result_2d6(_total, dice_total, _dice_list, cmp_op, _target) ⇒ Object

ゲーム別成功度判定(2D6)



52
53
54
55
56
57
58
59
60
# File 'lib/bcdice/game_system/KillDeathBusiness.rb', line 52

def result_2d6(_total, dice_total, _dice_list, cmp_op, _target)
  return nil unless cmp_op == :>=

  if dice_total <= 2
    Result.fumble(translate("KillDeathBusiness.fumble"))
  elsif dice_total >= 12
    Result.critical(translate("KillDeathBusiness.special"))
  end
end