aboutsummaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-04-20 12:40:37 -0400
committerYour Name <you@example.com>2021-04-20 12:40:37 -0400
commitcd57ad6e208728bafcbc8c7d7b85d88603706978 (patch)
tree7cb0fc9511a0e8124e497d53edbe38d646dd8299 /src/item.h
parent2cae1aa33f80ce0844fb54a84ce103146a7fe7ad (diff)
downloaddmtool-cd57ad6e208728bafcbc8c7d7b85d88603706978.tar.gz
dmtool-cd57ad6e208728bafcbc8c7d7b85d88603706978.tar.bz2
dmtool-cd57ad6e208728bafcbc8c7d7b85d88603706978.zip
Updated natural armor and skills
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/item.h b/src/item.h
index 096513e..b0b06af 100644
--- a/src/item.h
+++ b/src/item.h
@@ -7,15 +7,17 @@ namespace entry {
class Item : public Entry {
public:
static std::shared_ptr<Item> create(const nlohmann::json& data);
+ virtual ~Item() {}
protected:
- Item(const nlohmann::json& data) : Entry(data) {};
+ Item(const nlohmann::json& data) : Entry(data) {}
};
class Substantial {
public:
virtual int getCost(void) const = 0;
virtual double getWeight(void) const = 0;
+ virtual ~Substantial() {}
};
std::string genText(const Substantial& s);