Class: BCDice::GameSystem::JuinKansen

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

Direct Known Subclasses

JuinKansen_Korean

Constant Summary collapse

ID =

ゲームシステムの識別子

"JuinKansen"
NAME =

ゲームシステム名

"呪印感染"
SORT_KEY =

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

"しゆいんかんせん"
HELP_MESSAGE =

ダイスボットの使い方

"\u25A0 \u8868\n  \u30FB\u65E5\u5E38\u8868 (DAI, Daily)\n  \u30FB\u5834\u6240\u8868\n    \u30FB\u300C\u90FD\u5E02\u300D (PCI, PlaceCity)\n    \u30FB\u300C\u7530\u820E\u300D (PCO, PlaceCountryside)\n    \u30FB\u300C\u65BD\u8A2D\u5185\u300D (PFA, PlaceFacility)\n  \u30FB\u521D\u898B\u8868 (FL, FirstLook)\n  \u30FB\u77E5\u5DF1\u8868 (AF, AppreciativeFriend)\n  \u30FB\u4F0F\u7DDA\u8868 (FOR, Foreshadow)\n  \u30FB\u611F\u60C5\u8868 (EMO, Emotion)\n  \u30FB\u72B6\u6CC1\u8868 (SIT, Situation)\n  \u30FB\u5BFE\u8C61\u8868 (TAR, Target)\n  \u30FB\u72C2\u6C17\u8868 (INS, Insanity)\n  \u30FB\u7D42\u7109\u8868 (DEA, Death)\n  \u30FB\u6050\u6016\u8868 (FEA, Fear)\n"
TABLES =
translate_tables(:ja_jp).freeze
ALIAS =
{
  "DAI" => "DAILY",
  "PCI" => "PLACECITY",
  "PCO" => "PLACECOUNTRYSIDE",
  "PFA" => "PLACEFACILITY",
  "FL" => "FIRSTLOOK",
  "AF" => "APPRECIATIVEFRIEND",
  "FOR" => "FORESHADOW",
  "EMO" => "EMOTION",
  "SIT" => "SITUATION",
  "TAR" => "TARGET",
  "INS" => "INSANITY",
  "DEA" => "DEATH",
  "FEA" => "FEAR",
}.freeze

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



37
38
39
# File 'lib/bcdice/game_system/JuinKansen.rb', line 37

def eval_game_system_specific_command(command)
  roll_tables(self.class::ALIAS[command] || command, self.class::TABLES)
end