Skip to content

Commit

Permalink
Rank loss in tournament (#494)
Browse files Browse the repository at this point in the history
Rank loss on defeat and prevent going over the ladder boundary
  • Loading branch information
gdeda authored Jul 27, 2023
1 parent 0a7046b commit 4287067
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/scenes/arena.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,8 @@ void arena_har_defeat_hook(int player_id, scene *scene) {
player_winner->pilot->money += player_loser->pilot->winnings;
scene_youwin_anim_start(scene->gs);
} else {
if(player_loser->pilot->rank <= player_loser->pilot->enemies_ex_unranked)
player_loser->pilot->rank++;
scene_youlose_anim_start(scene->gs);
}
}
Expand Down

0 comments on commit 4287067

Please sign in to comment.