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