From 1fd631baab1ea159a6c0e5b6334e438cb390f752 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:45:32 -0600 Subject: [PATCH] Fix vanilla adjustment formula --- src/IndividualProgression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IndividualProgression.cpp b/src/IndividualProgression.cpp index 82b6fe3..fe899cf 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.0f - (configAdjustmentValue * adjustmentApplyPercent)) : 1; + return player->getLevel() > 10 ? 1 - ((1 - configAdjustmentValue) * adjustmentApplyPercent) : 1; } /**