Fix vanilla adjustment formula

This commit is contained in:
郑佩茹
2023-05-01 10:45:32 -06:00
parent c90613d4be
commit 1fd631baab

View File

@@ -146,7 +146,7 @@ void IndividualProgression::AdjustStats(Player* player, float computedAdjustment
float IndividualProgression::ComputeVanillaAdjustment(Player *player, float configAdjustmentValue) float IndividualProgression::ComputeVanillaAdjustment(Player *player, float configAdjustmentValue)
{ {
float adjustmentApplyPercent = (player->getLevel() - 10.0f) / 50.0f; 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;
} }
/** /**