Class: BCDice::GameSystem::FutariSousa

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

Direct Known Subclasses

FutariSousa_Korean

Constant Summary collapse

ID =

ゲームシステムの識別子

'FutariSousa'
NAME =

ゲームシステム名

'フタリソウサ'
SORT_KEY =

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

'ふたりそうさ'
HELP_MESSAGE =

ダイスボットの使い方

"\u30FB\u5224\u5B9A\u7528\u30B3\u30DE\u30F3\u30C9\n\u63A2\u5075\u7528\uFF1A\u3010DT\u3011\u202610\u9762\u30C0\u30A4\u30B9\u30922\u3064\u632F\u3063\u3066\u5224\u5B9A\u3057\u307E\u3059\u3002\u300E\u6709\u5229\u300F\u306A\u3089\u30103DT\u3011\u3001\u300E\u4E0D\u5229\u300F\u306A\u3089\u30101DT\u3011\u3092\u4F7F\u3044\u307E\u3059\u3002\n\u52A9\u624B\u7528\uFF1A\u3010AS\u3011\u20266\u9762\u30C0\u30A4\u30B9\u30922\u3064\u632F\u3063\u3066\u5224\u5B9A\u3057\u307E\u3059\u3002\u300E\u6709\u5229\u300F\u306A\u3089\u30103AS\u3011\u3001\u300E\u4E0D\u5229\u300F\u306A\u3089\u30101AS\u3011\u3092\u4F7F\u3044\u307E\u3059\u3002\n\u30FB\u5404\u7A2E\u8868\n\u3010\u8ABF\u67FB\u6642\u3011\n\u7570\u5E38\u306A\u7656\u6C7A\u5B9A\u8868 SHRD\n\u3000\u53E3\u304B\u3089\u51FA\u308B\u8868 SHFM\uFF0F\u5F37\u5F15\u306A\u635C\u67FB\u8868\u3000\u3000\u3000 SHBT\uFF0F\u3059\u3063\u3068\u307C\u3051\u8868\u3000 SHPI\n\u3000\u4E8B\u4EF6\u306B\u5922\u4E2D\u8868 SHEG\uFF0F\u30D1\u30FC\u30C8\u30CA\u30FC\u3068\u2026\u2026\u8868 SHWP\uFF0F\u4F55\u304B\u3057\u3066\u3044\u308B\u8868 SHDS\n\u3000\u5947\u60F3\u5929\u5916\u8868\u3000 SHFT\uFF0F\u6025\u306A\u3072\u3089\u3081\u304D\u8868\u3000\u3000 SHIN\uFF0F\u559C\u6012\u54C0\u697D\u8868\u3000\u3000 SHEM\n\u30A4\u30D9\u30F3\u30C8\u8868\n\u3000\u73FE\u5834\u306B\u3066\u3000 EVS\uFF0F\u306A\u305C\uFF1F\u3000 EVW\uFF0F\u5354\u529B\u8005\u3068\u5171\u306B EVN\n\u3000\u5411\u3053\u3046\u304B\u3089 EVC\uFF0FVS\u5BB9\u7591\u8005 EVV\n\u8ABF\u67FB\u306E\u969C\u5BB3\u8868 OBT\u3000\u3000\u5909\u8ABF\u8868 ACT\u3000\u3000\u76EE\u6483\u8005\u8868 EWT\u3000\u3000\u8FF7\u5BAE\u5165\u308A\u8868 WMT\n\u3010\u8A2D\u5B9A\u6642\u3011\n\u80CC\u666F\u8868\n\u3000\u63A2\u5075\u3000\u904B\u547D\u306E\u8840\u7D71 BGDD\uFF0F\u5929\u6027\u306E\u624D\u80FD BGDG\uFF0F\u30DE\u30CB\u30A2\u3000\u3000\u3000\u3000 BGDM\n\u3000\u52A9\u624B\u3000\u6B63\u7FA9\u306E\u4EBA\u3000 BGAJ\uFF0F\u60C5\u71B1\u306E\u4EBA\u3000 BGAP\uFF0F\u5DFB\u304D\u8FBC\u307E\u308C\u306E\u4EBA BGAI\n\u8EAB\u9577\u8868 HT\u3000\u3000\u305F\u307E\u308A\u5834\u8868 BT\u3000\u3000\u95A2\u4FC2\u8868 GRT\u3000\u3000\u601D\u3044\u51FA\u306E\u54C1\u6C7A\u5B9A\u8868 MIT\n\u8077\u696D\u8868A\u30FBB\u3000\u3000JBT66\u30FBJBT10\u3000\u3000\u30D5\u30A1\u30C3\u30B7\u30E7\u30F3\u7279\u5FB4\u8868A\u30FBB\u3000\u3000\u3000\u3000FST66\u30FBFST10\n\u611F\u60C5\u8868A\uFF0FB\u3000\u3000FLT66\u30FBFLT10\u3000\u3000\u597D\u304D\u306A\u3082\u306E\uFF0F\u5ACC\u3044\u306A\u3082\u306E\u8868A\u30FBB\u3000LDT66\u30FBLDT10\n\u547C\u3073\u540D\u8868A\u30FBB\u3000NCT66\u30FBNCT10\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) ⇒ FutariSousa

Returns a new instance of FutariSousa.



40
41
42
43
44
# File 'lib/bcdice/game_system/FutariSousa.rb', line 40

def initialize(command)
  super(command)

  @d66_sort_type = D66SortType::ASC
end

Instance Method Details

#eval_game_system_specific_command(command) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
# File 'lib/bcdice/game_system/FutariSousa.rb', line 48

def eval_game_system_specific_command(command)
  if (m = /^(\d+)?DT$/i.match(command))
    count = m[1]&.to_i || 2
    return roll_dt(command, count)
  elsif (m = /^(\d+)?AS$/i.match(command))
    count = m[1]&.to_i || 2
    return roll_as(command, count)
  end

  return roll_tables(command, self.class::TABLES)
end