diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-01 22:47:42 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-01 22:47:42 +0100 |
commit | 07796bea15a2d5f43766f062379b63fc9e9e1b5d (patch) | |
tree | 2d398f161a9a933176f50779ff164e76c3871f43 /backend/ConsumableObject.cpp | |
parent | af76b9a0ae58dc8c87548053a5bc310ad6be25ce (diff) |
WIP consumables
Diffstat (limited to 'backend/ConsumableObject.cpp')
-rw-r--r-- | backend/ConsumableObject.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/backend/ConsumableObject.cpp b/backend/ConsumableObject.cpp index cfede41..7a02a3c 100644 --- a/backend/ConsumableObject.cpp +++ b/backend/ConsumableObject.cpp @@ -1,3 +1,11 @@ #include "ConsumableObject.h" +void ConsumableObject::set_potency(const Range<int> & range) { + this->potency_min = range.min; + this->potency_max = range.max; +} + +Range<int> ConsumableObject::get_potency() const { + return { this->potency_min, this->potency_max }; +} |