share/hedgewars/Data/Missions/Challenge/User_Mission_-_RCPlane_Challenge.lua
changeset 14464 ead8928a59f8
parent 13750 110d6c1e817f
child 14475 2113296b7a29
equal deleted inserted replaced
14463:bd1db668b7c0 14464:ead8928a59f8
   405 			else
   405 			else
   406 				AddCaption(loc("Victory!"))
   406 				AddCaption(loc("Victory!"))
   407 				SendStat(siGameResult, loc("You have finished the challenge!"))
   407 				SendStat(siGameResult, loc("You have finished the challenge!"))
   408 				SendStat(siCustomAchievement, string.format(loc("You have used %d RC planes."), planesUsed))
   408 				SendStat(siCustomAchievement, string.format(loc("You have used %d RC planes."), planesUsed))
   409 			end
   409 			end
       
   410 			SaveMissionVar("Won", "true")
   410 		
   411 		
   411 			if(totalMissiles > 1) then
   412 			if(totalMissiles > 1) then
   412 				SendStat(siCustomAchievement, string.format(loc("You have dropped %d missiles."), totalMissiles))
   413 				SendStat(siCustomAchievement, string.format(loc("You have dropped %d missiles."), totalMissiles))
   413 			end
   414 			end
   414 
   415