aboutsummaryrefslogtreecommitdiff
path: root/backend/GoldObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/GoldObject.cpp')
-rw-r--r--backend/GoldObject.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/GoldObject.cpp b/backend/GoldObject.cpp
index cf97b2e..525b2f2 100644
--- a/backend/GoldObject.cpp
+++ b/backend/GoldObject.cpp
@@ -7,3 +7,8 @@ int GoldObject::get_count() const {
return this->count;
}
+const String & GoldObject::get_displayname() const {
+ static String display = String::fmt("%s (%d)", this->get_name().c_str(), this->count);
+ return display;
+}
+