blob: e1de42f2d40c8f3da2660ef6c97b05b4dd17ab46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#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 };
}
String WeaponObject::get_displayname() const {
return String::fmt("%s (%d - %d schade)", this->get_name().c_str(), this->damage_min, this->damage_max);
}
|