stronger exp in small games

This commit is contained in:
Antonio Martinez 2024-08-22 21:08:01 -07:00 committed by AJ Martinez
parent e57f53016c
commit 36db256633

View file

@ -14780,13 +14780,24 @@ fixed_t K_GetExpAdjustment(player_t *player)
INT32 live_players = 0;
// Increase XP for each player you're beating...
for (INT32 i = 0; i < MAXPLAYERS; i++)
{
if (!playeringame[i] || players[i].spectator || player == players+i)
continue;
live_players++;
}
if (live_players < 8)
{
exp_power += (8 - live_players) * exp_power/4;
}
// Increase XP for each player you're beating...
for (INT32 i = 0; i < MAXPLAYERS; i++)
{
if (!playeringame[i] || players[i].spectator || player == players+i)
continue;
if (player->position < players[i].position)
result += exp_power;