share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua
changeset 15056 c88201afcc7c
parent 15055 3e79818e21b1
child 15057 de864caac024
equal deleted inserted replaced
15055:3e79818e21b1 15056:c88201afcc7c
   656   ShowMission(loc("Backstab"), loc("Drills"), loc("You have 7 turns until the next wave arrives.|Make sure the arriving cannibals are greeted appropriately!|If the hog dies, the cause is lost.|Hint: You might want to use some mines ..."), 1, 12000)
   656   ShowMission(loc("Backstab"), loc("Drills"), loc("You have 7 turns until the next wave arrives.|Make sure the arriving cannibals are greeted appropriately!|If the hog dies, the cause is lost.|Hint: You might want to use some mines ..."), 1, 12000)
   657 end
   657 end
   658 
   658 
   659 function DoTurnsOver()
   659 function DoTurnsOver()
   660   stage = wave3Stage
   660   stage = wave3Stage
   661   RestoreWave(3)
   661   RestoreWave(3, true)
   662   DeleteCircles()
   662   DeleteCircles()
   663 end
   663 end
   664 
   664 
   665 function SkipWave2Anim()
   665 function SkipWave2Anim()
   666   AnimSwitchHog(speakerHog)
   666   AnimSwitchHog(speakerHog)
   900   SetHealth(SpawnHealthCrate(0, 0), 25)
   900   SetHealth(SpawnHealthCrate(0, 0), 25)
   901   SetHealth(SpawnHealthCrate(0, 0), 25)
   901   SetHealth(SpawnHealthCrate(0, 0), 25)
   902 end
   902 end
   903 
   903 
   904 
   904 
   905 function RestoreWave(index)
   905 function RestoreWave(index, animate)
   906   for i = (index - 1) * 3 + 1, index * 3 do
   906   for i = (index - 1) * 3 + 1, index * 3 do
   907     if cannibalHidden[i] == true then
   907     if cannibalHidden[i] == true then
   908       RestoreHog(cannibals[i])
   908       RestoreHog(cannibals[i])
   909       AnimSetGearPosition(cannibals[i], unpack(cannibalPos[i]))
   909       if animate then
   910       FollowGear(cannibals[i])
   910         AnimOutOfNowhere(cannibals[i], unpack(cannibalPos[i]))
       
   911       else
       
   912         AnimSetGearPosition(cannibals[i], unpack(cannibalPos[i]))
       
   913         FollowGear(cannibals[i])
       
   914       end
   911       cannibalHidden[i] = false
   915       cannibalHidden[i] = false
   912     end
   916     end
   913   end
   917   end
   914 end
   918 end
   915 
   919