Class: PfrpgTables::Tables::FeatOptions

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

Class Method Summary collapse

Class Method Details

.get(special_type) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/pfrpg_tables/tables/feat_options.rb', line 2

def self.get(special_type)
  case special_type
  when "weapons"
    Weapon.all_weapon_types
  when "simple_weapons"
    Weapon.weapon_types('simple')
  when "martial_weapons"
    Weapon.weapon_types('martial')
  when 'exotic_weapons'
    Weapon.weapon_types('exotic')
  when "magic_schools"
    [
      "Abjuration",
      'Conjuration',
      'Divination',
      'Enchantment',
      'Evocation',
      'Illusion',
      'Necromancy',
      'Transmutation',
      'Universalist'
    ]
  when 'skills'
    PfrpgSkills::Skill.skill_list.map { |x| x.description }
  end
end