share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit03.lua
changeset 13740 2bb7141496a9
parent 13685 09ea1faf97ca
child 14488 7bb7e5e54f70
equal deleted inserted replaced
13739:b3b55b03d499 13740:2bb7141496a9
   143 
   143 
   144 function onNewTurn()
   144 function onNewTurn()
   145 	if CurrentHedgehog == hero.gear then
   145 	if CurrentHedgehog == hero.gear then
   146 		if firstTurn then
   146 		if firstTurn then
   147 			-- Unique game rule in this mission: First turn has more time
   147 			-- Unique game rule in this mission: First turn has more time
   148 			TurnTimeLeft = 25000
   148 			SetTurnTimeLeft(25000)
   149 			-- Generous ready time on first turn to give more time to read
   149 			-- Generous ready time on first turn to give more time to read
   150 			ReadyTimeLeft = 35000
   150 			SetReadyTimeLeft(35000)
   151 			battleStarted = true
   151 			battleStarted = true
   152 			firstTurn = false
   152 			firstTurn = false
   153 		end
   153 		end
   154 		if lastWeaponUsed == amSkip then
   154 		if lastWeaponUsed == amSkip then
   155 			TurnTimeLeft = TurnTime + timeLeft
   155 			SetTurnTimeLeft(TurnTime + timeLeft)
   156 		end
   156 		end
   157 		timeLeft = 0
   157 		timeLeft = 0
   158 		heroTurns = heroTurns + 1
   158 		heroTurns = heroTurns + 1
   159 	end
   159 	end
   160 end
   160 end