Class: PfrpgTables::Tables::Weapons

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

Class Method Summary collapse

Class Method Details

.weapon_training_members(type) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/pfrpg_tables/tables/weapons.rb', line 10

def self.weapon_training_members(type)
  case type
  when "Axes"
    ["battleaxe", "dwarven waraxe", "greataxe", "handaxe", "heavy pick",
      "light pick", "orc double axe", "throwing axe" ]
  when "Heavy Blades"
    ["bastard sword", "elven curve blade", "falchion", "greatsword",
      "longsword", 'scimitar', 'scythe', 'two-bladed sword' ]
  when "Light Blades"
    ['dagger', 'kama', 'kukri', 'rapier', 'short sword', 'sickle', 'starknife']
  when 'Bows'
    ['composite longbow', 'composite shortbow', 'longbow', 'shortbow']
  when 'Close'
    ['gauntlet', 'heavy shield', 'light shield', 'punching dagger', 'sap',
      'spiked armor', 'spiked gauntlet', 'spiked shield', 'unarmed strike' ]
  when 'Crossbows'
    ['heavy crossbow', 'hand crossbow', 'light crossbow', 'heavy repeating crossbow',
      'light repeating crossbow' ]
  when 'Double'
    ['dire flail', 'dwarven urgrosh', 'gnome hooked hammer', 'orc double axe',
      'quarterstaff', 'two-bladed sword']
  when 'Flails'
    ['dire flail', 'flail', 'heavy flail', 'morningstar', 'nunchaku', 'spiked chain',
      'whip']
  when 'Hammers'
    ['club', 'greatclub', 'heavy mace', 'light hammer', 'light mace', 'warhammer']
  when 'Monk'
    ['kama', 'nunchaku', 'quarterstaff', 'sai', 'shuriken', 'siangham', 'unarmed strike']
  when 'Natural'
    ['unarmed strike', 'bite', 'claw', 'gore', 'tail', 'wing']
  when 'Polearms'
    ['glaive', 'guisarme', 'halberd', 'rainseur']
  when 'Spears'
    ['javelin', 'lance', 'longspear', 'shortspear', 'spear', 'trident']
  when 'Thrown'
    ['blowgun', 'bolas', 'club', 'dagger', 'dart', 'halfling sling staff', 'light hammer',
      'net', 'shortspear', 'shuriken', 'sling', 'spear', 'starknife', 'throwing axe',
      'trident']
  else
    []
  end
end

.weapon_training_typesObject



2
3
4
5
6
7
8
# File 'lib/pfrpg_tables/tables/weapons.rb', line 2

def self.weapon_training_types
  [
    "Axes", "Heavy Blades", "Light Blades", "Bows", "Close", "Crossbows",
    "Double", "Flails", "Hammers", "Monk", "Natural", "Polearms",
    "Spears", "Thrown"
  ]
end