Class: BCDice::GameSystem::MamonoScramble

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

Constant Summary collapse

ID =

ゲームシステムの識別子

'MamonoScramble'
NAME =

ゲームシステム名

'マモノスクランブル'
SORT_KEY =

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

'まものすくらんふる'
HELP_MESSAGE =

ダイスボットの使い方

<<~INFO_MESSAGE_TEXT
  ・判定 xMS<=t
   [判定]を行う。成否と[マリョク]の上昇量を表示する。
   x: ダイス数
   t: 能力値(目標値)

  ・アクシデント表 ACC
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) ⇒ MamonoScramble

Returns a new instance of MamonoScramble.



25
26
27
28
29
30
# File 'lib/bcdice/game_system/MamonoScramble.rb', line 25

def initialize(command)
  super(command)

  @sides_implicit_d = 12
  @round_type = RoundType::CEIL
end

Instance Method Details

#eval_game_system_specific_command(command) ⇒ Object



32
33
34
# File 'lib/bcdice/game_system/MamonoScramble.rb', line 32

def eval_game_system_specific_command(command)
  roll_ability(command) || roll_tables(command, TABLES)
end