share/hedgewars/Data/Scripts/TargetPractice.lua
changeset 14578 50f511588635
parent 14526 797e3f441c14
child 14590 c5f18710a184
equal deleted inserted replaced
14577:221380cdee7e 14578:50f511588635
   300 			if(shots > 0) then
   300 			if(shots > 0) then
   301 				SendStat(siCustomAchievement, string.format(loc("Your accuracy was %.1f%%."), accuracy))
   301 				SendStat(siCustomAchievement, string.format(loc("Your accuracy was %.1f%%."), accuracy))
   302 			end
   302 			end
   303 			end_score_overall = end_score_targets
   303 			end_score_overall = end_score_targets
   304 		end
   304 		end
   305 		SendStat(siPointType, loc("point(s)"))
   305 		SendStat(siPointType, "!POINTS")
   306 		SendStat(siPlayerKills, tostring(end_score_overall), GetHogTeamName(player))
   306 		SendStat(siPlayerKills, tostring(end_score_overall), GetHogTeamName(player))
   307 		-- Update highscore
   307 		-- Update highscore
   308 		updateChallengeRecord("Highscore", end_score_overall)
   308 		updateChallengeRecord("Highscore", end_score_overall)
   309 	end
   309 	end
   310 end
   310 end