aboutsummaryrefslogtreecommitdiff
path: root/src/entry.h
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-05-09 13:56:46 -0400
committerYour Name <you@example.com>2021-05-09 13:56:46 -0400
commitd13358b71ec15085f2638fd9c3fc634df62dfc94 (patch)
tree467c643a068bf2d83da3632823a6434244ae004e /src/entry.h
parente3aaa68a2ea1a403256150121c57a0287014162f (diff)
downloaddmtool-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.h6
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 {