Battle: change rankings priority

Highest to lowest:

1. points
2. emeralds
3. bumpers
This commit is contained in:
James R 2023-02-22 00:16:23 -08:00
parent deac3a373f
commit 9147a17bf3

View file

@ -9285,22 +9285,22 @@ void K_KartUpdatePosition(player_t *player)
UINT8 myEmeralds = K_NumEmeralds(player);
UINT8 yourEmeralds = K_NumEmeralds(&players[i]);
if (yourEmeralds > myEmeralds)
// First compare all points
if (players[i].roundscore > player->roundscore)
{
// Emeralds matter above all
position++;
}
else if (yourEmeralds == myEmeralds)
else if (players[i].roundscore == player->roundscore)
{
// Bumpers are a tie breaker
if (players[i].bumpers > player->bumpers)
// Emeralds are a tie breaker
if (yourEmeralds > myEmeralds)
{
position++;
}
else if (players[i].bumpers == player->bumpers)
else if (yourEmeralds == myEmeralds)
{
// Score is the second tier tie breaker
if (players[i].roundscore > player->roundscore)
// Bumpers are the second tier tie breaker
if (players[i].bumpers > player->bumpers)
{
position++;
}