share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua
branchspacecampaign
changeset 9344 f8e7e9858a8c
parent 9342 51b5fffe3892
child 9445 7656a8cb4b13
equal deleted inserted replaced
9342:51b5fffe3892 9344:f8e7e9858a8c
   234 	end
   234 	end
   235 end
   235 end
   236 
   236 
   237 function onNewTurn()		
   237 function onNewTurn()		
   238 	-- rounds start if hero got his weapons or got near the enemies
   238 	-- rounds start if hero got his weapons or got near the enemies
   239 	WriteLnToConsole(GetX(professor.gear))
       
   240 	if not weaponsAcquired and not battleZoneReached and CurrentHedgehog ~= hero.gear then
   239 	if not weaponsAcquired and not battleZoneReached and CurrentHedgehog ~= hero.gear then
   241 		TurnTimeLeft = 0
   240 		TurnTimeLeft = 0
   242 	elseif weaponsAcquired and not battleZoneReached and CurrentHedgehog ~= hero.gear then
   241 	elseif weaponsAcquired and not battleZoneReached and CurrentHedgehog ~= hero.gear then
   243 		battleZoneReached = true
   242 		battleZoneReached = true
   244 		AddAnim(dialog04)
   243 		AddAnim(dialog04)