Class: PfrpgClasses::Barbarian

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



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

def alignment
   PfrpgUtility::Alignment.never_lawful
end

#bonuses_for_level(level) ⇒ Object



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

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

#create_feature(f) ⇒ Object



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

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

#descriptionObject



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

def description
  "Barbarians excel in combat, possessing the martial prowess and fortitude to take on foes seemingly far superior to themselves. With rage granting them boldness and daring beyond that of most other warriors, barbarians charge furiously into battle and ruin all who would stand in their way."
end

#feature_typeObject



57
58
59
# File 'lib/pfrpg_classes/heroclass/barbarian.rb', line 57

def feature_type
  "BarbarianFeature"
end

#get_spells_table(level) ⇒ Object



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

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

#hit_dieObject



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

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

#nameObject



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

def name
  "Barbarian"
end

#skillsObject



43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/pfrpg_classes/heroclass/barbarian.rb', line 43

def skills
  [PfrpgSkills::Skill::Acrobatics.new,
   PfrpgSkills::Skill::Climb.new,
   PfrpgSkills::Skill::Craft.new,
   PfrpgSkills::Skill::HandleAnimal.new,
   PfrpgSkills::Skill::Intimidate.new,
   PfrpgSkills::Skill::Knowledge.new("Nature"),
   PfrpgSkills::Skill::Perception.new,
   PfrpgSkills::Skill::Ride.new,
   PfrpgSkills::Skill::Survival.new,
   PfrpgSkills::Skill::Swim.new,
  ]
end

#skills_per_levelObject



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

def skills_per_level
  4
end

#starting_featsObject



61
62
63
64
65
66
67
68
69
# File 'lib/pfrpg_classes/heroclass/barbarian.rb', line 61

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

#starting_wealthObject



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

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

#starting_wealth_avgObject



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

def starting_wealth_avg
  105
end

#suggested_itemsObject



71
72
73
74
75
# File 'lib/pfrpg_classes/heroclass/barbarian.rb', line 71

def suggested_items
  [
    ['Greatsword', 'Leather']
  ]
end