share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua
changeset 13076 65a3b4bea459
parent 13073 bd629a70b4a1
child 13165 89a6b862e692
equal deleted inserted replaced
13075:730db0a3eb43 13076:65a3b4bea459
   242 		bazookaGears[gear] = nil
   242 		bazookaGears[gear] = nil
   243 		if bazookasInGame == 0 and GetAmmoCount(hog, amBazooka) == 0 then
   243 		if bazookasInGame == 0 and GetAmmoCount(hog, amBazooka) == 0 then
   244 			limitedAmmoReset = 20
   244 			limitedAmmoReset = 20
   245 			flawless = false
   245 			flawless = false
   246 		end
   246 		end
   247 	elseif gear == hog then
       
   248 		SendStat(siCustomAchievement, loc("Your hedgehog died."))
       
   249 		SendStat(siCustomAchievement, loc("Oh no! Just try again!"))
       
   250 		SendStat(siGameResult, loc("You lose!"))
       
   251 		SendStat(siPlayerKills, "0", loc("Bazooka Team"))
       
   252 		EndGame()
       
   253 		gameOver = true
       
   254 	end
   247 	end
   255 end
   248 end
   256 
   249 
   257 function onGearDamage(gear)
   250 function onGearDamage(gear)
   258 	if gear == hog then
   251 	if gear == hog then