share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua
changeset 15062 de864caac024
parent 15061 c88201afcc7c
child 15073 6f51c75994a4
equal deleted inserted replaced
15061:c88201afcc7c 15062:de864caac024
   629 function SkipWave2DeadAnim()
   629 function SkipWave2DeadAnim()
   630   TeleportNatives()
   630   TeleportNatives()
   631   TurnNatives()
   631   TurnNatives()
   632   PutCircles()
   632   PutCircles()
   633   DeployHog()
   633   DeployHog()
       
   634   EndTurn(true)
   634   if nativesNum > 1 then
   635   if nativesNum > 1 then
   635     IsolateNatives()
   636     IsolateNatives()
   636   end
   637   end
   637 end
   638 end
   638 
   639 
   650   SpawnPlatformCrates()
   651   SpawnPlatformCrates()
   651   SetGearMessage(CurrentHedgehog, 0)
   652   SetGearMessage(CurrentHedgehog, 0)
   652   AddEvent(CheckWaveDead, {3}, DoWaveDead, {3}, 0)
   653   AddEvent(CheckWaveDead, {3}, DoWaveDead, {3}, 0)
   653   AddEvent(CheckDeployedDead, {}, DoDeployedDead, {}, 0)
   654   AddEvent(CheckDeployedDead, {}, DoDeployedDead, {}, 0)
   654   HideCyborg()
   655   HideCyborg()
   655   EndTurn(true)
       
   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
  1226     needToAct = 0
  1226     needToAct = 0
  1227   end
  1227   end
  1228 end
  1228 end
  1229 
  1229 
  1230 function onEndTurn()
  1230 function onEndTurn()
  1231   if stage == platformStage then
  1231   if stage == platformStage and wave3TurnsLeft ~= nil then
  1232     wave3TurnsLeft = wave3TurnsLeft - 1
  1232     wave3TurnsLeft = wave3TurnsLeft - 1
  1233     if wave3TurnsLeft == 0 then
  1233     if wave3TurnsLeft == 0 then
  1234       DoTurnsOver()
  1234       DoTurnsOver()
  1235     end
  1235     end
  1236   end
  1236   end