Class: BCDice::GameSystem::NightWizard::Parsed2R6

Inherits:
Parsed
  • Object
show all
Defined in:
lib/bcdice/game_system/NightWizard.rb

Instance Attribute Summary collapse

Attributes inherited from Parsed

#active_modify_number, #cmp_op, #critical_numbers, #fumble_numbers, #prana, #target_number

Instance Method Summary collapse

Instance Attribute Details

#passive_modify_numberInteger

Returns 常に適用される修正値.

Returns:

  • (Integer)

    常に適用される修正値



116
117
118
# File 'lib/bcdice/game_system/NightWizard.rb', line 116

def passive_modify_number
  @passive_modify_number
end

Instance Method Details

#to_sString

Returns:

  • (String)


119
120
121
# File 'lib/bcdice/game_system/NightWizard.rb', line 119

def to_s
  "2R6M[#{@passive_modify_number},#{@active_modify_number}]C[#{@critical_numbers.join(',')}]F[#{@fumble_numbers.join(',')}]#{@cmp_op}#{@target_number}"
end