share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/epil.lua
changeset 13745 2bb7141496a9
parent 13588 141cdfe0f3ca
child 13755 110d6c1e817f
equal deleted inserted replaced
13744:b3b55b03d499 13745:2bb7141496a9
   482   return true
   482   return true
   483 end
   483 end
   484 
   484 
   485 function onNewTurn()
   485 function onNewTurn()
   486   if AnimInProgress() then
   486   if AnimInProgress() then
   487     TurnTimeLeft = -1
   487     SetTurnTimeLeft(cMaxTurnTime)
   488     return
   488     return
   489   end
   489   end
   490   -- Don't allow player to play with traitor, except when it is the final hog left
   490   -- Don't allow player to play with traitor, except when it is the final hog left
   491   if CurrentHedgehog == traitor and not IsEveryoneExceptTraitorDead() then
   491   if CurrentHedgehog == traitor and not IsEveryoneExceptTraitorDead() then
   492     EndTurn(true)
   492     EndTurn(true)
   493   else
   493   else
   494     TurnTimeLeft = -1
   494     SetTurnTimeLeft(cMaxTurnTime)
   495   end
   495   end
   496 end
   496 end
   497 
   497 
   498 function onPrecise()
   498 function onPrecise()
   499   if GameTime > 2500 then
   499   if GameTime > 2500 then