share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice02.lua
changeset 13740 2bb7141496a9
parent 13583 141cdfe0f3ca
child 13813 8d1c54c684a8
equal deleted inserted replaced
13739:b3b55b03d499 13740:2bb7141496a9
   260 			if vgear ~= nil then
   260 			if vgear ~= nil then
   261 				SetVisualGearValues(vgear,nil,nil,nil,nil,nil,amJetpack)
   261 				SetVisualGearValues(vgear,nil,nil,nil,nil,nil,amJetpack)
   262 			end
   262 			end
   263 			local message 
   263 			local message 
   264 			if TurnTimeLeft <= 22000 then
   264 			if TurnTimeLeft <= 22000 then
   265 				TurnTimeLeft = TurnTimeLeft + 8000
   265 				SetTurnTimeLeft(TurnTimeLeft + 8000)
   266 				totalTime = totalTime + 8000
   266 				totalTime = totalTime + 8000
   267 				PlaySound(sndExtraTime)
   267 				PlaySound(sndExtraTime)
   268 				message = loc("Got 1 more saucer and 8 more seconds added to the clock")
   268 				message = loc("Got 1 more saucer and 8 more seconds added to the clock")
   269 			else
   269 			else
   270 				message = loc("Got 1 more saucer")
   270 				message = loc("Got 1 more saucer")
   271 			end
   271 			end
   272 			AnimCaption(hero.gear, message, 4000)
   272 			AnimCaption(hero.gear, message, 4000)
   273 		else
   273 		else
   274 			SetVisualGearValues(wp.gear, wp.x,wp.y, 20, 200, 0, 0, 100, radius, 3, GREEN)
   274 			SetVisualGearValues(wp.gear, wp.x,wp.y, 20, 200, 0, 0, 100, radius, 3, GREEN)
   275 			if TurnTimeLeft <= 16000 then
   275 			if TurnTimeLeft <= 16000 then
   276 				TurnTimeLeft = TurnTimeLeft + 6000
   276 				SetTurnTimeLeft(TurnTimeLeft + 6000)
   277 				totalTime = totalTime + 6000
   277 				totalTime = totalTime + 6000
   278 				if currentWaypoint ~= 1 then
   278 				if currentWaypoint ~= 1 then
   279 					PlaySound(sndExtraTime)
   279 					PlaySound(sndExtraTime)
   280 					AnimCaption(hero.gear, loc("6 more seconds added to the clock"), 4000)
   280 					AnimCaption(hero.gear, loc("6 more seconds added to the clock"), 4000)
   281 				end
   281 				end