share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua
changeset 9760 395ca7fe6362
parent 9758 3b8058b251b8
child 9782 6c3cad32d4f4
equal deleted inserted replaced
9759:0efa9672c000 9760:395ca7fe6362
   391 	end
   391 	end
   392 	return false
   392 	return false
   393 end
   393 end
   394 
   394 
   395 -------------- ACTIONS ------------------
   395 -------------- ACTIONS ------------------
       
   396 ended = false
   396 
   397 
   397 function heroDeath(gear)
   398 function heroDeath(gear)
   398 	SendStat(siGameResult, loc("Hog Solo lost, try again!"))
   399 	if not ended then
   399 	SendStat(siCustomAchievement, loc("To win the game, Hog Solo has to get the bottom crates and come back to the surface"))
   400 		SendStat(siGameResult, loc("Hog Solo lost, try again!"))
   400 	SendStat(siCustomAchievement, loc("You can use the other 2 hogs to assist you"))
   401 		SendStat(siCustomAchievement, loc("To win the game, Hog Solo has to get the bottom crates and come back to the surface"))
   401 	SendStat(siCustomAchievement, loc("Do not destroy the crates"))
   402 		SendStat(siCustomAchievement, loc("You can use the other 2 hogs to assist you"))
   402 	if tookPartInBattle then
   403 		SendStat(siCustomAchievement, loc("Do not destroy the crates"))
   403 		SendStat(siCustomAchievement, loc("You'll have to eliminate the Strawberry Assassins at the end"))
   404 		if tookPartInBattle then
   404 	else
   405 			SendStat(siCustomAchievement, loc("You'll have to eliminate the Strawberry Assassins at the end"))
   405 		SendStat(siCustomAchievement, loc("You'll have to eliminate Captain Lime at the end"))
   406 		else
   406 	SendStat(siCustomAchievement, loc("Don't eliminate Captain Lime before collecting the last crate!"))
   407 			SendStat(siCustomAchievement, loc("You'll have to eliminate Captain Lime at the end"))
   407 	end
   408 		SendStat(siCustomAchievement, loc("Don't eliminate Captain Lime before collecting the last crate!"))
   408 	SendStat(siPlayerKills,'0',teamA.name)
   409 		end
   409 	EndGame()
   410 		SendStat(siPlayerKills,'0',teamA.name)
       
   411 		EndGame()
       
   412 		ended = true
       
   413 	end
   410 end
   414 end
   411 
   415 
   412 function deviceCrates(gear)
   416 function deviceCrates(gear)
   413 	TurnTimeLeft = 0
   417 	TurnTimeLeft = 0
   414 	if not tookPartInBattle then
   418 	if not tookPartInBattle then