ASA, Spacetrip: Fix stats screen messages when running out of fuel
authorWuzzy <almikes@aol.com>
Thu, 28 Sep 2017 00:17:41 +0200
changeset 12566 172157a47986
parent 12565 392f90c79b78
child 12567 459543ef9b1b
ASA, Spacetrip: Fix stats screen messages when running out of fuel
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Wed Sep 27 23:41:56 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Thu Sep 28 00:17:41 2017 +0200
@@ -618,8 +618,10 @@
 		-- Quick punishment for the impatient
 		AddGear(GetX(hero.gear)-1, GetY(hero.gear)+1, gtDynamite, 0, 0, 0, 1)
 		sendStatsOnRopedToMoon()
-	elseif anim == dialog05 or anim == dialog06 then
+	elseif anim == dialog05 then
 		sendStatsOnStuckOnMoon()
+	elseif anim == dialog06 then
+		sendStatsOnRetry()
 	elseif CurrentHedgehog ~= hero.gear and anim ~= dialog03 then
 		AnimSwitchHog(hero.gear)
 	elseif anim == dialog03 then
@@ -743,7 +745,8 @@
 function sendStatsOnRopedToMoon()
 	if ropedToMoon ~= 2 then
 		ropedToMoon = 2
-		SendStat(siGameResult, loc("This is the wrong way!"))
+		SendStat(siGameResult, loc("You have violated PAotH regulations!"))
+		SendStat(siCustomAchievement, loc("You have triggered the secret Do-Not-Rope-to-the-Moon Defense System!"))
 		SendStat(siCustomAchievement, loc("Collect the crate with the flying saucer!"))
 		SendStat(siCustomAchievement, loc("Fly to the moon."))
 		sendSimpleTeamRankings({teamC.name})