share/hedgewars/Data/Missions/Challenge/Basic_Training_-_Sniper_Rifle.lua
changeset 12730 2c4a07eb2112
parent 12729 4e0e59255856
child 12731 2b0a4a4b1ba2
equal deleted inserted replaced
12729:4e0e59255856 12730:2c4a07eb2112
   372 				AddCaption(loc("Last Target!"));
   372 				AddCaption(loc("Last Target!"));
   373 				spawnTarget(3480,1200)
   373 				spawnTarget(3480,1200)
   374 			end
   374 			end
   375 		else
   375 		else
   376 			if not game_lost then
   376 			if not game_lost then
   377 			-- Otherwise show that the goal was accomplished
   377 			-- Victory!
       
   378 			AddCaption(loc("Victory!"), 0xFFFFFFFF, capgrpGameState)
   378 			ShowMission(loc("Sniper Training"), loc("Aiming Practice"), loc("Congratulations! You've eliminated all targets|within the allowed time frame."), 0, 0)
   379 			ShowMission(loc("Sniper Training"), loc("Aiming Practice"), loc("Congratulations! You've eliminated all targets|within the allowed time frame."), 0, 0)
   379 			-- Also let the hogs shout "victory!"
   380 			-- Also let the hogs shout "victory!"
   380 			PlaySound(sndVictory)
   381 			PlaySound(sndVictory, CurrentHedgehog)
       
   382 			FollowGear(CurrentHedgehog)
       
   383 
       
   384 			-- Disable hog controls
       
   385 			SetInputMask(0)
       
   386 			AddAmmo(CurrentHedgehog, amSniperRifle, 0)
       
   387 
   381 			-- Save the time left so we may keep it.
   388 			-- Save the time left so we may keep it.
   382 			time_goal = TurnTimeLeft
   389 			time_goal = TurnTimeLeft
   383 			end
   390 			end
   384 		end
   391 		end
   385 	end
   392 	end