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 =

ダイスボットの使い方

"\u30FB\u5224\u5B9A xMS<=t\n\u3000[\u5224\u5B9A]\u3092\u884C\u3046\u3002\u6210\u5426\u3068[\u30DE\u30EA\u30E7\u30AF]\u306E\u4E0A\u6607\u91CF\u3092\u8868\u793A\u3059\u308B\u3002\n\u3000x: \u30C0\u30A4\u30B9\u6570\n\u3000t: \u80FD\u529B\u5024\uFF08\u76EE\u6A19\u5024\uFF09\n\n\u30FB\u30A2\u30AF\u30B7\u30C7\u30F3\u30C8\u8868 ACC\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, 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