mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
stronger exp in small games
This commit is contained in:
parent
e57f53016c
commit
36db256633
1 changed files with 12 additions and 1 deletions
13
src/k_kart.c
13
src/k_kart.c
|
|
@ -14780,13 +14780,24 @@ fixed_t K_GetExpAdjustment(player_t *player)
|
||||||
|
|
||||||
INT32 live_players = 0;
|
INT32 live_players = 0;
|
||||||
|
|
||||||
// Increase XP for each player you're beating...
|
|
||||||
for (INT32 i = 0; i < MAXPLAYERS; i++)
|
for (INT32 i = 0; i < MAXPLAYERS; i++)
|
||||||
{
|
{
|
||||||
if (!playeringame[i] || players[i].spectator || player == players+i)
|
if (!playeringame[i] || players[i].spectator || player == players+i)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
live_players++;
|
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)
|
if (player->position < players[i].position)
|
||||||
result += exp_power;
|
result += exp_power;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue