Use correct kill counts for the remaining ASA missions as well
authorWuzzy <almikes@aol.com>
Tue, 26 Sep 2017 19:13:26 +0200
changeset 12544 19192a3cb674
parent 12543 952afc3d2df2
child 12545 1171c08fec1c
Use correct kill counts for the remaining ASA missions as well
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert02.lua
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert03.lua
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/final.lua
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice02.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert02.lua	Tue Sep 26 18:54:35 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert02.lua	Tue Sep 26 19:13:26 2017 +0200
@@ -150,7 +150,7 @@
 	SendStat(siCustomAchievement, loc("To win the game you have to go to the surface."))
 	SendStat(siCustomAchievement, loc("Most mines are not active."))
 	SendStat(siCustomAchievement, loc("From the second turn and beyond the water rises."))
-	SendStat(siPlayerKills,'0',teamA.name)
+	sendSimpleTeamRankings({teamA.name})
 	EndGame()
 end
 
@@ -168,7 +168,7 @@
 			SendStat(siCustomAchievement, loc("This is a new personal best, congratulations!"))
 		end
 	end
-	SendStat(siPlayerKills,'0',teamA.name)
+	sendSimpleTeamRankings({teamA.name})
 	SaveCampaignVar("Mission7Won", "true")
 	checkAllMissionsCompleted()
 	EndGame()
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert03.lua	Tue Sep 26 18:54:35 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert03.lua	Tue Sep 26 19:13:26 2017 +0200
@@ -215,7 +215,7 @@
 	SendStat(siCustomAchievement, loc("You have destroyed all the targets."))
 	SendStat(siCustomAchievement, loc("You are indeed the best PAotH pilot."))
 	SendStat(siCustomAchievement, loc("Next time you play \"Searching in the dust\" you'll have an RC plane available."))
-	SendStat(siPlayerKills,'0',teamA.name)
+	sendSimpleTeamRankings({teamA.name})
 	SaveCampaignVar("Mission12Won", "true")
 	checkAllMissionsCompleted()
 	EndGame()
@@ -226,6 +226,6 @@
 	SendStat(siCustomAchievement, loc("You have to destroy all the targets."))
 	SendStat(siCustomAchievement, loc("You will fail if you run out of ammo and there are still targets available."))
 	SendStat(siCustomAchievement, loc("Read the challenge objectives from within the mission for more details."))
-	SendStat(siPlayerKills,'0',teamA.name)
+	sendSimpleTeamRankings({teamA.name})
 	EndGame()
 end
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/final.lua	Tue Sep 26 18:54:35 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/final.lua	Tue Sep 26 19:13:26 2017 +0200
@@ -149,7 +149,7 @@
 	SendStat(siCustomAchievement, loc("You have to destroy all the explosives without dying!"))
 	SendStat(siCustomAchievement, loc("Red areas are indestructible."))
 	SendStat(siCustomAchievement, loc("Green areas are portal-proof and repel portals."))
-	SendStat(siPlayerKills,'0',teamA.name)
+	sendSimpleTeamRankings({teamA.name})
 	EndGame()
 end
 
@@ -159,6 +159,6 @@
 	checkAllMissionsCompleted()
 	SendStat(siGameResult, loc("Congratulations, you have saved Hogera!"))
 	SendStat(siCustomAchievement, loc("Hogera is safe!"))
-	SendStat(siPlayerKills,'0',teamA.name)
+	sendSimpleTeamRankings({teamA.name})
 	EndGame()
 end
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice02.lua	Tue Sep 26 18:54:35 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice02.lua	Tue Sep 26 19:13:26 2017 +0200
@@ -161,7 +161,7 @@
 				SaveCampaignVar("IceStadiumLeastSaucersUsed", tostring(saucersUsed))
 			end
 
-			SendStat(siPlayerKills,'0',teamA.name)
+			sendSimpleTeamRankings({teamA.name})
 			SaveCampaignVar("Mission6Won", "true")
 			checkAllMissionsCompleted()
 			EndGame()
@@ -294,6 +294,6 @@
 	SendStat(siCustomAchievement, loc("You'll get extra time in case you need it when you pass a ring."))
 	SendStat(siCustomAchievement, loc("Every 2 rings you'll get extra flying saucers."))
 	SendStat(siCustomAchievement, loc("Use the attack key twice to change the flying saucer while being in air."))
-	SendStat(siPlayerKills,'0',teamA.name)
+	sendSimpleTeamRankings({teamA.name})
 	EndGame()
 end