Class: BCDice::GameSystem::DeadlineHeroes

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

Defined Under Namespace

Classes: DeathChart, HeroNameBaseChart, HeroNameElementChart, RealNameChart

Constant Summary collapse

ID =

ゲームシステムの識別子

'DeadlineHeroes'
NAME =

ゲームシステム名

'デッドラインヒーローズRPG'
SORT_KEY =

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

'てつとらいんひいろおすRPG'
HELP_MESSAGE =

ダイスボットの使い方

"\u30FB\u884C\u70BA\u5224\u5B9A\uFF08DLHx\uFF09\n\u3000x\uFF1A\u6210\u529F\u7387\n\u3000\u4F8B\uFF09DLH80\n\u3000\u30AF\u30EA\u30C6\u30A3\u30AB\u30EB\u3001\u30D5\u30A1\u30F3\u30D6\u30EB\u306E\u81EA\u52D5\u7684\u5224\u5B9A\u3092\u884C\u3044\u307E\u3059\u3002\n\u3000\u300CDLH50+20-30\u300D\u306E\u3088\u3046\u306B\u52A0\u6E1B\u7B97\u8A18\u8FF0\u3082\u53EF\u80FD\u3002\n\u3000\u6210\u529F\u7387\u306F\u4E0A\u9650100\uFF05\u3001\u4E0B\u9650\uFF10\uFF05\n\u30FB\u30C7\u30B9\u30C1\u30E3\u30FC\u30C8(DCxY)\n\u3000x\uFF1A\u30C1\u30E3\u30FC\u30C8\u306E\u7A2E\u985E\u3002\u8089\u4F53\uFF1ADCL\u3001\u7CBE\u795E\uFF1ADCS\u3001\u74B0\u5883\uFF1ADCC\n\u3000Y=\u30DE\u30A4\u30CA\u30B9\u5024\n\u3000\u4F8B\uFF09DCL5\uFF1A\u30E9\u30A4\u30D5\u304C -5 \u306E\u5224\u5B9A\n\u3000\u3000\u3000DCS3\uFF1A\u30B5\u30CB\u30C6\u30A3\u30FC\u304C -3 \u306E\u5224\u5B9A\n\u3000\u3000\u3000DCC0\uFF1A\u30AF\u30EC\u30B8\u30C3\u30C8 0 \u306E\u5224\u5B9A\n\u30FB\u30D2\u30FC\u30ED\u30FC\u30CD\u30FC\u30E0\u30C1\u30E3\u30FC\u30C8\uFF08HNC\uFF09\n\u30FB\u30EA\u30A2\u30EB\u30CD\u30FC\u30E0\u30C1\u30E3\u30FC\u30C8\u3000\u65E5\u672C\uFF08RNCJ\uFF09\u3001\u6D77\u5916\uFF08RNCO\uFF09\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



42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/bcdice/game_system/DeadlineHeroes.rb', line 42

def eval_game_system_specific_command(command)
  case command
  when /^DLH/i
    resolute_action(command)
  when /^DC\w/i
    roll_death_chart(command)
  when 'HNC'
    roll_hero_name_chart()
  else
    roll_tables(command, TABLES)
  end
end