share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/shadow.lua
changeset 10290 42efccba0711
parent 9306 c9978ada9a3d
child 12049 030464f34d47
equal deleted inserted replaced
10289:c3a77ff02a23 10290:42efccba0711
   662 function DoWeaklingsKilled()
   662 function DoWeaklingsKilled()
   663   SetGearMessage(CurrentHedgehog, 0)
   663   SetGearMessage(CurrentHedgehog, 0)
   664   AddAnim(stronglingsAnim)
   664   AddAnim(stronglingsAnim)
   665   AddFunction({func = AfterStronglingsAnim, args = {}})
   665   AddFunction({func = AfterStronglingsAnim, args = {}})
   666   stage = interWeakStage
   666   stage = interWeakStage
   667   ParseCommand("teamgone " .. loc("Weaklings"))
   667   DismissTeam(loc("Weaklings"))
   668 end
   668 end
   669 
   669 
   670 function CheckRefuse()
   670 function CheckRefuse()
   671   return GetX(dense) > 1400 and StoppedGear(dense)
   671   return GetX(dense) > 1400 and StoppedGear(dense)
   672 end
   672 end
   821 
   821 
   822 function DoDead()
   822 function DoDead()
   823   AddCaption(loc("...and so the cyborgs took over the world..."))
   823   AddCaption(loc("...and so the cyborgs took over the world..."))
   824   stage = loseStage
   824   stage = loseStage
   825   TurnTimeLeft = 0
   825   TurnTimeLeft = 0
   826   ParseCommand("teamgone " .. loc("Natives"))
   826   DismissTeam(loc("Natives"))
   827 end
   827 end
   828 
   828 
   829 function CheckDenseDead()
   829 function CheckDenseDead()
   830   return denseDead and choice ~= choiceAttack 
   830   return denseDead and choice ~= choiceAttack 
   831 end
   831 end