mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-23 15:36:59 +00:00
racing:: finish message
This commit is contained in:
parent
5db477390c
commit
e42abbbf24
@ -1142,6 +1142,11 @@ void race_won() {
|
||||
if(place == 1 && losers) trophy[current_player] = 0xFFD500FF;
|
||||
if(place == 2) trophy[current_player] = 0xFFFFC0FF;
|
||||
if(place == 3) trophy[current_player] = 0x967444FF;
|
||||
|
||||
if(place + losers > 1)
|
||||
addMessage(XLAT("Finished the race! Time: %1, place: %2 out of %3", racetimeformat(result), its(place), its(place+losers)));
|
||||
else
|
||||
addMessage(XLAT("Finished the race in time %1!", racetimeformat(result)));
|
||||
|
||||
if(place == 1 && losers && official_race)
|
||||
achievement_gain("RACEWON", rg::racing);
|
||||
|
Loading…
Reference in New Issue
Block a user