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_modify_sspInteger?

Returns:

  • (Integer, nil)

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

def first_modify_ssp
  @first_modify_ssp
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)

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

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)

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

def modifier
  @modifier
end

#modifier_after_halfInteger?

Returns:

  • (Integer, nil)

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

def modifier_after_half
  @modifier_after_half
end

#modifier_after_one_and_a_halfInteger?

Returns:

  • (Integer, nil)

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

def modifier_after_one_and_a_half
  @modifier_after_one_and_a_half
end

#rateupInteger?

Returns:

  • (Integer, nil)

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

def rateup
  @rateup
end

#semi_fixed_valInteger?

Returns:

  • (Integer, nil)

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

def semi_fixed_val
  @semi_fixed_val
end

#tmp_fixed_valInteger?

Returns:

  • (Integer, nil)

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

def tmp_fixed_val
  @tmp_fixed_val
end

Instance Method Details

#settable_first_roll_adjust_option?Boolean

Returns:

  • (Boolean)
[View source]

43
44
45
# File 'lib/bcdice/game_system/sword_world/rating_options.rb', line 43

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

#settable_non_2d_roll_option?Boolean

Returns:

  • (Boolean)
[View source]

47
48
49
# File 'lib/bcdice/game_system/sword_world/rating_options.rb', line 47

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