share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua
changeset 13742 2bb7141496a9
parent 13583 141cdfe0f3ca
child 13752 110d6c1e817f
equal deleted inserted replaced
13741:b3b55b03d499 13742:2bb7141496a9
   243 
   243 
   244 function onNewTurn()
   244 function onNewTurn()
   245 	-- rounds start if hero got his weapons or got near the enemies
   245 	-- rounds start if hero got his weapons or got near the enemies
   246 	if CurrentHedgehog == hero.gear then
   246 	if CurrentHedgehog == hero.gear then
   247 		if not weaponsAcquired and not battleZoneReached then
   247 		if not weaponsAcquired and not battleZoneReached then
   248 			TurnTimeLeft = -1
   248 			SetTurnTimeLeft(cMaxTurnTime)
   249 		end
   249 		end
   250 	elseif CurrentHedgehog == minion1.gear or CurrentHedgehog == minion2.gear or CurrentHedgehog == minion3.gear then
   250 	elseif CurrentHedgehog == minion1.gear or CurrentHedgehog == minion2.gear or CurrentHedgehog == minion3.gear then
   251 		if not battleZoneReached then
   251 		if not battleZoneReached then
   252 			EndTurn(true)
   252 			EndTurn(true)
   253 		elseif weaponsAcquired and not battleZoneReached and afterDialog02 then
   253 		elseif weaponsAcquired and not battleZoneReached and afterDialog02 then