aboutsummaryrefslogtreecommitdiff
path: root/src/spellcasting.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/spellcasting.h')
-rw-r--r--src/spellcasting.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/spellcasting.h b/src/spellcasting.h
index f5cebcb..aa3b3e8 100644
--- a/src/spellcasting.h
+++ b/src/spellcasting.h
@@ -28,8 +28,10 @@ namespace entry {
class Spellcasting : public Feature {
public:
+ Spellcasting() : Feature("spellcasting", "spells", ""), innate(false), spellcasting_ability("int") {}
bool isInnate(void) const {return innate;}
rules::Ability getAbility(void) const {return spellcasting_ability;}
+ void setAbility(const rules::Ability& ability) {spellcasting_ability = ability;}
const std::vector<std::shared_ptr<SlotLevel>>& getSlotLevels(void) const {return levels;}
void addSlotLevel(void) {levels.push_back(std::shared_ptr<SlotLevel>(new SlotLevel()));}
std::vector<std::shared_ptr<Spell>> getSpells(void) const;