Class: BCDice::GameSystem::Kutulu

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

Constant Summary collapse

ID =

ゲームシステムの識別子

'Kutulu'
NAME =

ゲームシステム名

'Kutulu'
SORT_KEY =

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

'くとうるう'
HELP_MESSAGE =

ダイスボットの使い方

"\u25A0\u5224\u5B9A\u3000nKU        n: \u30C0\u30A4\u30B9\u6570\n\n\u4F8B)3KU: \u30C0\u30A4\u30B9\u30923\u500B\u632F\u3063\u3066\u3001\u305D\u306E\u7D50\u679C\u3092\u8868\u793A(\u30AE\u30EA\u30AE\u30EA\u3067\u306E\u6210\u529F\u3082\u8868\u793A)\n\n\u25A0\u5BFE\u6297\u5224\u5B9A\u3000nKR        n: \u30C0\u30A4\u30B9\u6570\n\n\u4F8B)2KR: \u30C0\u30A4\u30B9\u30922\u500B\u632F\u3063\u3066\u3001\u305D\u306E\u7D50\u679C\u3092\u8868\u793A\u3002\u5BFE\u6297\u5224\u5B9A\u7528\u306E3\u6841\u306E\u6570\u5B57\u3082\u51FA\u529B\u3002(\u5927\u304D\u3044\u65B9\u304C\u52DD\u5229)\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) ⇒ Kutulu

Returns a new instance of Kutulu.



28
29
30
31
32
# File 'lib/bcdice/game_system/Kutulu.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
# File 'lib/bcdice/game_system/Kutulu.rb', line 34

def eval_game_system_specific_command(command)
  resolute_action(command) || resolute_competition(command)
end