share/hedgewars/Data/Missions/Training/Basic_Training_-_Grenade.lua
changeset 14501 208359558642
parent 14485 ead8928a59f8
child 14560 c36d67d6366d
equal deleted inserted replaced
14500:4e5280a9e782 14501:208359558642
    37 	WaterRise = 0
    37 	WaterRise = 0
    38 	HealthDecrease = 0
    38 	HealthDecrease = 0
    39 
    39 
    40 	------ TEAM LIST ------
    40 	------ TEAM LIST ------
    41 
    41 
    42 	AddTeam(loc("Grenade Team"), -1, "Flower", "Earth", "Default", "cm_grenade")
    42 	AddMissionTeam(-1)
    43 	hog = AddHog(loc("Greenhorn"), 0, 1, "NoHat")
    43 	hog = AddMissionHog(1)
    44 	SetGearPosition(hog, 570, 157)
    44 	SetGearPosition(hog, 570, 157)
    45 	SetEffect(hog, heResurrectable, 1)
    45 	SetEffect(hog, heResurrectable, 1)
    46 
    46 
    47 	SendHealthStatsOff()
    47 	SendHealthStatsOff()
    48 end
    48 end
   201 		else
   201 		else
   202 			PlaySound(sndVictory, hog)
   202 			PlaySound(sndVictory, hog)
   203 		end
   203 		end
   204 		SendStat(siCustomAchievement, loc("Good job!"))
   204 		SendStat(siCustomAchievement, loc("Good job!"))
   205 		SendStat(siGameResult, loc("You have completed the Basic Grenade Training!"))
   205 		SendStat(siGameResult, loc("You have completed the Basic Grenade Training!"))
   206 		SendStat(siPlayerKills, "0", loc("Grenade Team"))
   206 		SendStat(siPlayerKills, "0", GetHogTeamName(hog))
   207 		EndGame()
   207 		EndGame()
   208 		gameOver = true
   208 		gameOver = true
   209 	end
   209 	end
   210 	gamePhase = gamePhase + 1
   210 	gamePhase = gamePhase + 1
   211 end
   211 end