Class: PfrpgClasses::ArcaneArcher

Inherits:
Heroclass
  • Object
show all
Defined in:
lib/pfrpg_classes/heroclass/arcane_archer.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

Constructor Details

This class inherits a constructor from PfrpgClasses::Heroclass

Instance Method Details

#alignmentObject



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

def alignment
  PfrpgUtility::Alignment.any
end

#bonuses_for_level(level) ⇒ Object



27
28
29
# File 'lib/pfrpg_classes/heroclass/arcane_archer.rb', line 27

def bonuses_for_level(level)
  PfrpgTables::Tables::Heroclasses::ArcaneArcher.level_bonus(level)
end

#descriptionObject



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

def description
  "Arcane archers deal death from afar, winnowing down opponents while their allies rush into hand-to-hand combat. With their capacity to unleash hails of arrows on the enemy, they represent the pinnacle of ranged combat."
end

#feature_typeObject



43
44
45
# File 'lib/pfrpg_classes/heroclass/arcane_archer.rb', line 43

def feature_type
  "ArcaneArcherFeature"
end

#get_spells_tableObject



31
32
33
# File 'lib/pfrpg_classes/heroclass/arcane_archer.rb', line 31

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

#hit_dieObject



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

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

#nameObject



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

def name
  "Arcane Archer"
end

#prerequisitesObject



47
48
49
50
51
52
53
54
55
# File 'lib/pfrpg_classes/heroclass/arcane_archer.rb', line 47

def prerequisites
  [
    PfrpgUtility::Prerequisite::FeatPrereq.new('Point Blank Shot', nil),
    PfrpgUtility::Prerequisite::FeatPrereq.new('Precise Shot', nil),
    PfrpgUtility::Prerequisite::FeatPrereq.new('Weapon Focus', nil),
    PfrpgUtility::Prerequisite::BabPrereq.new(nil, 6),
    PfrpgUtility::Prerequisite::MiscPrereq.new('caster', nil)
  ]
end

#prestigeObject



39
40
41
# File 'lib/pfrpg_classes/heroclass/arcane_archer.rb', line 39

def prestige
  true
end

#skillsObject



19
20
21
22
23
24
25
# File 'lib/pfrpg_classes/heroclass/arcane_archer.rb', line 19

def skills
  [PfrpgSkills::Skill::Perception.new,
   PfrpgSkills::Skill::Ride.new,
   PfrpgSkills::Skill::Stealth.new,
   PfrpgSkills::Skill::Survival.new
  ]
end

#skills_per_levelObject



35
36
37
# File 'lib/pfrpg_classes/heroclass/arcane_archer.rb', line 35

def skills_per_level
  4
end