share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua
changeset 12534 34a91e2b927e
parent 12533 f8801c72a6c8
child 12537 66566cfe0a7e
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua	Tue Sep 26 03:58:23 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua	Tue Sep 26 04:56:19 2017 +0200
@@ -380,6 +380,7 @@
 	AnimCaption(hero.gear, loc("Congrats! You destroyed the enemy!"), 6000)
 	SendStat(siCustomAchievement, loc("You have eliminated the whole evil team. You're pretty tough!"))
 
+	SaveCampaignVar("ProfDiedOnMoon", "1")
 	victory()
 end
 
@@ -404,6 +405,7 @@
 	DismissTeam(teamB.name)
 	AnimWait(hero.gear,5000)
 
+	SaveCampaignVar("ProfDiedOnMoon", "1")
 	victory()
 end
 
@@ -417,6 +419,7 @@
 	SendStat(siCustomAchievement, loc("You have eliminated the evil minions."))
 	SendStat(siCustomAchievement, loc("You drove Professor Hogevil away."))
 
+	SaveCampaignVar("ProfDiedOnMoon", "0")
 	victory()
 end