cap ring award exp penalty

This commit is contained in:
Ashnal 2024-08-19 21:49:18 -04:00
parent 8861410692
commit 6287ee485a

View file

@ -12703,7 +12703,7 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
else else
{ {
UINT32 behind = K_GetItemRouletteDistance(player, player->itemRoulette.playing); UINT32 behind = K_GetItemRouletteDistance(player, player->itemRoulette.playing);
behind = FixedMul(behind, player->exp); behind = FixedMul(behind, max(player->exp, FRACUNIT/2));
UINT32 behindMulti = behind / 500; UINT32 behindMulti = behind / 500;
behindMulti = min(behindMulti, 60); behindMulti = min(behindMulti, 60);
award = award * (behindMulti + 10) / 10; award = award * (behindMulti + 10) / 10;