Class: PfrpgClasses::EldritchKnight
- Inherits:
-
Heroclass
- Object
- Heroclass
- PfrpgClasses::EldritchKnight
show all
- Defined in:
- lib/pfrpg_classes/heroclass/eldritch_knight.rb
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_class_list, prestige_list_json, #pretty_choice_string, #pretty_feature_string, #saves, #spells, #spells_per_day, #starting_feats, #starting_wealth, #starting_wealth_avg, #starting_wealth_str
Instance Method Details
#alignment ⇒ Object
15
16
17
|
# File 'lib/pfrpg_classes/heroclass/eldritch_knight.rb', line 15
def alignment
PfrpgUtility::Alignment.any
end
|
#bonuses_for_level(level) ⇒ Object
40
41
42
|
# File 'lib/pfrpg_classes/heroclass/eldritch_knight.rb', line 40
def bonuses_for_level(level)
PfrpgTables::Tables::Heroclasses::EldritchKnight.level_bonus(level)
end
|
#description ⇒ Object
19
20
21
|
# File 'lib/pfrpg_classes/heroclass/eldritch_knight.rb', line 19
def description
"Eldritch knights blend the abilities of fighting classes and spellcasters, hurling magic at the enemy one moment and hewing down their opponents with steel the next. They are just as comfortable fighting in the thick of combat as they are casting spells at foes while remaining safely behind their compatriots. Their versatility makes them valuable allies when the nature of an upcoming battle is unclear."
end
|
#feature_type ⇒ Object
23
24
25
|
# File 'lib/pfrpg_classes/heroclass/eldritch_knight.rb', line 23
def feature_type
'EldritchKnightFeature'
end
|
#get_spells_table ⇒ Object
44
45
46
|
# File 'lib/pfrpg_classes/heroclass/eldritch_knight.rb', line 44
def get_spells_table
return PfrpgTables::Tables::Spells::SpellsPerDay.empty
end
|
#hit_die ⇒ Object
11
12
13
|
# File 'lib/pfrpg_classes/heroclass/eldritch_knight.rb', line 11
def hit_die
PfrpgUtility::Dice.new(1,10)
end
|
#name ⇒ Object
3
4
5
|
# File 'lib/pfrpg_classes/heroclass/eldritch_knight.rb', line 3
def name
"Eldritch Knight"
end
|
#prerequisites ⇒ Object
53
54
55
56
57
58
|
# File 'lib/pfrpg_classes/heroclass/eldritch_knight.rb', line 53
def prerequisites
[
PfrpgUtility::Prerequisite::FeatPrereq.new('Martial Weapon Proficiency, All', nil),
PfrpgUtility::Prerequisite::MiscPrereq.new('caster level', 3)
]
end
|
#prestige ⇒ Object
7
8
9
|
# File 'lib/pfrpg_classes/heroclass/eldritch_knight.rb', line 7
def prestige
true
end
|
#skills ⇒ Object
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/pfrpg_classes/heroclass/eldritch_knight.rb', line 27
def skills
[
PfrpgSkills::Skill::Climb.new,
PfrpgSkills::Skill::Knowledge.new('Arcana'),
PfrpgSkills::Skill::Knowledge.new('Nobility'),
PfrpgSkills::Skill::Linguistics.new,
PfrpgSkills::Skill::Ride.new,
PfrpgSkills::Skill::SenseMotive.new,
PfrpgSkills::Skill::Spellcraft.new,
PfrpgSkills::Skill::Swim.new
]
end
|
#skills_per_level ⇒ Object
48
49
50
|
# File 'lib/pfrpg_classes/heroclass/eldritch_knight.rb', line 48
def skills_per_level
2
end
|