Class: PfrpgTables::Tables::Heroclasses::Shadowdancer

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

Class Method Summary collapse

Class Method Details

.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
# File 'lib/pfrpg_tables/tables/heroclasses/shadowdancer.rb', line 3

def self.level_bonus(level)
  bonus = nil
  case level
  when 1
    bonus = { :base_attack_bonus => [0],
              :fort_save         => 0,
              :ref_save          => 1,
              :will_save         => 0,
              :granted_features  => ["hideinplainsight"]
            }
  when 2
    bonus = { :base_attack_bonus => [1],
              :fort_save         => 1,
              :ref_save          => 1,
              :will_save         => 1,
              :granted_features  => ["evasion", "darkvision", "uncannydodge"]
            }
  when 3
    bonus = { :base_attack_bonus => [1],
              :fort_save         => 1,
              :ref_save          => 2,
              :will_save         => 1,
              :choices           => [ChooseRogueTalent.new],
              :granted_features  => ["shadowillusion", "summonshadow"]
            }
  when 4
    bonus = { :base_attack_bonus => [3],
              :fort_save         => 1,
              :ref_save          => 2,
              :will_save         => 1,
              :granted_features  => ["shadowcall", "shadowjump"]
            }
  when 5
    bonus = { :base_attack_bonus => [3],
              :fort_save         => 2,
              :ref_save          => 3,
              :will_save         => 3,
              :granted_features  => ["defensiveroll", "improveduncannydodge"]
            }
  when 6
    bonus = { :base_attack_bonus => [4],
              :fort_save         => 2,
              :ref_save          => 3,
              :will_save         => 2,
              :choices           => [ChooseRogueTalent.new],
              :granted_features  => []
            }
  when 7
    bonus = { :base_attack_bonus => [5],
              :fort_save         => 2,
              :ref_save          => 4,
              :will_save         => 2,
              :granted_features  => ["slipperymind"]
            }
  when 8
    bonus = { :base_attack_bonus => [6],
              :fort_save         => 3,
              :ref_save          => 4,
              :will_save         => 3,
              :granted_features  => [ "shadowpower"]
            }
  when 9
    bonus = { :base_attack_bonus => [6],
              :fort_save         => 3,
              :ref_save          => 5,
              :will_save         => 3,
              :granted_features  => [], #choose rogue talent
              :choices           => [ChooseRogueTalent.new]
            }
  when 10
    bonus = { :base_attack_bonus => [7],
              :fort_save         => 3,
              :ref_save          => 5,
              :will_save         => 3,
              :granted_features  => ["improvedevasion", "shadowmaster"]
            }
  end
  bonus
end