mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Use floats in ComputeVanillaAdjustment
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user