share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice02.lua
changeset 13814 25de751feb02
parent 13813 8d1c54c684a8
child 13815 bf8c454a9f93
equal deleted inserted replaced
13813:8d1c54c684a8 13814:25de751feb02
   279 			SetVisualGearValues(wp.gear, wp.x,wp.y, 20, 200, 0, 0, 100, radius, 3, GREEN)
   279 			SetVisualGearValues(wp.gear, wp.x,wp.y, 20, 200, 0, 0, 100, radius, 3, GREEN)
   280 			wp.gear2 = AddVisualGear(1,1,vgtCircle,1,true)
   280 			wp.gear2 = AddVisualGear(1,1,vgtCircle,1,true)
   281 			SetVisualGearValues(wp.gear2, wp.x,wp.y, 20, 200, 0, 0, 100, radius - 6, 2, GREEN)
   281 			SetVisualGearValues(wp.gear2, wp.x,wp.y, 20, 200, 0, 0, 100, radius - 6, 2, GREEN)
   282 			-- Give extra time, if needed
   282 			-- Give extra time, if needed
   283 			if TurnTimeLeft <= 16000 then
   283 			if TurnTimeLeft <= 16000 then
   284 				SetTurnTimeLeft(TurnTimeLeft + 6000)
       
   285 				totalTime = totalTime + 6000
       
   286 				if currentWaypoint ~= 1 then
   284 				if currentWaypoint ~= 1 then
       
   285 					SetTurnTimeLeft(TurnTimeLeft + 6000)
       
   286 					totalTime = totalTime + 6000
   287 					PlaySound(sndExtraTime)
   287 					PlaySound(sndExtraTime)
   288 					AnimCaption(hero.gear, loc("6 more seconds added to the clock"), 4000)
   288 					AnimCaption(hero.gear, loc("6 more seconds added to the clock"), 4000)
   289 				end
   289 				end
   290 			end
   290 			end
   291 		end
   291 		end