Class: BCDice::GameSystem::SwordWorld::RatingOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/bcdice/game_system/sword_world/rating_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#criticalInteger?

Returns:

  • (Integer, nil)


8
9
10
# File 'lib/bcdice/game_system/sword_world/rating_options.rb', line 8

def critical
  @critical
end

#first_modifyInteger?

Returns:

  • (Integer, nil)


17
18
19
# File 'lib/bcdice/game_system/sword_world/rating_options.rb', line 17

def first_modify
  @first_modify
end

#first_toInteger?

Returns:

  • (Integer, nil)


14
15
16
# File 'lib/bcdice/game_system/sword_world/rating_options.rb', line 14

def first_to
  @first_to
end

#greatest_fortuneBoolean?

Returns:

  • (Boolean, nil)


23
24
25
# File 'lib/bcdice/game_system/sword_world/rating_options.rb', line 23

def greatest_fortune
  @greatest_fortune
end

#kept_modifyInteger?

Returns:

  • (Integer, nil)


11
12
13
# File 'lib/bcdice/game_system/sword_world/rating_options.rb', line 11

def kept_modify
  @kept_modify
end

#modifierInteger?

Returns:

  • (Integer, nil)


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

def modifier
  @modifier
end

#modifier_after_halfInteger?

Returns:

  • (Integer, nil)


35
36
37
# File 'lib/bcdice/game_system/sword_world/rating_options.rb', line 35

def modifier_after_half
  @modifier_after_half
end

#rateupInteger?

Returns:

  • (Integer, nil)


20
21
22
# File 'lib/bcdice/game_system/sword_world/rating_options.rb', line 20

def rateup
  @rateup
end

#semi_fixed_valInteger?

Returns:

  • (Integer, nil)


26
27
28
# File 'lib/bcdice/game_system/sword_world/rating_options.rb', line 26

def semi_fixed_val
  @semi_fixed_val
end

#tmp_fixed_valInteger?

Returns:

  • (Integer, nil)


29
30
31
# File 'lib/bcdice/game_system/sword_world/rating_options.rb', line 29

def tmp_fixed_val
  @tmp_fixed_val
end

Instance Method Details

#settable_first_roll_adjust_option?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/bcdice/game_system/sword_world/rating_options.rb', line 37

def settable_first_roll_adjust_option?
  return first_modify.nil? && first_to.nil?
end

#settable_non_2d_roll_option?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/bcdice/game_system/sword_world/rating_options.rb', line 41

def settable_non_2d_roll_option?
  return greatest_fortune.nil? && semi_fixed_val.nil? && tmp_fixed_val.nil?
end