class BCDice::GameSystem::ShadowRun4
Constants
- HELP_MESSAGE
ダイスボットの使い方
- ID
ゲームシステムの識別子
- NAME
ゲームシステム名
- SORT_KEY
ゲームシステム名の読みがな
Public Class Methods
new(command)
click to toggle source
Calls superclass method
BCDice::Base::new
# File lib/bcdice/game_system/ShadowRun4.rb, line 21 def initialize(command) super(command) @sort_add_dice = true @sort_barabara_dice = true @reroll_dice_reroll_threshold = 6 # RerollDiceで振り足しをする出目の閾値 @default_cmp_op = :>= @default_target_number = 5 end
Public Instance Methods
grich_text(numberSpot1, dice_cnt_total, successCount)
click to toggle source
シャドウラン4版用グリッチ判定
# File lib/bcdice/game_system/ShadowRun4.rb, line 32 def grich_text(numberSpot1, dice_cnt_total, successCount) dice_cnt_total_half = (1.0 * dice_cnt_total / 2) debug("dice_cnt_total_half", dice_cnt_total_half) unless numberSpot1 >= dice_cnt_total_half return nil end # グリッチ! if successCount == 0 'クリティカルグリッチ' else 'グリッチ' end end