diff options
author | Your Name <you@example.com> | 2021-05-09 13:56:46 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-05-09 13:56:46 -0400 |
commit | d13358b71ec15085f2638fd9c3fc634df62dfc94 (patch) | |
tree | 467c643a068bf2d83da3632823a6434244ae004e /src/entry.h | |
parent | e3aaa68a2ea1a403256150121c57a0287014162f (diff) | |
download | dmtool-d13358b71ec15085f2638fd9c3fc634df62dfc94.tar.gz dmtool-d13358b71ec15085f2638fd9c3fc634df62dfc94.tar.bz2 dmtool-d13358b71ec15085f2638fd9c3fc634df62dfc94.zip |
Reduced dependency on json-related hacks
Diffstat (limited to 'src/entry.h')
-rw-r--r-- | src/entry.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/entry.h b/src/entry.h index c745097..efc402b 100644 --- a/src/entry.h +++ b/src/entry.h @@ -10,9 +10,6 @@ namespace creature { namespace entry { class Entry; - // Set up default text generation - std::string genText(const Entry& e, const creature::Creature& c); - class Entry : public Jsonable { public: static std::shared_ptr<Entry> create(const nlohmann::json& data); @@ -23,8 +20,7 @@ namespace entry { virtual std::string getText(void) const {return text;} void setText(std::string t) {text = t;} virtual std::string getText(const creature::Creature& c) const { - //return genText(*this, c); - return genText(*this, c) + ": " + getText(); + return getName() + " (" + getType() + "): " + getText(); } virtual nlohmann::json toJson(void) const { |