Class: BCDice::GameSystem::RogueLikeHalf

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

Constant Summary collapse

ID =

ゲームシステムの識別子

'RogueLikeHalf'
NAME =

ゲームシステム名

'ローグライクハーフ'
SORT_KEY =

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

'ろおくらいくはあふ'
HELP_MESSAGE =

ダイスボットの使い方

<<~INFO_MESSAGETEXT
  ■判定 RH+x>=t        x:技量点 t:達成値(威力)

  例)RH+1>=5: ダイスを1個振って、技量点1,達成値5の結果を表示(クリティカル・ファンブルも表示)

  ■D33 D33+x        x:修正値

  例)D33: 3面ダイスを2個振って、その結果を表示。

  ■宝物表 NTT+x     x:修正値
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) ⇒ RogueLikeHalf

Returns a new instance of RogueLikeHalf.



28
29
30
31
32
# File 'lib/bcdice/game_system/RogueLikeHalf.rb', line 28

def initialize(command)
  super(command)

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

Instance Method Details

#eval_game_system_specific_command(command) ⇒ Object



34
35
36
37
38
# File 'lib/bcdice/game_system/RogueLikeHalf.rb', line 34

def eval_game_system_specific_command(command)
  resolute_action(command) ||
    resolute_d33(command) ||
    roll_table_command(command)
end