share/hedgewars/Data/Missions/Training/SniperRifle.lua
changeset 4493 45db8e97d282
parent 4350 cdb3d7a39fa2
child 4506 37744d5c877e
--- a/share/hedgewars/Data/Missions/Training/SniperRifle.lua	Wed Dec 08 15:10:38 2010 -0500
+++ b/share/hedgewars/Data/Missions/Training/SniperRifle.lua	Wed Dec 08 22:35:29 2010 +0100
@@ -174,7 +174,7 @@
 	AddTeam(loc(teamname), 14483456, "Simple", "Island", "Default")
 	-- And add a hog to it
 	player = AddHog(loc(hogname), 0, 1, "Sniper")
-	SetGearPosition(player, 602, 1465);
+	SetGearPosition(player, 602, 1465)
 end
 
 -- This function is called when the round starts
@@ -190,7 +190,7 @@
 	-- A negative icon parameter (-n) represents the n-th weapon icon
 	-- A positive icon paramter (n) represents the (n+1)-th mission icon
 	-- A timeframe of 0 is replaced with the default time to show.
-	ShowMission(loc(caption), loc(subcaption), loc(goal), -amSniperRifle, 0);
+	ShowMission(loc(caption), loc(subcaption), loc(goal), -amSniperRifle, 0)
 end
 
 -- This function is called every game tick.
@@ -215,9 +215,9 @@
 	if TurnTimeLeft == 1 and score < score_goal then
 		game_lost = true
 		-- ... and show a short message.
-		ShowMission(loc(caption), loc(subcaption), loc(timeout), -amSkip, 0);
+		ShowMission(loc(caption), loc(subcaption), loc(timeout), -amSkip, 0)
 		-- How about killing our poor hog due to his poor performance?
-		SetHealth(player, 0);
+		SetHealth(player, 0)
 		-- Just to be sure set the goal time to 1 ms
 		time_goal = 1
 	end
@@ -381,7 +381,7 @@
 		else
 			if not game_lost then
 			-- Otherwise show that the goal was accomplished
-			ShowMission(loc(caption), loc(subcaption), loc(success), 0, 0);
+			ShowMission(loc(caption), loc(subcaption), loc(success), 0, 0)
 			-- Also let the hogs shout "victory!"
 			PlaySound(sndVictory)
 			-- Save the time left so we may keep it.