Class: BCDice::GameSystem::Magius

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

Direct Known Subclasses

Magius_3rdNewTokyoCity

Constant Summary collapse

ID =

ゲームシステムの識別子

'Magius'
NAME =

ゲームシステム名

'MAGIUS'
SORT_KEY =

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

'まきうす'
HELP_MESSAGE =

ダイスボットの使い方

<<~INFO_MESSAGETEXT
  ■能力値判定 MA+x>=t        x:修正値 t:目標値
  例)MA>=7: ダイスを2個振って、その結果を表示

  ■技能値判定 MS+x>=t        x:修正値 t:目標値
  例)MS>=7: ダイスを3個振って、そのうち上位2つを採用し、結果を表示

INFO_MESSAGETEXT

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

Returns a new instance of Magius.



27
28
29
30
31
# File 'lib/bcdice/game_system/Magius.rb', line 27

def initialize(command)
  super(command)

  @sort_barabara_dice = true # バラバラロール(Bコマンド)でソート有
end

Instance Method Details

#eval_game_system_specific_command(command) ⇒ Object



33
34
35
36
# File 'lib/bcdice/game_system/Magius.rb', line 33

def eval_game_system_specific_command(command)
  resolute_ability_action(command) ||
    resolute_skill_action(command)
end