share/hedgewars/Data/Scripts/TargetPractice.lua
changeset 12424 b9cc405541c1
parent 12224 d62d6f8ebef1
child 12425 f9cbb896967b
equal deleted inserted replaced
12423:e9d2efe5763b 12424:b9cc405541c1
   220 		end
   220 		end
   221 
   221 
   222 		if GetGearType(gear) == gtHedgehog then
   222 		if GetGearType(gear) == gtHedgehog then
   223 			if not game_lost then
   223 			if not game_lost then
   224 				game_lost = true
   224 				game_lost = true
   225 				AddCaption(loc("You lose!", 0xFFFFFFFF, capgrpGameState))
   225 				AddCaption(loc("You lose!"), 0xFFFFFFFF, capgrpGameState)
   226 				ShowMission(params.missionTitle, loc("Aiming practice"), loc("Oh no! You failed! Just try again."), -amSkip, 0)
   226 				ShowMission(params.missionTitle, loc("Aiming practice"), loc("Oh no! You failed! Just try again."), -amSkip, 0)
   227 
   227 
   228 				SetHealth(player, 0)
   228 				SetHealth(player, 0)
   229 				time_goal = 1
   229 				time_goal = 1
   230 			end
   230 			end