From ae68e84557a7e56fd7210c1009aa1313dcc78adf Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 22 Nov 2023 15:28:00 -0500 Subject: Increased capacity for creating items from command line --- src/creature.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/creature.h') diff --git a/src/creature.h b/src/creature.h index de93b0e..621b397 100644 --- a/src/creature.h +++ b/src/creature.h @@ -80,11 +80,15 @@ namespace creature { void setScore(const rules::Ability& ability, int score); void setProfLevel(const rules::Skill& skill, int level); void setProficiency(int p); + void setProficientSave(const rules::Ability& ability); + void removeProficientSave(const rules::Ability& ability); void addInventoryItem(std::shared_ptr item); void addSpellcasting(void); void addSpell(std::shared_ptr spell); void removeSpell(std::shared_ptr spell); void removeInventoryItem(std::shared_ptr item); + void addFeature(std::shared_ptr feature); + void removeFeature(std::shared_ptr feature); // Events void longRest(void); @@ -107,4 +111,10 @@ namespace creature { // Helper function to get the best ability for this creature (chooses arbitrarily in case of ties) rules::Ability getBestAbility(const std::vector& abilities, const Creature& c); + + // Helper function to smartly add an entry. Returns true on success. + bool addEntry(std::shared_ptr entry, Creature& c); + + // Helper function to smartly remove an entry. Returns the removed entry on success, else a null shared_ptr + std::shared_ptr removeEntry(std::string entryName, Creature& c); } -- cgit v1.2.3