share/hedgewars/Data/Missions/Training/Basic_Training_-_Grenade.lua
changeset 14464 ead8928a59f8
parent 14388 cf49fac6e88a
child 14480 208359558642
equal deleted inserted replaced
14463:bd1db668b7c0 14464:ead8928a59f8
   187 		ShowMission(loc("Basic Grenade Training"), loc("Final Targets"), loc("Good job! Now destroy the final targets to finish the training.").."|"..
   187 		ShowMission(loc("Basic Grenade Training"), loc("Final Targets"), loc("Good job! Now destroy the final targets to finish the training.").."|"..
   188 		ctrl,
   188 		ctrl,
   189 		2, 7000)
   189 		2, 7000)
   190 		spawnTargets()
   190 		spawnTargets()
   191 	elseif gamePhase == 6 then
   191 	elseif gamePhase == 6 then
       
   192 		SaveMissionVar("Won", "true")
   192 		ShowMission(loc("Basic Grenade Training"), loc("Training complete!"), loc("Congratulations!"), 0, 0)
   193 		ShowMission(loc("Basic Grenade Training"), loc("Training complete!"), loc("Congratulations!"), 0, 0)
   193 		SetInputMask(0)
   194 		SetInputMask(0)
   194 		AddAmmo(CurrentHedgehog, amGrenade, 0)
   195 		AddAmmo(CurrentHedgehog, amGrenade, 0)
   195 		if shotsFired > maxTargets then
   196 		if shotsFired > maxTargets then
   196 			flawless = false
   197 			flawless = false