share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/shadow.lua
changeset 7211 a1e9335f1d50
parent 7203 37661b2a7b64
child 7213 fce7de71742f
equal deleted inserted replaced
7209:f1976889e1a7 7211:a1e9335f1d50
   744 end
   744 end
   745 
   745 
   746 function DoDead()
   746 function DoDead()
   747   AddCaption("...and so the cyborgs took over the world...")
   747   AddCaption("...and so the cyborgs took over the world...")
   748   stage = loseStage
   748   stage = loseStage
   749   if ramonHidden then
       
   750     RestoreHog(ramon)
       
   751   end
       
   752   if spikyHidden then
       
   753     RestoreHog(spiky)
       
   754   end
       
   755   SetHealth(dense, 0)
       
   756   SetHealth(leaks, 0)
       
   757   SetHealth(ramon, 0)
       
   758   SetHealth(spiky, 0)
       
   759   TurnTimeLeft = 0
   749   TurnTimeLeft = 0
       
   750   ParseCommand('teamgone Natives')
   760 end
   751 end
   761 
   752 
   762 function CheckDenseDead()
   753 function CheckDenseDead()
   763   return denseDead and choice ~= choiceAttack 
   754   return denseDead and choice ~= choiceAttack 
   764 end
   755 end