share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua
branchspacecampaign
changeset 9484 a63307092bc6
parent 9467 483a73697535
child 9572 278cff2a965f
equal deleted inserted replaced
9482:1c0f330f28f8 9484:a63307092bc6
   331 end
   331 end
   332 
   332 
   333 function fruitPlanetLanding(gear)
   333 function fruitPlanetLanding(gear)
   334 	if checkPointReached < 5 then
   334 	if checkPointReached < 5 then
   335 		AddAnim(dialog06)
   335 		AddAnim(dialog06)
       
   336 	else		
       
   337 		AnimCaption(hero.gear,loc("Welcome to the fruit planet!"))
       
   338 		SaveCampaignVar("Planet", "fruitPlanet")
       
   339 		SaveCampaignVar("UnlockedMissions", "2")
       
   340 		SaveCampaignVar("Mission1", "3")
       
   341 		SaveCampaignVar("Mission2", "1")
       
   342 		EndGame()
   336 	end
   343 	end
   337 end
   344 end
   338 
   345 
   339 function desertPlanetLanding(gear)
   346 function desertPlanetLanding(gear)
   340 	if checkPointReached < 5 then
   347 	if checkPointReached < 5 then