share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/epil.lua
changeset 12364 5857936921ec
parent 12264 41542ed28fe4
child 12365 92b4bab79c26
equal deleted inserted replaced
12363:6ad1f86e0c81 12364:5857936921ec
    79 
    79 
    80 function AfterStartAnim()
    80 function AfterStartAnim()
    81   crate = SpawnHealthCrate(0, 0)
    81   crate = SpawnHealthCrate(0, 0)
    82   SetGearMessage(CurrentHedgehog, 0)
    82   SetGearMessage(CurrentHedgehog, 0)
    83   AddNewEvent(CheckCrateTaken, {}, DoCrateTaken, {}, 1)
    83   AddNewEvent(CheckCrateTaken, {}, DoCrateTaken, {}, 1)
    84   TurnTimeLeft = 0
    84   EndTurn(true)
    85   ShowMission(loc("Epilogue"), loc("That's all, folks!"),
    85   ShowMission(loc("Epilogue"), loc("That's all, folks!"),
    86     loc("You have successfully finished the campaign!").."|"..
    86     loc("You have successfully finished the campaign!").."|"..
    87     loc("If you wish to replay, there are other possible endings, too!").."|"..
    87     loc("If you wish to replay, there are other possible endings, too!").."|"..
    88     loc("You can practice moving around and using utilities in this mission.|However, it will never end!"), 1, 0)
    88     loc("You can practice moving around and using utilities in this mission.|However, it will never end!"), 1, 0)
    89   SaveCampaignVar("Progress", "10")
    89   SaveCampaignVar("Progress", "10")
   425   if AnimInProgress() then
   425   if AnimInProgress() then
   426     TurnTimeLeft = -1
   426     TurnTimeLeft = -1
   427     return
   427     return
   428   end
   428   end
   429   if CurrentHedgehog == traitor then
   429   if CurrentHedgehog == traitor then
   430     TurnTimeLeft = 0
   430     EndTurn(true)
   431   else
   431   else
   432     TurnTimeLeft = -1
   432     TurnTimeLeft = -1
   433   end
   433   end
   434 end
   434 end
   435 
   435