share/hedgewars/Data/Missions/Training/User_Mission_-_Diver.lua
changeset 4770 375d819fca93
parent 4674 6c9d96d06800
child 5325 261b79ba22b1
equal deleted inserted replaced
4767:4ee4a49549e2 4770:375d819fca93
    85 end
    85 end
    86 
    86 
    87 function onGearDelete(gear)
    87 function onGearDelete(gear)
    88 
    88 
    89 	if (gear == enemy) and (GameOver == false) then
    89 	if (gear == enemy) and (GameOver == false) then
    90 		ShowMission(loc("Operation Diver"), loc("MISSION SUCCESS"), loc("Congratulations!"), 0, 0)
    90 		ShowMission(loc("Operation Diver"), loc("MISSION SUCCESSFUL"), loc("Congratulations!"), 0, 0)
    91 	elseif gear == player then
    91 	elseif gear == player then
    92 		ShowMission(loc("Operation Diver"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0)		
    92 		ShowMission(loc("Operation Diver"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0)		
    93 		GameOver = true
    93 		GameOver = true
    94 	end
    94 	end
    95 
    95