share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert02.lua
changeset 14980 f359d8f86501
parent 14898 4596357d002d
child 15002 3ed1cbd31754
equal deleted inserted replaced
14979:4406994969c3 14980:f359d8f86501
    20 }
    20 }
    21 -- For an achievement/award (see below)
    21 -- For an achievement/award (see below)
    22 local cratesCollected = 0
    22 local cratesCollected = 0
    23 local totalCrates = 0
    23 local totalCrates = 0
    24 local damageTaken = false
    24 local damageTaken = false
       
    25 local animStarted = false
    25 local record
    26 local record
    26 -- health crates
    27 -- health crates
    27 healthX = 565
    28 healthX = 565
    28 health1Y = 1400
    29 health1Y = 1400
    29 health2Y = 850
    30 health2Y = 850
   110 
   111 
   111 	SpawnHealthCrate(healthX, health1Y)
   112 	SpawnHealthCrate(healthX, health1Y)
   112 	SpawnHealthCrate(healthX, health2Y)
   113 	SpawnHealthCrate(healthX, health2Y)
   113 
   114 
   114 	SendHealthStatsOff()
   115 	SendHealthStatsOff()
   115 	AddAnim(dialog01)
       
   116 end
   116 end
   117 
   117 
   118 function onNewTurn()
   118 function onNewTurn()
       
   119 	if not animStarted then
       
   120 		AddAnim(dialog01)
       
   121 		animStarted = true
       
   122 	end
   119 	SetWeapon(amRope)
   123 	SetWeapon(amRope)
   120 	if TotalRounds >= 0 and record ~= nil then
   124 	if TotalRounds >= 0 and record ~= nil then
   121 		SetTeamLabel(teamA.name, tostring(TotalRounds))
   125 		SetTeamLabel(teamA.name, tostring(TotalRounds))
   122 	end
   126 	end
   123 end
   127 end