share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua
branchspacecampaign
changeset 9326 689f591aa226
parent 9310 1469147c110f
child 9328 811574013fed
equal deleted inserted replaced
9324:98368198a75d 9326:689f591aa226
   290 end
   290 end
   291 
   291 
   292 function moonLanding(gear)
   292 function moonLanding(gear)
   293 	WriteLnToConsole("MOON LANDING, HOORAY!")
   293 	WriteLnToConsole("MOON LANDING, HOORAY!")
   294 	AnimCaption(hero.gear,loc("Welcome to the moon!"))
   294 	AnimCaption(hero.gear,loc("Welcome to the moon!"))
   295 	SaveCampaignVar("CosmosCheckPoint", "4")
   295 	if checkPointReached ~= 5 then
   296 	SaveCampaignVar("UnlockedMissions", "2")	
   296 		SaveCampaignVar("CosmosCheckPoint", "4")
       
   297 		SaveCampaignVar("HeroHealth",GetHealth(hero.gear))
       
   298 	end
       
   299 	SaveCampaignVar("UnlockedMissions", "2")
   297 	SaveCampaignVar("Mission1", "2")
   300 	SaveCampaignVar("Mission1", "2")
   298 	SaveCampaignVar("Mission2", "1")
   301 	SaveCampaignVar("Mission2", "1")
   299 	EndGame()
   302 	EndGame()
   300 end
   303 end
   301 
   304