class BCDice::GameSystem::BloodCrusade

Constants

HELP_MESSAGE

ダイスボットの使い方

ID

ゲームシステムの識別子

NAME

ゲームシステム名

RTT
SORT_KEY

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

TABLES
TABLES_WITH_BLOOD_MOON

Public Class Methods

new(command) click to toggle source
Calls superclass method BCDice::Base::new
# File lib/bcdice/game_system/BloodCrusade.rb, line 39
def initialize(command)
  super(command)

  @sort_add_dice = true
  @d66_sort_type = D66SortType::ASC
  @round_type = RoundType::CEIL # 端数切り上げに設定
end

Public Instance Methods

eval_game_system_specific_command(command) click to toggle source
# File lib/bcdice/game_system/BloodCrusade.rb, line 61
def eval_game_system_specific_command(command)
  roll_tables(command, TABLES) || RTT.roll_command(randomizer, command)
end
result_2d6(total, dice_total, _dice_list, cmp_op, target) click to toggle source
# File lib/bcdice/game_system/BloodCrusade.rb, line 47
def result_2d6(total, dice_total, _dice_list, cmp_op, target)
  return nil if target == '?' || cmp_op != :>=

  if dice_total <= 2
    Result.fumble("ファンブル(【モラル】-3。追跡フェイズなら吸血シーンを追加。戦闘フェイズなら吸血鬼は追加行動を一回得る)")
  elsif dice_total >= 12
    Result.critical("スペシャル(【モラル】+3。追跡フェイズならあなたに関係を持つPCの【モラル】+2。攻撃判定ならダメージ+1D6)")
  elsif total >= target
    Result.success("成功")
  else
    Result.failure("失敗")
  end
end