share/hedgewars/Data/Scripts/SpeedShoppa.lua
changeset 13740 2bb7141496a9
parent 13583 141cdfe0f3ca
child 14231 74bf2d906097
equal deleted inserted replaced
13739:b3b55b03d499 13740:2bb7141496a9
   173 				SendStat(siGameResult, loc("Challenge completed!"))
   173 				SendStat(siGameResult, loc("Challenge completed!"))
   174 				SendStat(siPointType, loc("milliseconds"))
   174 				SendStat(siPointType, loc("milliseconds"))
   175 				local time = startTime - endTime
   175 				local time = startTime - endTime
   176 				SendStat(siPlayerKills, tostring(time), params.teamName)
   176 				SendStat(siPlayerKills, tostring(time), params.teamName)
   177 				SendStat(siCustomAchievement, string.format(loc("You have finished the challenge in %.3f s."), (time/1000)))
   177 				SendStat(siCustomAchievement, string.format(loc("You have finished the challenge in %.3f s."), (time/1000)))
   178 				TurnTimeLeft = 0
   178 				SetTurnTimeLeft(0)
   179 			else
   179 			else
   180 				SendStat(siGameResult, loc("Challenge failed!"))
   180 				SendStat(siGameResult, loc("Challenge failed!"))
   181 				SendStat(siPointType, loc("crate(s)"))
   181 				SendStat(siPointType, loc("crate(s)"))
   182 				SendStat(siPlayerKills, tostring(cratesCollected), params.teamName)
   182 				SendStat(siPlayerKills, tostring(cratesCollected), params.teamName)
   183 				SendStat(siCustomAchievement, string.format(loc("You have collected %d out of %d crate(s)."), cratesCollected, #crates))
   183 				SendStat(siCustomAchievement, string.format(loc("You have collected %d out of %d crate(s)."), cratesCollected, #crates))