Class: PfrpgTables::Tables::Heroclasses::Ranger

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

Class Method Summary collapse

Class Method Details

.animalsObject



222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
# File 'lib/pfrpg_tables/tables/heroclasses/ranger.rb', line 222

def self.animals
  [
    'Allosaurus',
    'Ankylosaurus',
    'Ant, giant',
    'Antelope',
    'Ape',
    'Archelon',
    'Arsinoitherium',
    'Aurochs',
    'Axe beak',
    'Baboon',
    'Badger',
    'Baluchitherium',
    'Basilosaurus',
    'Bat, dire',
    'Bear',
    'Beetle, giant',
    'Bird',
    'Boar',
    'Brachiosaurus',
    'Camel',
    'Cat, big',
    'Cat, Small1',
    'Centipede, giant',
    'Chameleon, giant',
    'Crab, Giant',
    'Crocodile',
    'Deinonychus',
    'Dimetrodon',
    'Dimorphodon',
    'Dog',
    'Dolphin',
    'Eel, electric',
    'Elasmosaurus',
    'Elephant',
    'Elk',
    'Frog, giant',
    'Gar',
    'Gecko, giant',
    'Goblin dog',
    'Glyptodon',
    'Hippopotamus',
    'Horse',
    'Hyena',
    'Iguanodon',
    'Kangaroo',
    'Llama',
    'Leech, giant',
    'Manta ray',
    'Mantis, giant',
    'Megalania',
    'Megaloceros',
    'Megatherium',
    'Monitor lizard',
    'Moose',
    'Moray eel, giant',
    'Octopus',
    'Orca',
    'Pachycephalosaurus',
    'Panda',
    'Parasaurolophus',
    'Pony',
    'Pteranodon',
    'Quetzalcoatlus',
    'Ram',
    'Rat, dire',
    'Rhinoceros',
    'Roc',
    'Scorpion, giant',
    'Shark1',
    'Slug, giant',
    'Snake, constrictor',
    'Snake, viper',
    'Snapping turtle',
    'Spider, giant',
    'Spinosaurus',
    'Squid',
    'Stegosaurus',
    'Stingray',
    'Thylacine',
    'Toad, giant',
    'Triceratops',
    'Tylosaurus',
    'Tyrannosaurus',
    'Vulture, giant',
    'Walrus',
    'Wasp, giant',
    'Wolf',
  ]
end

.combat_style_feats(level) ⇒ Object



210
211
212
213
214
215
216
217
218
219
220
# File 'lib/pfrpg_tables/tables/heroclasses/ranger.rb', line 210

def self.combat_style_feats(level)
  base = ["Far Shot", "Point Blank Shot", "Precise Shot", "Rapid Shot",
          "Double Slice", "Improved Shield Bash", "Quick Draw", "Two-Weapon Fighting" ]
  if level >= 6
    base << [ "Improved Precise Shot", "Manyshot", "Improved Two-Weapon Fighting", "Two-Weapon Defense" ]
  end
  if level >= 10
    base << [ "Pinpoint Targeting", "Shot on the Run", "Greater Two-Weapon Fighting", "Two-Weapon Rend" ]
  end
  base.flatten
end

.favored_enemiesObject



190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
# File 'lib/pfrpg_tables/tables/heroclasses/ranger.rb', line 190

def self.favored_enemies
  [ "Aberration", "Magical beast",
    "Animal", "Humanoid (other subtype)",
    "Construct", "Monstrousr humanoid",
    "Dragon","Ooze",
    "Fey", "Outsider (air)",
    "Humanoid (aquatic)","Outsider (chaotic)",
    "Humanoid (dwarf)","Outsider (earth)",
    "Humanoid (elf)","Outsider (evil)",
    "Humanoid (giant)","Outsider (fire)",
    "Humanoid (goblinoid)","Outsider (good)",
    "Humanoid (gnoll)","Outsider (lawful)",
    "Humanoid (gnome)","Outsider (native)",
    "Humanoid (halfling)", "Outsider (water)",
    "Humanoid (human)","Plant",
    "Humanoid (orc)","Undead",
    "Humanoid (reptilian)","Vermin"
  ]
end

.level_bonus(level) ⇒ Object



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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# File 'lib/pfrpg_tables/tables/heroclasses/ranger.rb', line 3

def self.level_bonus(level)
  bonus = nil
  case level
  when 1
    bonus = { :base_attack_bonus => [1],
              :fort_save         => 2,
              :ref_save          => 2,
              :will_save         => 0,
              :granted_features  => [ "track", "wildempathy"],
              :choices => [ ChooseFavoredEnemy.new ],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 2
    bonus = { :base_attack_bonus => [2],
              :fort_save         => 3,
              :ref_save          => 3,
              :will_save         => 0,
              :granted_features  => [],
              :choices => [ ChooseRangerCombatStyleFeat.new ],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 3
    bonus = { :base_attack_bonus => [3],
              :fort_save         => 3,
              :ref_save          => 3,
              :will_save         => 1,
              :granted_features  => ["endurance", "favoredterrain"],
              :choices => [],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 4
    bonus = { :base_attack_bonus => [4],
              :fort_save         => 4,
              :ref_save          => 4,
              :will_save         => 1,
              :granted_features  => [ ],
              :choices => [ChooseHuntersBond.new ],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 5
    bonus = { :base_attack_bonus => [5],
              :fort_save         => 4,
              :ref_save          => 4,
              :will_save         => 1,
              :granted_features  => [],
              :choices => [ChooseFavoredEnemy.new],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 6
    bonus = { :base_attack_bonus => [6,1],
              :fort_save         => 5,
              :ref_save          => 5,
              :will_save         => 2,
              :granted_features  => [],
              :choices => [ ChooseRangerCombatStyleFeat.new ],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 7
    bonus = { :base_attack_bonus => [7,2],
              :fort_save         => 5,
              :ref_save          => 5,
              :will_save         => 2,
              :granted_features  => ["woodlandstride"],
              :choices => [],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 8
    bonus = { :base_attack_bonus => [8,3],
              :fort_save         => 6,
              :ref_save          => 6,
              :will_save         => 2,
              :choices => [],
              :granted_features  => ["swifttracker"],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 9
    bonus = { :base_attack_bonus => [9,4],
              :fort_save         => 6,
              :ref_save          => 6,
              :will_save         => 3,
              :granted_features  => ["evasion"],
              :choices => [],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 10
    bonus = { :base_attack_bonus => [10,5],
              :fort_save         => 7,
              :ref_save          => 7,
              :will_save         => 3,
              :choices => [ ChooseFavoredEnemy.new, ChooseRangerCombatStyleFeat.new ],
              :granted_features  => [],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 11
    bonus = { :base_attack_bonus => [11,6,1],
              :fort_save         => 7,
              :ref_save          => 7,
              :will_save         => 3,
              :choices => [],
              :granted_features  => ["quarry"],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 12
    bonus = { :base_attack_bonus => [12,7,2],
              :fort_save         => 8,
              :ref_save          => 8,
              :will_save         => 4,
              :choices => [],
              :granted_features  => ["camouflage"],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 13
    bonus = { :base_attack_bonus => [13,8,3],
              :fort_save         => 8,
              :ref_save          => 8,
              :will_save         => 4,
              :granted_features  => [],
              :choices => [],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 14
    bonus = { :base_attack_bonus => [14,9,4],
              :fort_save         => 9,
              :ref_save          => 9,
              :will_save         => 4,
              :choices => [ ChooseRangerCombatStyleFeat.new ],
              :granted_features  => [],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 15
    bonus = { :base_attack_bonus => [15,10,5],
              :fort_save         => 9,
              :ref_save          => 9,
              :will_save         => 5,
              :choices => [ ChooseFavoredEnemy.new ],
              :granted_features  => [],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 16
    bonus = { :base_attack_bonus => [16,11,6,1],
              :fort_save         => 10,
              :ref_save          => 10,
              :will_save         => 5,
              :choices => [],
              :granted_features  => ["improvedevasion"],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 17
    bonus = { :base_attack_bonus => [17,12,7,2],
              :fort_save         => 10,
              :ref_save          => 10,
              :will_save         => 5,
              :choices => [],
              :granted_features  => ["hideinplainsight"],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 18
    bonus = { :base_attack_bonus => [18,13,8,3],
              :fort_save         => 11,
              :ref_save          => 11,
              :will_save         => 6,
              :choices => [ ChooseRangerCombatStyleFeat.new ],
              :granted_features  => [],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 19
    bonus = { :base_attack_bonus => [19,14,9,4],
              :fort_save         => 11,
              :ref_save          => 11,
              :will_save         => 6,
              :choices => [],
              :granted_features  => ["improvedquarry"],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  when 20
    bonus = { :base_attack_bonus => [20,15,10,5],
              :fort_save         => 12,
              :ref_save          => 12,
              :will_save         => 6,
              :choices => [ ChooseFavoredEnemy.new ],
              :granted_features  => ["masterhunter"],
              :spells_per_day => PfrpgTables::Tables::Spells::SpellsPerDay.Ranger(level)
            }
  end
  bonus
end