Fix incorrect PointsType in sniper rifle training and That Sinking Feeling
authorWuzzy <almikes@aol.com>
Wed, 26 Apr 2017 23:44:17 +0200
changeset 12351 fb22caa19600
parent 12350 b0293e4ef0de
child 12352 f4c55ac82698
Fix incorrect PointsType in sniper rifle training and That Sinking Feeling
share/hedgewars/Data/Missions/Challenge/Basic_Training_-_Sniper_Rifle.lua
share/hedgewars/Data/Missions/Challenge/User_Mission_-_That_Sinking_Feeling.lua
--- a/share/hedgewars/Data/Missions/Challenge/Basic_Training_-_Sniper_Rifle.lua	Wed Apr 26 23:23:18 2017 +0200
+++ b/share/hedgewars/Data/Missions/Challenge/Basic_Training_-_Sniper_Rifle.lua	Wed Apr 26 23:44:17 2017 +0200
@@ -361,6 +361,6 @@
 		SendStat(siCustomAchievement, string.format(loc("You have made %d shots."), shots))
 		end_score_overall = end_score_targets
 	end
+	SendStat(siPointType, loc("points"))
 	SendStat(siPlayerKills, tostring(end_score_overall), loc("Sniperz"))
-	SendStat(siPointType, loc("points"))
 end
--- a/share/hedgewars/Data/Missions/Challenge/User_Mission_-_That_Sinking_Feeling.lua	Wed Apr 26 23:23:18 2017 +0200
+++ b/share/hedgewars/Data/Missions/Challenge/User_Mission_-_That_Sinking_Feeling.lua	Wed Apr 26 23:44:17 2017 +0200
@@ -226,8 +226,8 @@
 				GameOver = true
 				AddCaption(loc("The flood has stopped! Challenge over."))
 				SendStat(siGameResult, loc("Challenge completed!"))
+				SendStat(siPointType, loc("rescues"))
 				SendStat(siPlayerKills, tostring(hhCount), loc("Nameless Heroes"))
-				SendStat(siPointType, loc("rescues"))
 
 				-- Do not count drowning hedgehogs
 				local hhLeft = hhCount
@@ -290,8 +290,8 @@
 		else
 			SendStat(siCustomAchievement, loc("You haven't rescued anyone."))
 		end
+		SendStat(siPointType, loc("points"))
 		SendStat(siPlayerKills, "0", loc("Nameless Heroes"))
-		SendStat(siPointType, loc("points"))
 
 		SendStat(siGameResult, loc("Disqualified!"))
 		GameOver = true