Class: PfrpgClasses::Duelist

Inherits:
Heroclass show all
Defined in:
lib/pfrpg_classes/heroclass/duelist.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, #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

Constructor Details

This class inherits a constructor from PfrpgClasses::Heroclass

Instance Method Details

#alignmentObject



15
16
17
# File 'lib/pfrpg_classes/heroclass/duelist.rb', line 15

def alignment
  PfrpgCore::Alignment.any
end

#bonuses_for_level(level) ⇒ Object



33
34
35
# File 'lib/pfrpg_classes/heroclass/duelist.rb', line 33

def bonuses_for_level(level)
  PfrpgTables::Heroclasses::Duelist.level_bonus(level)
end

#descriptionObject



19
20
21
# File 'lib/pfrpg_classes/heroclass/duelist.rb', line 19

def description
  "The abilities of duelists complement those rogues or bards who wish to accentuate their fighting prowess but, because of their lack of heavy armor, are afraid to leap into combat. Duelists fight in the forefront alongside fighters, barbarians, and other melee combatants, deftly avoiding the blades of their opponents while expertly targeting their vulnerabilities."
end

#feature_typeObject



45
46
47
# File 'lib/pfrpg_classes/heroclass/duelist.rb', line 45

def feature_type
  'DuelistFeature'
end

#get_spells_tableObject



37
38
39
# File 'lib/pfrpg_classes/heroclass/duelist.rb', line 37

def get_spells_table
  return PfrpgTables::Spells::SpellsPerDay.empty
end

#hit_dieObject



11
12
13
# File 'lib/pfrpg_classes/heroclass/duelist.rb', line 11

def hit_die
  PfrpgCore::Dice.new(1,10)
end

#nameObject



3
4
5
# File 'lib/pfrpg_classes/heroclass/duelist.rb', line 3

def name
  "Duelist"
end

#prerequisitesObject



49
50
51
52
53
54
55
56
57
58
# File 'lib/pfrpg_classes/heroclass/duelist.rb', line 49

def prerequisites
  [
    PfrpgCore::Prerequisite::BabPrereq.new(nil, 6),
    PfrpgCore::Prerequisite::SkillPrereq.new('acrobatics', 2),
    PfrpgCore::Prerequisite::SkillPrereq.new('perform', 2),
    PfrpgCore::Prerequisite::FeatPrereq.new('Dodge', nil),
    PfrpgCore::Prerequisite::FeatPrereq.new('Mobility', nil),
    PfrpgCore::Prerequisite::FeatPrereq.new('Weapon Finesse', nil),
  ]
end

#prestigeObject



7
8
9
# File 'lib/pfrpg_classes/heroclass/duelist.rb', line 7

def prestige
  true
end

#skillsObject



23
24
25
26
27
28
29
30
31
# File 'lib/pfrpg_classes/heroclass/duelist.rb', line 23

def skills
  [PfrpgSkills::Acrobatics.new,
   PfrpgSkills::Bluff.new,
   PfrpgSkills::EscapeArtist.new,
   PfrpgSkills::Perception.new,
   PfrpgSkills::Perform.new,
   PfrpgSkills::SenseMotive.new
  ]
end

#skills_per_levelObject



41
42
43
# File 'lib/pfrpg_classes/heroclass/duelist.rb', line 41

def skills_per_level
  4
end