share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua
changeset 12425 f9cbb896967b
parent 12345 b0293e4ef0de
child 13073 bd629a70b4a1
equal deleted inserted replaced
12424:b9cc405541c1 12425:f9cbb896967b
   225 -- We only use it to determine wheather our hog took damage in order to abort the mission.
   225 -- We only use it to determine wheather our hog took damage in order to abort the mission.
   226 function onGearDamage(gear, damage)
   226 function onGearDamage(gear, damage)
   227 	if GetGearType(gear) == gtHedgehog then
   227 	if GetGearType(gear) == gtHedgehog then
   228 		if not game_lost then
   228 		if not game_lost then
   229 			game_lost = true
   229 			game_lost = true
   230 			AddCaption(loc("You lose!", 0xFFFFFFFF, capgrpGameState))
   230 			AddCaption(loc("You lose!"), 0xFFFFFFFF, capgrpGameState)
   231 			ShowMission(loc("Bazooka Training") , loc("Aiming Practice"), loc("Oh no! You failed! Just try again."), -amSkip, 0)
   231 			ShowMission(loc("Bazooka Training") , loc("Aiming Practice"), loc("Oh no! You failed! Just try again."), -amSkip, 0)
   232 
   232 
   233 			time_goal = 1
   233 			time_goal = 1
   234 		end
   234 		end
   235 	end
   235 	end