share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/shadow.lua
changeset 15029 09c63d4bcf53
parent 15023 9a8c678df7d9
child 15030 2e89487540d8
equal deleted inserted replaced
15028:20c80919d97d 15029:09c63d4bcf53
   807   end
   807   end
   808   if GetX(dense) < 1300 then
   808   if GetX(dense) < 1300 then
   809     -- When close to cyborg, wait for a short time before accepting,
   809     -- When close to cyborg, wait for a short time before accepting,
   810     -- to allow player to attack with melee weapons.
   810     -- to allow player to attack with melee weapons.
   811     checkAcceptTimer = checkAcceptTimer + 1
   811     checkAcceptTimer = checkAcceptTimer + 1
   812     if checkAcceptTimer > 2000 and StoppedGear(dense) then
   812     if checkAcceptTimer > 2000 and denseDead == false and StoppedGear(dense) then
   813       return true
   813       return true
   814     end
   814     end
   815   else
   815   else
   816     checkAcceptTimer = 0
   816     checkAcceptTimer = 0
   817   end
   817   end
   824   end
   824   end
   825   choice = choiceAccept
   825   choice = choiceAccept
   826 end
   826 end
   827 
   827 
   828 function CheckConfront()
   828 function CheckConfront()
   829   return cyborgAttacked and GetHealth(dense) and StoppedGear(dense)
   829   return cyborgAttacked and denseDead == false and StoppedGear(dense)
   830 end
   830 end
   831 
   831 
   832 function DoConfront()
   832 function DoConfront()
   833   if stage == loseStage then
   833   if stage == loseStage then
   834     return
   834     return
   852 
   852 
   853 function CheckNeedGirder()
   853 function CheckNeedGirder()
   854   if stage == loseStage then
   854   if stage == loseStage then
   855     return false
   855     return false
   856   end
   856   end
   857   return GetX(dense) > 1640 and StoppedGear(dense)
   857   return denseDead == false and GetX(dense) > 1640 and StoppedGear(dense)
   858 end
   858 end
   859 
   859 
   860 function DoNeedGirder()
   860 function DoNeedGirder()
   861   if stage == loseStage then
   861   if stage == loseStage then
   862     return
   862     return
   872 
   872 
   873 function CheckNeedWeapons()
   873 function CheckNeedWeapons()
   874   if stage == loseStage then
   874   if stage == loseStage then
   875     return false
   875     return false
   876   end
   876   end
   877   return GetX(dense) > 2522 and StoppedGear(dense)
   877   return denseDead == false and GetX(dense) > 2522 and StoppedGear(dense)
   878 end
   878 end
   879 
   879 
   880 function DoNeedWeapons()
   880 function DoNeedWeapons()
   881   if stage == loseStage then
   881   if stage == loseStage then
   882     return
   882     return