Class: PfrpgClasses::Cleric

Inherits:
Heroclass show all
Defined in:
lib/pfrpg_classes/heroclass/cleric.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, prestige_class_list, prestige_list_json, #pretty_choice_string, #pretty_feature_string, #saves, #spells, #spells_per_day, #starting_wealth_str

Constructor Details

This class inherits a constructor from PfrpgClasses::Heroclass

Instance Method Details

#alignmentObject



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

def alignment
  PfrpgUtility::Alignment.any
end

#bonuses_for_level(level) ⇒ Object



23
24
25
# File 'lib/pfrpg_classes/heroclass/cleric.rb', line 23

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

#create_feature(f) ⇒ Object



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

def create_feature(f)
  ClericFeature.new(:ability_name => f)
end

#descriptionObject



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

def description
  "More than capable of upholding the honor of their deities in battle, clerics often prove stalwart and capable combatants. Their true strength lies in their capability to draw upon the power of their deities, whether to increase their own and their allies' prowess in battle, to vex their foes with divine magic, or to lend healing to companions in need. As their powers are influenced by their faith, all clerics must focus their worship upon a divine source. While the vast majority of clerics revere a specific deity, a small number dedicate themselves to a divine concept worthy of devotion—such as battle, death, justice, or knowledge—free of a deific abstraction. (Work with your GM if you prefer this path to selecting a specific deity.)"
end

#feature_typeObject



68
69
70
# File 'lib/pfrpg_classes/heroclass/cleric.rb', line 68

def feature_type
  "ClericFeature"
end

#get_spells_table(level) ⇒ Object



56
57
58
# File 'lib/pfrpg_classes/heroclass/cleric.rb', line 56

def get_spells_table(level)
  return PfrpgTables::Tables::Spells::SpellsPerDay.Cleric(level)
end

#heroclass_idObject



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

def heroclass_id
  3
end

#hit_dieObject



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

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

#nameObject



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

def name
  "Cleric"
end

#skillsObject



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/pfrpg_classes/heroclass/cleric.rb', line 39

def skills
  [
   PfrpgSkills::Skill::Appraise.new,
   PfrpgSkills::Skill::Craft.new,
   PfrpgSkills::Skill::Diplomacy.new,
   PfrpgSkills::Skill::Heal.new,
   PfrpgSkills::Skill::Knowledge.new('Arcana'),
   PfrpgSkills::Skill::Knowledge.new('History'),
   PfrpgSkills::Skill::Knowledge.new('Nobility'),
   PfrpgSkills::Skill::Knowledge.new('Planes'),
   PfrpgSkills::Skill::Knowledge.new('Religion'),
   PfrpgSkills::Skill::Linguistics.new,
   PfrpgSkills::Skill::Profession.new,
   PfrpgSkills::Skill::Spellcraft.new,
  ]
end

#skills_per_levelObject



64
65
66
# File 'lib/pfrpg_classes/heroclass/cleric.rb', line 64

def skills_per_level
  2
end

#spells_bonus_attrObject



60
61
62
# File 'lib/pfrpg_classes/heroclass/cleric.rb', line 60

def spells_bonus_attr
  "wis"
end

#starting_featsObject



72
73
74
75
76
77
78
79
# File 'lib/pfrpg_classes/heroclass/cleric.rb', line 72

def starting_feats
  [
    "Light Armor Proficiency",
    "Medium Armor Proficiency",
    "Shield Proficiency",
    "Simple Weapon Proficiency"
  ]
end

#starting_wealthObject



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

def starting_wealth
  PfrpgUtility::Dice.new(5,6, multiplier = 10)
end

#starting_wealth_avgObject



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

def starting_wealth_avg
  140
end

#suggested_itemsObject



81
82
83
84
85
86
# File 'lib/pfrpg_classes/heroclass/cleric.rb', line 81

def suggested_items
  [
    ['Morningstar', 'Leather', 'Buckler'],
    ['Crossbow, light', 'Leather', 'Crossbow bolt(s), heavy/light/hand (10)']
  ]
end