diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 19:59:38 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 19:59:38 +0100 |
commit | 6e1d62955c7a7f39bc9126d709a42a70e02a1d30 (patch) | |
tree | c2505409c68d554b1e776cdb0c8104af54d375bf /backend/WeaponObject.cpp | |
parent | c1d43cddee94dd370078f755d33147c9a8181852 (diff) |
create backend string class
Diffstat (limited to 'backend/WeaponObject.cpp')
-rw-r--r-- | backend/WeaponObject.cpp | 5 |
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; +} + |