share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice01.lua
branchspacecampaign
changeset 9578 16139270448f
parent 9574 da3d39667881
child 9582 bf314b2258b3
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice01.lua	Mon Aug 26 02:08:11 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice01.lua	Mon Aug 26 06:13:36 2013 +0300
@@ -11,6 +11,7 @@
 
 HedgewarsScriptLoad("/Scripts/Locale.lua")
 HedgewarsScriptLoad("/Scripts/Animate.lua")
+HedgewarsScriptLoad("/Missions/Campaign/A_Space_Adventure/global_functions.lua")
 
 ----------------- VARIABLES --------------------
 -- globals
@@ -500,7 +501,7 @@
 -------------- Other Functions -------------------
 
 function actionsOnWin()
-	SaveCampaignVar("IcePlanetPartAcquired", "true")	
+	saveCompletedStatus(4)	
 	SendStat('siGameResult', loc("Congratulations, you got the part!")) --1
 	SendStat('siCustomAchievement', loc("At the end of the game your health was ")..GetHealth(hero.gear)) --11
 	-- maybe add number of tries for each part?