Class: BCDice::GameSystem::NanimonaiMura

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

Defined Under Namespace

Classes: ResultData

Constant Summary collapse

ID =

ゲームシステムの識別子

"NanimonaiMura"
NAME =

ゲームシステム名

"なにもない村"
SORT_KEY =

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

"なにもないむら"
HELP_MESSAGE =

ダイスボットの使い方

<<~INFO_MESSAGE_TEXT
  ・行為判定 xNMy
   x個のD10を振り、2つの出目から達成値を作成して判定します。
   達成値は成功度が最も高くなる組み合わせを自動選択し、同値なら低い値を優先します。
   x: ダイス数(1以上)
   y: 判定値(0以上)
   例)4NM55 6NM199 2NM35
INFO_MESSAGE_TEXT
STAGE_NAMES =
['ノーマル', 'エピック', 'レジェンダリ', 'ミシック'].freeze
BASE_SUCCESS_LEVELS =
[1, 11, 21, 31].freeze

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, #initialize, prefixes_pattern, register_prefix, register_prefix_from_super_class, #sort_add_dice?, #sort_barabara_dice?

Methods included from Translate

#translate

Constructor Details

This class inherits a constructor from BCDice::Base

Instance Method Details

#eval_game_system_specific_command(command) ⇒ Object



32
33
34
# File 'lib/bcdice/game_system/NanimonaiMura.rb', line 32

def eval_game_system_specific_command(command)
  roll_action(command)
end