#include "WeaponObject.h" void WeaponObject::set_damage(const Range & range) { this->damage_min = range.min; this->damage_max = range.max; } Range WeaponObject::get_damage() const { return { this->damage_min, this->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; }