192 ShowMission(loc("TrophyRace"), loc("Status update"), |
192 ShowMission(loc("TrophyRace"), loc("Status update"), |
193 string.format(loc("Time: %.3fs by %s"), (ttime/1000), GetHogName(CurrentHedgehog)) |
193 string.format(loc("Time: %.3fs by %s"), (ttime/1000), GetHogName(CurrentHedgehog)) |
194 .. hscore, |
194 .. hscore, |
195 0, 0) |
195 0, 0) |
196 AddCaption(string.format(loc("Time: %.3fs"), (ttime/1000)), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpMessage2) |
196 AddCaption(string.format(loc("Time: %.3fs"), (ttime/1000)), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpMessage2) |
197 AddCaption(loc("Track completed!"), 0xFFFFFFFF, capgrpGameState) |
197 AddCaption(loc("Track completed!"), capcolDefault, capgrpGameState) |
198 EndTurn(true) |
198 EndTurn(true) |
199 else |
199 else |
200 if (TurnTimeLeft > 0) and (TurnTimeLeft ~= TurnTime) and CurrentHedgehog ~= nil and GetHealth(CurrentHedgehog) > 0 and (not reached) and GameTime%100 == 0 then |
200 if (TurnTimeLeft > 0) and (TurnTimeLeft ~= TurnTime) and CurrentHedgehog ~= nil and GetHealth(CurrentHedgehog) > 0 and (not reached) and GameTime%100 == 0 then |
201 local ttime = GameTime-startTime |
201 local ttime = GameTime-startTime |
202 AddCaption(string.format(loc("Time: %.1fs"), (ttime/1000)), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpMessage2) |
202 AddCaption(string.format(loc("Time: %.1fs"), (ttime/1000)), GetClanColor(GetHogClan(CurrentHedgehog)), capgrpMessage2) |