share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua
changeset 12513 071d1d699f27
parent 12278 1d2fe83709d1
child 12514 6dbdb6fab2f9
equal deleted inserted replaced
12512:0ed3fda9b61d 12513:071d1d699f27
   315     cratesNum = cratesNum + 1
   315     cratesNum = cratesNum + 1
   316   end
   316   end
   317   FollowGear(native)
   317   FollowGear(native)
   318   AddNewEvent(CheckGearsDead, {{crates[1], crates[2]}}, PutCrates, {2}, 0) 
   318   AddNewEvent(CheckGearsDead, {{crates[1], crates[2]}}, PutCrates, {2}, 0) 
   319   TurnTimeLeft = TurnTime
   319   TurnTimeLeft = TurnTime
   320   ShowMission(loc("Dragon's Lair"), loc("Obstacle course"), loc("In order to get to the other side, you need to collect the crates first.|") ..
   320   ShowMission(loc("Dragon's Lair"), loc("Obstacle course"), loc("In order to get to the other side, you need to get rid of the crates first.") .. "|" ..
   321                                                   loc("As the ammo is sparse, you might want to reuse ropes while mid-air.|") ..
   321                                                   loc("As the ammo is sparse, you might want to reuse ropes while mid-air.") .. "|" ..
   322                                                   loc("The enemy can't move but it might be a good idea to stay out of sight!|") ..
   322                                                   loc("The enemy can't move but it might be a good idea to stay out of sight!") .. "|" ..
   323                                                   loc("Mines time: 5 seconds"), 1, 0)
   323                                                   loc("Mines time: 5 seconds"), 1, 0)
   324 end
   324 end
   325 
   325 
   326 function SkipKillAnim()
   326 function SkipKillAnim()
   327   AnimSwitchHog(native)
   327   AnimSwitchHog(native)
   458 
   458 
   459 function CyborgDeadReact()
   459 function CyborgDeadReact()
   460   freshDead = nil
   460   freshDead = nil
   461   if cyborgsLeft == 0 then
   461   if cyborgsLeft == 0 then
   462     if not cratesTaken then
   462     if not cratesTaken then
   463        AnimSay(native, loc("I still have to collect the crates."), SAY_THINK, 8000)
   463        AnimSay(native, loc("I still have to get rid of the crates."), SAY_THINK, 8000)
   464     end
   464     end
   465     return
   465     return
   466   end
   466   end
   467   AnimSay(native, reactions[cyborgsLeft])
   467   AnimSay(native, reactions[cyborgsLeft])
   468 end
   468 end