blob: a91b6bf3d7d42441ec4cac4455f67ca79cdb6368 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "WeaponObject.h"
void WeaponObject::set_damage(const Range<int> & range) {
this->damage_min = range.min;
this->damage_max = range.max;
}
Range<int> 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;
}
|