diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-01 21:33:27 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-01 21:33:27 +0100 |
commit | af76b9a0ae58dc8c87548053a5bc310ad6be25ce (patch) | |
tree | b2aa5927ed19855c101120593b59a9c3224804ad /backend/ObjectFactory.cpp | |
parent | bdf6ac149ec260dab767663419731b302679f458 (diff) |
more small tweaks
Diffstat (limited to 'backend/ObjectFactory.cpp')
-rw-r--r-- | backend/ObjectFactory.cpp | 3 |
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; |