Class: BCDice::GameSystem::AniMalus

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

Constant Summary collapse

ID =

ゲームシステムの識別子

'AniMalus'
NAME =

ゲームシステム名

'アニマラス'
SORT_KEY =

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

'あにまらす'
HELP_MESSAGE =

ダイスボットの使い方

<<~INFO_MESSAGETEXT
  ■ステータスのダイス判定 nAM<=t,x        n:能力値 t:成功値 x:必要成功数
  例)3AM<=2,1: ダイスを3個振って、成功値2,必要成功数1で判定。その結果(成功数,成功・失敗)を表示

  ■探索技能のダイス判定 AI<=t,x        t:探索技能レベル x:必要成功数
  例)AI<=3,1: ダイスを3個振って、探索技能レベル3,必要成功数1で判定。その結果(成功数,成功・失敗)を表示

  ■攻撃判定 AA<=t        t:戦闘技能レベル
  例)AA<=3: ダイスを3個振って、戦闘技能レベル3で判定。その結果(成功・失敗,ダメージ,クリティカル,ファンブル)を表示

  ■防御判定 AG=t        t:攻撃技能レベル
  例)AG=2: ダイスを3個振って、攻撃技能レベル2で判定。その結果(成功・失敗,ダメージ,クリティカル,ファンブル)を表示

  ■回避判定 AD=t        t:攻撃技能レベル
  例)AD=3: ダイスを1個振って、攻撃技能レベル3で判定。その結果(成功・失敗)を表示
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) ⇒ AniMalus

Returns a new instance of AniMalus.



35
36
37
38
39
# File 'lib/bcdice/game_system/AniMalus.rb', line 35

def initialize(command)
  super(command)

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

Instance Method Details

#eval_game_system_specific_command(command) ⇒ Object



41
42
43
44
45
46
47
# File 'lib/bcdice/game_system/AniMalus.rb', line 41

def eval_game_system_specific_command(command)
  resolute_action(command) ||
    resolute_investigation(command) ||
    resolute_attacking(command) ||
    resolute_guarding(command) ||
    resolute_dodging(command)
end