Class: PfrpgTables::Tables::Bonus
- Inherits:
-
Object
- Object
- PfrpgTables::Tables::Bonus
- Defined in:
- lib/pfrpg_tables/tables/bonus.rb
Class Method Summary collapse
- .special ⇒ Object
- .special?(bonus_name) ⇒ Boolean
- .stackable ⇒ Object
- .stackable?(bonus_name) ⇒ Boolean
Class Method Details
.special ⇒ Object
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
6 7 8 |
# File 'lib/pfrpg_tables/tables/bonus.rb', line 6 def self.special?(bonus_name) special.find { |x| x == bonus_name } end |
.stackable ⇒ Object
10 11 12 |
# File 'lib/pfrpg_tables/tables/bonus.rb', line 10 def self.stackable ["dodge", "initiative"] end |
.stackable?(bonus_name) ⇒ 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 |