Class: BCDice::GameSystem::KimitoYell
- Defined in:
- lib/bcdice/game_system/KimitoYell.rb
Constant Summary collapse
- ID =
ゲームシステムの識別子
"KimitoYell"
- NAME =
ゲームシステム名
"キミトエール!"
- SORT_KEY =
ゲームシステム名の読みがな
"きみとええる"
- HELP_MESSAGE =
<<~TEXT ■ 判定 (nKY6 / nKY10) 指定された能力値分(n個)のダイスを使って判定を行います。 ・nKY6…「有利」を得ていない場合、6面ダイスをn個振って判定します。 ・nKY10…「有利」を得ている場合、10面ダイスをn個振って判定します。 6もしくは10の出目があればスペシャル。1の出目があればファンブル。 スペシャルとファンブルは同時に発生した場合、両方の処理を行う。 ■ 表 ─ ファンブル表(FT) ファンブル時の処理を決定します。 ─ 新しい出会いを求める ─ 一括 新しい出会い表(NMTA) # New Meet Table その後の表を含めてすべて同時に決定します。 ひとつひとつ振る場合には下記のコマンドを使用してください。 ─ 新しい出会い表(NMT) # New Meet Table ─ 偶然出会った表(MCT) # Meet by Chance Table ─ 交流のなかった身近な人表(CIT) # someone Close to you but no Interaction Table ─ 助けてくれた人表(HYT) # someone Help You table ─ どんな人だったか表(TLT) # what's They Like Table ─ 変わった人だった表(EPT) # Eccentric Person Table ─ ランダム命名表 ─ フルネーム一括生成(FNG) # Full Name Generation ─ 名字表(LNT) # LastName Table ─ 名前表(FNT) # FirstName Table ─ 日本名字表1(JLTO) # Japanese Lastname Table One ─ 日本名字表2(JLTT) # Japanese Lastname Table Two ─ カタカナ名字表(FLT) # Foreien Lastname Table ─ 日本名前表1(JFTO) # Japanese Firstname Table One ─ 日本名前表2(JFTT) # Japanese Firstname Table Two ─ カタカナ名前表(FFT) # Foreien Firstname Table TEXT
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
- #eval_game_system_specific_command(command) ⇒ Object
-
#initialize(command) ⇒ KimitoYell
constructor
A new instance of KimitoYell.
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
Constructor Details
#initialize(command) ⇒ KimitoYell
Returns a new instance of KimitoYell.
52 53 54 55 56 57 |
# File 'lib/bcdice/game_system/KimitoYell.rb', line 52 def initialize(command) super(command) @sort_barabara_dice = true @round_type = RoundType::CEIL end |
Instance Method Details
#eval_game_system_specific_command(command) ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/bcdice/game_system/KimitoYell.rb', line 59 def eval_game_system_specific_command(command) if /^(\d+)KY(6|10)$/.match(command).nil? != true roll_ky_judge(command) elsif /FT/.match(command).nil? != true && /JFTO|JFTT|FFT/.match(command).nil? == true roll_fumble(command) elsif /NMTA|NMT|MCT|CIT|HYT|TLT|EPT/.match(command).nil? != true generate_new_encounter(command) elsif /FNG|LNT|FNT|JLTO|JLTT|FLT|JFTO|JFTT|FFT/.match(command).nil? != true generate_new_name(command) end end |