Class: PfrpgClasses::Paladin
Instance Attribute Summary
Attributes inherited from Heroclass
#level_for_json
Instance Method Summary
collapse
Methods inherited from Heroclass
#as_json, #bab, #bonus_choices_for_level, #bonus_features_for_level, by_name, class_list, class_list_json, #features, fetch, #initialize, #meets_prerequisites?, #prestige, prestige_class_list, prestige_list_json, #pretty_choice_string, #pretty_feature_string, #saves, #spells, #spells_per_day, #starting_wealth_str
Instance Method Details
#alignment ⇒ Object
27
28
29
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 27
def alignment
"Lawful Good"
end
|
#bonuses_for_level(level) ⇒ Object
19
20
21
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 19
def bonuses_for_level(level)
PfrpgTables::Tables::Heroclasses::Paladin.level_bonus(level)
end
|
#create_feature(f) ⇒ Object
23
24
25
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 23
def create_feature(f)
PaladinFeature.new(:ability_name => f)
end
|
#description ⇒ Object
39
40
41
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 39
def description
"Paladins serve as beacons for their allies within the chaos of battle. While deadly opponents of evil, they can also empower goodly souls to aid in their crusades. Their magic and martial skills also make them well suited to defending others and blessing the fallen with the strength to continue fighting."
end
|
#feature_type ⇒ Object
61
62
63
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 61
def feature_type
"PaladinFeature"
end
|
#get_spells_table(level) ⇒ Object
35
36
37
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 35
def get_spells_table(level)
return PfrpgTables::Tables::Spells::SpellsPerDay.Paladin(level)
end
|
#hit_die ⇒ Object
7
8
9
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 7
def hit_die
PfrpgUtility::Dice.new(1,10)
end
|
#mercies(level) ⇒ Object
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 96
def mercies(level)
base = []
if level >= 3
base << [ 'Fatigued', 'Shaken', 'Sickened' ]
end
if level >= 6
base << [ 'Dazed' , 'Diseased', 'Nauseated' ]
end
if level >= 9
base << [ 'Cursed', 'Exhausted', 'Frightened', 'Nauseated', 'Poisoned' ]
end
if level >= 12
base << [ 'Blinded', 'Deafened', 'Paralyzed', 'Stunned' ]
end
return base.flatten
end
|
#mercy_desc(key) ⇒ Object
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 75
def mercy_desc(key)
mercies =
{ 'Fatigued' => 'the target is no longer fatigued.',
'Shaken' => 'the target is no longer shaken',
'Sickened' => 'the target is no longer sickened',
'Dazed' => 'the target is no longer dazed',
'Diseased' => 'the paladin\'s lay on hands ability also acts as remove disease, using the paladin\'s level as the caster level.',
'Staggered'=> 'the target is no longer staggered, unless the target is at exactly 0 hit points.',
'Cursed' => 'the paladin\'s lay on hands ability also acts as remove curse, using the paladin\'s level as the caster level.',
'Exhausted'=> "the target is no longer exhausted. The paladin must have the fatigue mercy before selecting this mercy.",
"Frightened" => "the target is no longer exhausted. The paladin must have the fatigue mercy before selecting this mercy.",
"Nauseated" => "the target is no longer nauseated. The paladin must have the sickened mercy before selecting this mercy.",
"Poisoned" => "the paladin's lay on hands ability also acts as neutralize poison, using the paladin's level as the caster level.",
"Blinded" => "the target is no longer blinded",
"Deafened" => "the target is no longer deafened",
"Paralyzed" => "the target is no longer paralyzed",
"Stunned" => "the target is no longer stunned"
}
return mercies[key]
end
|
#name ⇒ Object
3
4
5
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 3
def name
"Paladin"
end
|
#skills ⇒ Object
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 47
def skills
[PfrpgSkills::Skill::Craft.new,
PfrpgSkills::Skill::Diplomacy.new,
PfrpgSkills::Skill::HandleAnimal.new,
PfrpgSkills::Skill::Heal.new,
PfrpgSkills::Skill::Knowledge.new("Nobility"),
PfrpgSkills::Skill::Knowledge.new("Religion"),
PfrpgSkills::Skill::Profession.new,
PfrpgSkills::Skill::Ride.new,
PfrpgSkills::Skill::SenseMotive.new,
PfrpgSkills::Skill::Spellcraft.new,
]
end
|
#skills_per_level ⇒ Object
31
32
33
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 31
def skills_per_level
2
end
|
#spells_bonus_attr ⇒ Object
43
44
45
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 43
def spells_bonus_attr
"wis"
end
|
#starting_feats ⇒ Object
65
66
67
68
69
70
71
72
73
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 65
def starting_feats
[
"Light Armor Proficiency",
"Medium Armor Proficiency",
"Heavy Armor Proficiency",
"Simple Weapon Proficiency",
"Martial Weapon Proficiency, All"
]
end
|
#starting_wealth ⇒ Object
11
12
13
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 11
def starting_wealth
PfrpgUtility::Dice.new(5,6, multiplier = 10)
end
|
#starting_wealth_avg ⇒ Object
15
16
17
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 15
def starting_wealth_avg
175
end
|
#suggested_items ⇒ Object
113
114
115
116
117
118
|
# File 'lib/pfrpg_classes/heroclass/paladin.rb', line 113
def suggested_items
[
['Longsword', 'Scale mail', 'Shield, light steel'],
['Greatsword', 'Scale mail']
]
end
|