Class: PfrpgTables::Tables::Bonus

Inherits:
Object
  • Object
show all
Defined in:
lib/pfrpg_tables/tables/bonus.rb

Class Method Summary collapse

Class Method Details

.specialObject



14
15
16
# File 'lib/pfrpg_tables/tables/bonus.rb', line 14

def self.special
  ["speed", 'damage_reduction', 'class_skill']
end

.special?(bonus_name) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/pfrpg_tables/tables/bonus.rb', line 6

def self.special?(bonus_name)
  special.find { |x| x == bonus_name }
end

.stackableObject



10
11
12
# File 'lib/pfrpg_tables/tables/bonus.rb', line 10

def self.stackable
  ["dodge", "initiative"]
end

.stackable?(bonus_name) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/pfrpg_tables/tables/bonus.rb', line 2

def self.stackable?(bonus_name)
  stackable.find { |x| x == bonus_name }
end