ASA: Reset checkpoint after completing checkpointed mission
authorWuzzy <almikes@aol.com>
Tue, 26 Sep 2017 02:31:01 +0200
changeset 12536 e12e2dfda06f
parent 12535 00d3c280034b
child 12537 3e6e7b258a33
ASA: Reset checkpoint after completing checkpointed mission
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice01.lua
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice01.lua	Tue Sep 26 02:27:33 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice01.lua	Tue Sep 26 02:31:01 2017 +0200
@@ -537,5 +537,6 @@
 	-- maybe add number of tries for each part?
 	SendStat(siPlayerKills,'1',teamC.name)
 	SendStat(siPlayerKills,'0',teamB.name)
+	resetCheckpoint() -- reset this mission
 	EndGame()
 end
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua	Tue Sep 26 02:27:33 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua	Tue Sep 26 02:31:01 2017 +0200
@@ -374,6 +374,7 @@
 	SendStat(siPlayerKills,'1',teamD.name)
 	SendStat(siPlayerKills,'0',teamC.name)
 	SaveCampaignVar("CosmosCheckPoint", "5") -- hero got fuels
+	resetCheckpoint() -- reset this mission
 	gameOver = true
 	EndGame()
 end
@@ -393,6 +394,7 @@
 	SendStat(siPlayerKills,'1',teamD.name)
 	SendStat(siPlayerKills,'0',teamC.name)
 	SaveCampaignVar("CosmosCheckPoint", "5") -- hero got fuels
+	resetCheckpoint() -- reset this mission
 	gameOver = true
 	EndGame()
 end