Class: BCDice::GameSystem::MonotoneMuseum

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

Direct Known Subclasses

MonotoneMuseum_Korean

Defined Under Namespace

Classes: MMTable

Constant Summary collapse

ID =

ゲームシステムの識別子

'MonotoneMuseum'
NAME =

ゲームシステム名

'モノトーンミュージアムRPG'
SORT_KEY =

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

'ものとおんみゆうしあむRPG'
HELP_MESSAGE =

ダイスボットの使い方

<<~INFO_MESSAGE_TEXT
  ・判定
   ・通常判定      2D6+m>=t[c,f]
    修正値m,目標値t,クリティカル値c,ファンブル値fで判定ロールを行います。
    クリティカル値、ファンブル値は省略可能です。([]ごと省略できます)
    自動成功、自動失敗、成功、失敗を自動表示します。
  ・各種表
   ・感情表 ET/感情表 2.0 ET2
   ・兆候表 OT/兆候表ver2.0 OT2/兆候表ver3.0 OT3
   ・歪み表 DT/歪み表ver2.0 DT2/歪み表(野外) DTO/歪み表(海) DTS/歪み表(館・城) DTM
   ・世界歪曲表 WDT/世界歪曲表2.0 WDT2
   ・永劫消失表 EDT
  ・D66ダイスあり
INFO_MESSAGE_TEXT

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) ⇒ MonotoneMuseum

ダイスボットを初期化する



37
38
39
40
41
42
43
44
45
46
# File 'lib/bcdice/game_system/MonotoneMuseum.rb', line 37

def initialize(command)
  super(command)

  # 式、出目ともに送信する

  # D66ダイスあり(出目をソートしない)
  @d66_sort_type = D66SortType::NO_SORT
  # バラバラロール(Bコマンド)でソートする
  @sort_add_dice = true
end

Instance Method Details

#eval_game_system_specific_command(command) ⇒ String?

固有のダイスロールコマンドを実行する

Parameters:

  • command (String)

    入力されたコマンド

Returns:

  • (String, nil)

    ダイスロールコマンドの実行結果



51
52
53
54
55
56
57
# File 'lib/bcdice/game_system/MonotoneMuseum.rb', line 51

def eval_game_system_specific_command(command)
  if (ret = check_roll(command))
    return ret
  end

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