Class: PfrpgTables::Tables::Heroclasses::Monk

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

Class Method Summary collapse

Class Method Details

.level_bonus(level) ⇒ 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
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
# File 'lib/pfrpg_tables/tables/heroclasses/monk.rb', line 2

def self.level_bonus(level)
  bonus = nil
  case level
  when 1
    bonus = { :base_attack_bonus => [0],
              :fort_save         => 2,
              :ref_save          => 2,
              :will_save         => 2,
              :choices => [ ChooseMonkBonusFeat.new ],
              :granted_features =>  ["flurry_of_blows", "stunning_fist", "unarmed_strike", 'ac_bonus']
            }
  when 2
    bonus = { :base_attack_bonus => [1],
              :fort_save         => 3,
              :ref_save          => 3,
              :will_save         => 3,
              :choices => [ ChooseMonkBonusFeat.new ],
              :granted_features => ["evasion"]
            }
  when 3
    bonus = { :base_attack_bonus => [2],
              :fort_save         => 3,
              :ref_save          => 3,
              :will_save         => 3,
              :choices => [],
              :granted_features => ["fast_movement", "maneuver_training", "still_mind"]
            }
  when 4
    bonus = { :base_attack_bonus => [3],
              :fort_save         => 4,
              :ref_save          => 4,
              :will_save         => 4,
              :choices => [],
              :granted_features => ["ki_pool", "slow_fall"]
            }
  when 5
    bonus = { :base_attack_bonus => [3],
              :fort_save         => 4,
              :ref_save          => 4,
              :will_save         => 4,
              :choices => [],
              :granted_features => ["high_jump", "purity_of_body"]
            }
  when 6
    bonus = { :base_attack_bonus => [4],
              :fort_save         => 5,
              :ref_save          => 5,
              :will_save         => 5,
              :choices => [ ChooseMonkBonusFeat.new ],
              :granted_features => []
            }
  when 7
    bonus = { :base_attack_bonus => [5],
              :fort_save         => 5,
              :ref_save          => 5,
              :will_save         => 5,
              :granted_features => [ "wholeness_of_body"],
              :choices => []
            }
  when 8
    bonus = { :base_attack_bonus => [6,1],
              :fort_save         => 6,
              :ref_save          => 6,
              :will_save         => 6,
              :granted_features => [],
              :choices => []
            }
  when 9
    bonus = { :base_attack_bonus => [6,1],
              :fort_save         => 6,
              :ref_save          => 6,
              :will_save         => 6,
              :granted_features => ["improved_evasion"],
              :choices => []
            }
  when 10
    bonus = { :base_attack_bonus => [7,2],
              :fort_save         => 7,
              :ref_save          => 7,
              :will_save         => 7,
              :granted_features => [],
              :choices => [ ChooseMonkBonusFeat.new ]
            }
  when 11
    bonus = { :base_attack_bonus => [8,3],
              :fort_save         => 7,
              :ref_save          => 7,
              :will_save         => 7,
              :granted_features => ["diamond_body"],
              :choices => []
            }
  when 12
    bonus = { :base_attack_bonus => [9,4],
              :fort_save         => 8,
              :ref_save          => 8,
              :will_save         => 8,
              :granted_features => ["abundant_step"],
              :choices => []
            }
  when 13
    bonus = { :base_attack_bonus => [9,4],
              :fort_save         => 8,
              :ref_save          => 8,
              :will_save         => 8,
              :granted_features => ["diamond_soul"],
              :choices => []
            }
  when 14
    bonus = { :base_attack_bonus => [10,5],
              :fort_save         => 9,
              :ref_save          => 9,
              :will_save         => 9,
              :choices => [ ChooseMonkBonusFeat.new ],
              :granted_features => []
            }
  when 15
    bonus = { :base_attack_bonus => [11,6,1],
              :fort_save         => 9,
              :ref_save          => 9,
              :will_save         => 9,
              :granted_features => ["quivering_palm"],
              :choices => []
            }
  when 16
    bonus = { :base_attack_bonus => [12,7,2],
              :fort_save         => 10,
              :ref_save          => 10,
              :will_save         => 10,
              :granted_features => [],
              :choices => []
            }
  when 17
    bonus = { :base_attack_bonus => [12,7,2],
              :fort_save         => 10,
              :ref_save          => 10,
              :will_save         => 10,
              :granted_features => ["timeless_body", "tongue_of_the_sun_and_moon"],
              :choices => []
            }
  when 18
    bonus = { :base_attack_bonus => [13,8,3],
              :fort_save         => 11,
              :ref_save          => 11,
              :will_save         => 11,
              :choices => [ ChooseMonkBonusFeat.new ],
              :granted_features => []
            }
  when 19
    bonus = { :base_attack_bonus => [14,9,4],
              :fort_save         => 11,
              :ref_save          => 11,
              :will_save         => 11,
              :granted_features => ["empty_body"],
              :choices => []
            }
  when 20
    bonus = { :base_attack_bonus => [15,10,5],
              :fort_save         => 12,
              :ref_save          => 12,
              :will_save         => 12,
              :granted_features => ["perfect_self"],
              :choices => []
            }
  end
  bonus
end

.monk_bonus_feats(level) ⇒ Object



188
189
190
191
192
193
194
195
196
197
198
199
# File 'lib/pfrpg_tables/tables/heroclasses/monk.rb', line 188

def self.monk_bonus_feats(level)
  base = ["Catch Off-Guard", 'Combat Reflexes', 'Deflect Arrows', 'Dodge', 'Improved Grapple',
          'Scorpion Style', 'Throw Anything']
  if level >= 6
    base << [ "Gorgon's Fist", "Improved Bull Rush", "Improved Disarm", "Improved Feint", "Improved Trip",
               "Mobility"]
  end
  if level >= 10
    base << ["Improved Critical", "Medusa's Wrath", "Snatch Arrows", "Spring Attack"]
  end
  base.flatten
end

.unarmed_strike_damage(size, level) ⇒ Object



169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# File 'lib/pfrpg_tables/tables/heroclasses/monk.rb', line 169

def self.unarmed_strike_damage(size, level)
  dmg = {}
  case level
  when 1..3
    dmg = { :small => "1d4", :medium => "1d6", :large => "1d8" }
  when 4..7
    dmg = { :small => "1d6", :medium => "1d8", :large => "2d6" }
  when 8.11
    dmg = { :small => "1d8", :medium => "1d10", :large => "2d8" }
  when 12..15
    dmg = { :small => "1d10", :medium => "2d6", :large => "3d6" }
  when 16..19
    dmg = { :small => "2d6", :medium => "2d8", :large => "3d8" }
  when 20
    dmg = { :small => "2d8", :medium => "2d10", :large => "4d8" }
  end
  return dmg[size.to_sym]
end