Class: BCDice::GameSystem::Yggdrasill

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

Defined Under Namespace

Classes: ChainTable, YggTable

Constant Summary collapse

ID =
"Yggdrasill"
NAME =
"鋼鉄のユグドラシル"
SORT_KEY =
"こうてつのゆくとらしる"
HELP_MESSAGE =
"\u25A0 \u884C\u70BA\u5224\u5B9A (CFx+nD6)\n  \u30AF\u30EA\u30C6\u30A3\u30AB\u30EB\u3068\u30D5\u30A1\u30F3\u30D6\u30EB\u306B\u3088\u308B\u30C0\u30A4\u30B9\u8FFD\u52A0\u3092\u884C\u3046\n  \u5148\u982D\u306Ecf\u3092\u5909\u66F4\u3059\u308B\u3053\u3068\u3067\u3001\u52D5\u4F5C\u304C\u5909\u66F4\u3055\u308C\u308B\n  hcf: \u9054\u6210\u5024\u304C\u534A\u6E1B\n  cfl: \u4ED8\u52A0\u52B9\u679C\u3010\u5E78\u904B\u3011\u3092\u4ED8\u4E0E\n  cfg: \u4ED8\u52A0\u52B9\u679C\u3010\u30AE\u30E3\u30F3\u30D6\u30EB\u3011\u3092\u4ED8\u4E0E\n  cft: \u3010\u5FDC\u6025\u51E6\u7F6E\u3011\u5224\u5B9A (t\u306F\u672B\u5C3E\u306B\u8A18\u5165\u3057\u3066\u304F\u3060\u3055\u3044)\n  \u4F8B\uFF09\n    CF10+1D6, HCFL6+2D6, CFG11+1D6-2, cfgt10+1D6\n\n\u25A0 \u66B4\u8D70\u30ED\u30FC\u30EB (RAx)\n  \u66B4\u8D70\u7387x\u306E\u66B4\u8D70\u30ED\u30FC\u30EB\u304A\u3088\u3073\u81E8\u754C\u30ED\u30FC\u30EB\u3092\u884C\u3046\n  \u4F8B\uFF09\n    RA50, RA110, RA150\n\n\u25A0 SO\u30DA\u30CA\u30EB\u30C6\u30A3\u8868 (SOx)\n  \u30B9\u30DA\u30C3\u30AF\u6570\u304Cx\u30AA\u30FC\u30D0\u30FC\u3057\u305F\u969B\u306E\u30DA\u30CA\u30EB\u30C6\u30A3\u30ED\u30FC\u30EB\u3092\u884C\u3046\n  \u4F8B\uFF09\n    SO1, SO5\n\n\u25A0 \u3010\u5FDC\u6025\u51E6\u7F6E\u3011 (TREATx)\n  \u9054\u6210\u5024x\u306E\u3010\u5FDC\u6025\u51E6\u7F6E\u3011\u306B\u3088\u308B\u56DE\u5FA9\u91CF\u3092\u6C7A\u5B9A\u3059\u308B\n  \u4F8B\uFF09\n    TREAT1, TREAT18\n\n\u25A0 \u305D\u306E\u4ED6\u306E\u5224\u5B9A\u304A\u3088\u3073\u8868\n  down\uFF1A\u6C17\u7D76\u5224\u5B9A\n  cont\uFF1A\u30B3\u30F3\u30C6\u30A3\u30CB\u30E5\u30FC\u5224\u5B9A\n  risk\uFF1A\u30EA\u30B9\u30AF\u5224\u5B9A\n  guki\uFF1A\u5076\u5947\u5224\u5B9A\n  cond\uFF1A\u30B3\u30F3\u30C7\u30A3\u30B7\u30E7\u30F3\u30ED\u30FC\u30EB\n  allr\uFF1A\u30AA\u30FC\u30EB\u30EC\u30F3\u30B8\u767A\u52D5\u30ED\u30FC\u30EB\n  pafe\uFF1A\u30D1\u30FC\u30D5\u30A7\u30AF\u30C8\u767A\u52D5\u30ED\u30FC\u30EB\n  stag\uFF1A\u30B9\u30C6\u30FC\u30B8\u6C7A\u5B9A\uFF08\u96FB\u8133\u30ED\u30EF\u30A4\u30E4\u30EB\u7528\uFF09\n  fatal1\uFF1A\u5F8C\u907A\u75C7\n  fatal2\uFF1A\u56E0\u5B50\u5909\u5316\u30ED\u30FC\u30EB\n  mikuzi\uFF1A\u6D45\u8349\u5BFA\u307F\u304F\u3058\u30021d100\u3067\u3042\u306A\u305F\u306E\u904B\u52E2\u3092\u5360\u3044\u307E\u3059\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) ⇒ Object



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

def eval_game_system_specific_command(command)
  roll_tables(command, TABLES) ||
    roll_cf(command) ||
    roll_ra(command) ||
    roll_treat(command) ||
    roll_down(command) ||
    roll_cond(command) ||
    roll_guki(command) ||
    roll_cont(command) ||
    roll_allr(command) ||
    roll_pafe(command)
end