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

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

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;
}