aboutsummaryrefslogtreecommitdiff
path: root/backend/WeaponObject.cpp
blob: 58db34d82cc49726cec09ce4424c765521c5b1ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "WeaponObject.h"

void WeaponObject::set_damage_min(int damage_min) { this->damage_min = damage_min; }
int WeaponObject::get_damage_min() const { return this->damage_min; }

void WeaponObject::set_damage_max(int damage_max) { this->damage_max = damage_max; }
int WeaponObject::get_damage_max() const { return 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;
}