share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/ice02.lua
branchspacecampaign
changeset 9459 8c653c0dd332
parent 9457 934f4d8370f1
child 9461 0058a9863724
equal deleted inserted replaced
9457:934f4d8370f1 9459:8c653c0dd332
    84 local wp = 0
    84 local wp = 0
    85 function onGameStart()
    85 function onGameStart()
    86 	AnimWait(hero.gear, 3000)
    86 	AnimWait(hero.gear, 3000)
    87 	FollowGear(hero.gear)
    87 	FollowGear(hero.gear)
    88 	
    88 	
    89 	AddAmmo(hero.gear, amJetpack, 3)
    89 	AddAmmo(hero.gear, amJetpack, 2)
    90 	
    90 	
    91 	-- place a waypoint
    91 	-- place a waypoint
    92 	placeNextWaypoint()
    92 	placeNextWaypoint()
    93 	
    93 	
    94 	SendHealthStatsOff()
    94 	SendHealthStatsOff()
   123 		SetVisualGearValues(wp.gear, wp.x,wp.y, 20, 200, 0, 0, 100, radius, 3, 0xff0000ff)
   123 		SetVisualGearValues(wp.gear, wp.x,wp.y, 20, 200, 0, 0, 100, radius, 3, 0xff0000ff)
   124 		-- add bonus time and "fuel"		
   124 		-- add bonus time and "fuel"		
   125 		WriteLnToConsole("Before "..TurnTimeLeft)
   125 		WriteLnToConsole("Before "..TurnTimeLeft)
   126 		if currentWaypoint % 2 == 0 then
   126 		if currentWaypoint % 2 == 0 then
   127 			AddAmmo(hero.gear, amJetpack, GetAmmoCount(hero.gear, amJetpack)+1)
   127 			AddAmmo(hero.gear, amJetpack, GetAmmoCount(hero.gear, amJetpack)+1)
   128 			TurnTimeLeft = TurnTimeLeft + 10000		
   128 			if TurnTimeLeft <= 10000 then
       
   129 				TurnTimeLeft = TurnTimeLeft + 8000
       
   130 			end		
   129 		else
   131 		else
   130 			TurnTimeLeft = TurnTimeLeft + 8000
   132 			if TurnTimeLeft <= 7000 then
       
   133 				TurnTimeLeft = TurnTimeLeft + 6000
       
   134 			end
   131 		end		
   135 		end		
   132 		WriteLnToConsole("After "..TurnTimeLeft)
   136 		WriteLnToConsole("After "..TurnTimeLeft)
   133 		radius = radius - 4
   137 		radius = radius - 4
   134 		currentWaypoint = currentWaypoint + 1
   138 		currentWaypoint = currentWaypoint + 1
   135 		return true
   139 		return true