diff --git a/Source/damage.hpp b/Source/damage.hpp index db958555a..705584fb8 100644 --- a/Source/damage.hpp +++ b/Source/damage.hpp @@ -21,9 +21,14 @@ struct Damage { { } + [[nodiscard]] bool IsFixed() const + { + return minValue == maxValue; + } + int GetValue() const { - return minValue == maxValue + return IsFixed() ? minValue : minValue + GenerateRnd(maxValue - minValue + 1); }