share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua
changeset 14951 c173fae0a223
parent 14928 4c5fb1ee75b7
child 15068 6f51c75994a4
equal deleted inserted replaced
14950:ef3352839616 14951:c173fae0a223
    51 	hog = AddMissionHog(100)
    51 	hog = AddMissionHog(100)
    52 	SetGearPosition(hog, 1485, 2001)
    52 	SetGearPosition(hog, 1485, 2001)
    53 	SetEffect(hog, heResurrectable, 1)
    53 	SetEffect(hog, heResurrectable, 1)
    54 
    54 
    55 	SendHealthStatsOff()
    55 	SendHealthStatsOff()
       
    56 	SendRankingStatsOff()
    56 end
    57 end
    57 
    58 
    58 function onGearResurrect(gear, vGear)
    59 function onGearResurrect(gear, vGear)
    59 	if gear == hog then
    60 	if gear == hog then
    60 		flawless = false
    61 		flawless = false
   226 		else
   227 		else
   227 			PlaySound(sndVictory, hog)
   228 			PlaySound(sndVictory, hog)
   228 		end
   229 		end
   229 		SendStat(siCustomAchievement, loc("Good job!"))
   230 		SendStat(siCustomAchievement, loc("Good job!"))
   230 		SendStat(siGameResult, loc("You have completed the Basic Bazooka Training!"))
   231 		SendStat(siGameResult, loc("You have completed the Basic Bazooka Training!"))
   231 		SendStat(siPlayerKills, "0", GetHogTeamName(hog))
       
   232 		EndGame()
   232 		EndGame()
   233 		SetState(hog, gstWinner)
   233 		SetState(hog, gstWinner)
   234 		gameOver = true
   234 		gameOver = true
   235 	end
   235 	end
   236 	gamePhase = gamePhase + 1
   236 	gamePhase = gamePhase + 1