aboutsummaryrefslogtreecommitdiff
path: root/backend/ArmorObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/ArmorObject.cpp')
-rw-r--r--backend/ArmorObject.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/ArmorObject.cpp b/backend/ArmorObject.cpp
index e6dc026..eb805e0 100644
--- a/backend/ArmorObject.cpp
+++ b/backend/ArmorObject.cpp
@@ -6,3 +6,9 @@ void ArmorObject::set_protection(int protection) {
int ArmorObject::get_protection() const {
return this->protection;
}
+
+const String & ArmorObject::get_displayname() const {
+ static String display = String::fmt("%s (%d bescherming)", this->get_name().c_str(), this->protection);
+ return display;
+}
+