share/hedgewars/Data/Missions/Scenario/User_Mission_-_Diver.lua
changeset 14469 ead8928a59f8
parent 14406 6c21bd8547dd
child 14487 d4aa64f51c9f
equal deleted inserted replaced
14468:bd1db668b7c0 14469:ead8928a59f8
    96 
    96 
    97 function onGearDelete(gear)
    97 function onGearDelete(gear)
    98 
    98 
    99 	if (gear == enemy) and (GameOver == false) then
    99 	if (gear == enemy) and (GameOver == false) then
   100 		ShowMission(loc("Diver"), loc("MISSION SUCCESSFUL"), loc("Congratulations!"), 0, 0)
   100 		ShowMission(loc("Diver"), loc("MISSION SUCCESSFUL"), loc("Congratulations!"), 0, 0)
       
   101 		SaveMissionVar("Won", "true")
   101 	elseif gear == player then
   102 	elseif gear == player then
   102 		ShowMission(loc("Diver"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0)		
   103 		ShowMission(loc("Diver"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0)		
   103 		GameOver = true
   104 		GameOver = true
   104 	end
   105 	end
   105 
   106