diff options
author | Your Name <you@example.com> | 2021-05-18 16:26:49 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-05-18 16:26:49 -0400 |
commit | 38e33d8756a5b652965be8ada478b5c4238b857c (patch) | |
tree | d4e3b166103c4c0cc8d3a4ed963333a2982bb366 /src/spellcasting.h | |
parent | e044fc4255aa64ef1dbc3d20ed87ed6e2f61a6bd (diff) | |
download | dmtool-38e33d8756a5b652965be8ada478b5c4238b857c.tar.gz dmtool-38e33d8756a5b652965be8ada478b5c4238b857c.tar.bz2 dmtool-38e33d8756a5b652965be8ada478b5c4238b857c.zip |
Added spellcasting command
Diffstat (limited to 'src/spellcasting.h')
-rw-r--r-- | src/spellcasting.h | 2 |
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; |