aboutsummaryrefslogtreecommitdiff
path: root/backend/ObjectFactory.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-01 21:33:27 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-01 21:33:27 +0100
commitaf76b9a0ae58dc8c87548053a5bc310ad6be25ce (patch)
treeb2aa5927ed19855c101120593b59a9c3224804ad /backend/ObjectFactory.cpp
parentbdf6ac149ec260dab767663419731b302679f458 (diff)
more small tweaks
Diffstat (limited to 'backend/ObjectFactory.cpp')
-rw-r--r--backend/ObjectFactory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/backend/ObjectFactory.cpp b/backend/ObjectFactory.cpp
index a3a6d83..1256f98 100644
--- a/backend/ObjectFactory.cpp
+++ b/backend/ObjectFactory.cpp
@@ -25,8 +25,7 @@ Object * ObjectFactory::create_object(const UniversalObject & data) {
}
case WEAPON: {
WeaponObject * object = new WeaponObject(data.name, data.description);
- object->set_damage_min(data.min_value);
- object->set_damage_max(data.max_value);
+ object->set_damage({ data.min_value, data.max_value });
return object;
}
default: break;