share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua
changeset 12262 2c11b8f5fa4d
parent 12261 69217c8c91fe
child 12263 2c8e7e73ef58
equal deleted inserted replaced
12261:69217c8c91fe 12262:2c11b8f5fa4d
   296   FollowGear(native)
   296   FollowGear(native)
   297   AddNewEvent(CheckGearsDead, {{crates[1], crates[2]}}, PutCrates, {2}, 0) 
   297   AddNewEvent(CheckGearsDead, {{crates[1], crates[2]}}, PutCrates, {2}, 0) 
   298   TurnTimeLeft = TurnTime
   298   TurnTimeLeft = TurnTime
   299   ShowMission(loc("Dragon's Lair"), loc("Obstacle course"), loc("In order to get to the other side, you need to collect the crates first.|") ..
   299   ShowMission(loc("Dragon's Lair"), loc("Obstacle course"), loc("In order to get to the other side, you need to collect the crates first.|") ..
   300                                                   loc("As the ammo is sparse, you might want to reuse ropes while mid-air.|") ..
   300                                                   loc("As the ammo is sparse, you might want to reuse ropes while mid-air.|") ..
   301                                                   loc("If you wish to restart the course, hold [Precise] while your turn ends (e.g with Skip)!|") ..
       
   302                                                   loc("The enemy can't move but it might be a good idea to stay out of sight!|") ..
   301                                                   loc("The enemy can't move but it might be a good idea to stay out of sight!|") ..
   303                                                   string.format(loc("You have %d turns until Sudden Death! Better hurry!"), SuddenDeathTurns), 1, 0)
   302                                                   string.format(loc("You have %d turns until Sudden Death! Better hurry!"), SuddenDeathTurns), 1, 0)
   304 end
   303 end
   305 
   304 
   306 function SkipKillAnim()
   305 function SkipKillAnim()
   641 
   640 
   642 function onPrecise()
   641 function onPrecise()
   643   if GameTime > 2500 and AnimInProgress() then
   642   if GameTime > 2500 and AnimInProgress() then
   644     SetAnimSkip(true)
   643     SetAnimSkip(true)
   645   end
   644   end
   646   if AnimInProgress() == false then
   645 end
   647   end
       
   648 end