Class: PfrpgClasses::Druid

Inherits:
Heroclass show all
Defined in:
lib/pfrpg_classes/heroclass/druid.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/druid.rb', line 27

def alignment
  PfrpgUtility::Alignment.any_neutral #???
end

#animal_companionsObject



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'lib/pfrpg_classes/heroclass/druid.rb', line 77

def animal_companions
  [
    'Allosaurus',
    'Ankylosaurus',
    'Ant, giant',
    'Antelope',
    'Ape',
    'Archelon',
    'Arsinoitherium',
    'Aurochs',
    'Axe beak',
    'Baboon',
    'Badger',
    'Baluchitherium',
    'Basilosaurus',
    'Bat, dire',
    'Bear',
    'Beetle, giant',
    'Bird',
    'Boar',
    'Brachiosaurus',
    'Camel',
    'Cat, big',
    'Cat, Small1',
    'Centipede, giant',
    'Chameleon, giant',
    'Crab, Giant',
    'Crocodile',
    'Deinonychus',
    'Dimetrodon',
    'Dimorphodon',
    'Dog',
    'Dolphin',
    'Eel, electric',
    'Elasmosaurus',
    'Elephant',
    'Elk',
    'Frog, giant',
    'Gar',
    'Gecko, giant',
    'Goblin dog',
    'Glyptodon',
    'Hippopotamus',
    'Horse',
    'Hyena',
    'Iguanodon',
    'Kangaroo',
    'Llama',
    'Leech, giant',
    'Manta ray',
    'Mantis, giant',
    'Megalania',
    'Megaloceros',
    'Megatherium',
    'Monitor lizard',
    'Moose',
    'Moray eel, giant',
    'Octopus',
    'Orca',
    'Pachycephalosaurus',
    'Panda',
    'Parasaurolophus',
    'Pony',
    'Pteranodon',
    'Quetzalcoatlus',
    'Ram',
    'Rat, dire',
    'Rhinoceros',
    'Roc',
    'Scorpion, giant',
    'Shark1',
    'Slug, giant',
    'Snake, constrictor',
    'Snake, viper',
    'Snapping turtle',
    'Spider, giant',
    'Spinosaurus',
    'Squid',
    'Stegosaurus',
    'Stingray',
    'Thylacine',
    'Toad, giant',
    'Triceratops',
    'Tylosaurus',
    'Tyrannosaurus',
    'Vulture, giant',
    'Walrus',
    'Wasp, giant',
    'Wolf',
  ]
end

#bonuses_for_level(level) ⇒ Object



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

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

#create_feature(f) ⇒ Object



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

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

#descriptionObject



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

def description
  "While some druids might keep to the fringe of battle, allowing companions and summoned creatures to fight while they confound foes with the powers of nature, others transform into deadly beasts and savagely wade into combat. Druids worship personifications of elemental forces, natural powers, or nature itself. Typically this means devotion to a nature deity, though druids are just as likely to revere vague spirits, animalistic demigods, or even specific awe-inspiring natural wonders."
end

#feature_typeObject



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

def feature_type
  "DruidFeature"
end

#get_spells_table(level) ⇒ Object



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

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

#hit_dieObject



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

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

#nameObject



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

def name
  "Druid"
end

#skillsObject



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/pfrpg_classes/heroclass/druid.rb', line 47

def skills
  [PfrpgSkills::Skill::Climb.new,
   PfrpgSkills::Skill::Craft.new,
   PfrpgSkills::Skill::Fly.new,
   PfrpgSkills::Skill::HandleAnimal.new,
   PfrpgSkills::Skill::Heal.new,
   PfrpgSkills::Skill::Knowledge.new("Geography"),
   PfrpgSkills::Skill::Knowledge.new("Nature"),
   PfrpgSkills::Skill::Perception.new,
   PfrpgSkills::Skill::Profession.new,
   PfrpgSkills::Skill::Ride.new,
   PfrpgSkills::Skill::Spellcraft.new,
   PfrpgSkills::Skill::Survival.new,
   PfrpgSkills::Skill::Swim.new,
  ]
end

#skills_per_levelObject



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

def skills_per_level
  4
end

#spells_bonus_attrObject



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

def spells_bonus_attr
  "wis"
end

#starting_featsObject



68
69
70
71
72
73
74
75
# File 'lib/pfrpg_classes/heroclass/druid.rb', line 68

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

#starting_wealthObject



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

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

#starting_wealth_avgObject



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

def starting_wealth_avg
  70
end

#suggested_itemsObject



169
170
171
172
173
174
# File 'lib/pfrpg_classes/heroclass/druid.rb', line 169

def suggested_items
  [
    ['Club', 'Leather', 'Buckler'],
    ['Quarterstaff', 'Leather']
  ]
end