share/hedgewars/Data/Missions/Challenge/Basic_Training_-_Sniper_Rifle.lua
changeset 14464 ead8928a59f8
parent 14401 6c21bd8547dd
child 14475 2113296b7a29
equal deleted inserted replaced
14463:bd1db668b7c0 14464:ead8928a59f8
   382 				spawnTarget(3480,1200)
   382 				spawnTarget(3480,1200)
   383 			end
   383 			end
   384 		else
   384 		else
   385 			if not game_lost then
   385 			if not game_lost then
   386 			-- Victory!
   386 			-- Victory!
       
   387 			SaveMissionVar("Won", "true")
   387 			AddCaption(loc("Victory!"), capcolDefault, capgrpGameState)
   388 			AddCaption(loc("Victory!"), capcolDefault, capgrpGameState)
   388 			ShowMission(loc("Sniper Training"), loc("Aiming Practice"), loc("Congratulations! You've eliminated all targets|within the allowed time frame."), 0, 0)
   389 			ShowMission(loc("Sniper Training"), loc("Aiming Practice"), loc("Congratulations! You've eliminated all targets|within the allowed time frame."), 0, 0)
   389 			-- Also let the hogs shout "victory!"
   390 			-- Also let the hogs shout "victory!"
   390 			PlaySound(sndVictory, CurrentHedgehog)
   391 			PlaySound(sndVictory, CurrentHedgehog)
   391 			FollowGear(CurrentHedgehog)
   392 			FollowGear(CurrentHedgehog)