share/hedgewars/Data/Maps/TrophyRace/map.lua
changeset 13643 690cc84e9fd6
parent 13012 d82fec121f31
child 13769 e874bfe563c7
equal deleted inserted replaced
13642:3d14950641a4 13643:690cc84e9fd6
   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)