From b61a921c7beff9fc2b366723b1c2e0f7566fe303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Mon, 1 May 2023 10:47:43 -0600 Subject: [PATCH] Use floats in ComputeVanillaAdjustment --- src/IndividualProgression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IndividualProgression.cpp b/src/IndividualProgression.cpp index fe899cf..cf5c054 100644 --- a/src/IndividualProgression.cpp +++ b/src/IndividualProgression.cpp @@ -146,7 +146,7 @@ void IndividualProgression::AdjustStats(Player* player, float computedAdjustment float IndividualProgression::ComputeVanillaAdjustment(Player *player, float configAdjustmentValue) { float adjustmentApplyPercent = (player->getLevel() - 10.0f) / 50.0f; - return player->getLevel() > 10 ? 1 - ((1 - configAdjustmentValue) * adjustmentApplyPercent) : 1; + return player->getLevel() > 10 ? 1.0f - ((1.0f - configAdjustmentValue) * adjustmentApplyPercent) : 1; } /**