share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/family.lua
changeset 13745 2bb7141496a9
parent 13692 a8b2a5e7e9db
child 13755 110d6c1e817f
equal deleted inserted replaced
13744:b3b55b03d499 13745:2bb7141496a9
   293     AddNewEvent(CheckGearDead, {cyborgs[i]}, DoCyborgDead, {i}, 0)
   293     AddNewEvent(CheckGearDead, {cyborgs[i]}, DoCyborgDead, {i}, 0)
   294   end
   294   end
   295   AddNewEvent(CheckOutOfCluster, {}, DoOutOfCluster, {}, 1)
   295   AddNewEvent(CheckOutOfCluster, {}, DoOutOfCluster, {}, 1)
   296   AddNewEvent(CheckOutOfGrenade, {}, DoOutOfGrenade, {}, 1)
   296   AddNewEvent(CheckOutOfGrenade, {}, DoOutOfGrenade, {}, 1)
   297 --  AddNewEvent(CheckNeedToHide, {}, DoNeedToHide, {}, 1)
   297 --  AddNewEvent(CheckNeedToHide, {}, DoNeedToHide, {}, 1)
   298   TurnTimeLeft = TurnTime
   298   SetTurnTimeLeft(TurnTime)
   299   ShowMission(loc("Family Reunion"), loc("Hostage Situation"), loc("Save the princess! All your hogs must survive!|Hint: Kill the cyborgs first! Use the ammo very carefully!|Hint: You might want to spare a girder for cover!"), 1, 7000)
   299   ShowMission(loc("Family Reunion"), loc("Hostage Situation"), loc("Save the princess! All your hogs must survive!|Hint: Kill the cyborgs first! Use the ammo very carefully!|Hint: You might want to spare a girder for cover!"), 1, 7000)
   300 end
   300 end
   301 
   301 
   302 function SetupPlace2()
   302 function SetupPlace2()
   303 	PlaceGirder(709, 564, 7)
   303 	PlaceGirder(709, 564, 7)
   634 	SetAmmo(amPortalGun, 0, 0, 0, 1)
   634 	SetAmmo(amPortalGun, 0, 0, 0, 1)
   635 end
   635 end
   636 
   636 
   637 function onNewTurn()
   637 function onNewTurn()
   638   if AnimInProgress() then
   638   if AnimInProgress() then
   639     TurnTimeLeft = -1
   639     SetTurnTimeLeft(cMaxTurnTime)
   640     return
   640     return
   641   end
   641   end
   642   if CurrentHedgehog == cyborg then
   642   if CurrentHedgehog == cyborg then
   643     if CheckCyborgsDead() ~= true then
   643     if CheckCyborgsDead() ~= true then
   644       for i = 1, 3 do
   644       for i = 1, 3 do