share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua
changeset 14480 208359558642
parent 14464 ead8928a59f8
child 14928 4c5fb1ee75b7
equal deleted inserted replaced
14479:4e5280a9e782 14480:208359558642
    45 	WaterRise = 0
    45 	WaterRise = 0
    46 	HealthDecrease = 0
    46 	HealthDecrease = 0
    47 
    47 
    48 	------ TEAM LIST ------
    48 	------ TEAM LIST ------
    49 
    49 
    50 	AddTeam(loc("Bazooka Team"), -1, "Flower", "Earth", "Default", "hedgewars")
    50 	AddMissionTeam(-1)
    51 	hog = AddHog(loc("Greenhorn"), 0, 100, "NoHat")
    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 end
    56 end
   226 		else
   226 		else
   227 			PlaySound(sndVictory, hog)
   227 			PlaySound(sndVictory, hog)
   228 		end
   228 		end
   229 		SendStat(siCustomAchievement, loc("Good job!"))
   229 		SendStat(siCustomAchievement, loc("Good job!"))
   230 		SendStat(siGameResult, loc("You have completed the Basic Bazooka Training!"))
   230 		SendStat(siGameResult, loc("You have completed the Basic Bazooka Training!"))
   231 		SendStat(siPlayerKills, "0", loc("Bazooka Team"))
   231 		SendStat(siPlayerKills, "0", GetHogTeamName(hog))
   232 		EndGame()
   232 		EndGame()
   233 		gameOver = true
   233 		gameOver = true
   234 	end
   234 	end
   235 	gamePhase = gamePhase + 1
   235 	gamePhase = gamePhase + 1
   236 end
   236 end