share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/epil.lua
changeset 13755 110d6c1e817f
parent 13745 2bb7141496a9
child 14406 6c21bd8547dd
equal deleted inserted replaced
13754:0e8db74ec585 13755:110d6c1e817f
   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     SetTurnTimeLeft(cMaxTurnTime)
   487     SetTurnTimeLeft(MAX_TURN_TIME)
   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     SetTurnTimeLeft(cMaxTurnTime)
   494     SetTurnTimeLeft(MAX_TURN_TIME)
   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