share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/shadow.lua
changeset 13752 110d6c1e817f
parent 13742 2bb7141496a9
child 14404 cea19d3342c8
equal deleted inserted replaced
13751:0e8db74ec585 13752:110d6c1e817f
  1089   SetAmmo(amSkip, 9, 0, 0, 0)
  1089   SetAmmo(amSkip, 9, 0, 0, 0)
  1090 end
  1090 end
  1091 
  1091 
  1092 function onNewTurn()
  1092 function onNewTurn()
  1093   if AnimInProgress() then
  1093   if AnimInProgress() then
  1094     SetTurnTimeLeft(cMaxTurnTime)
  1094     SetTurnTimeLeft(MAX_TURN_TIME)
  1095   elseif stage == cyborgStage then
  1095   elseif stage == cyborgStage then
  1096     if CurrentHedgehog ~= dense then
  1096     if CurrentHedgehog ~= dense then
  1097       EndTurn(true)
  1097       EndTurn(true)
  1098     else
  1098     else
  1099       SetTurnTimeLeft(cMaxTurnTime)
  1099       SetTurnTimeLeft(MAX_TURN_TIME)
  1100     end
  1100     end
  1101   elseif stage == acceptedReturnStage then
  1101   elseif stage == acceptedReturnStage then
  1102     SwitchHog(dense)
  1102     SwitchHog(dense)
  1103     FollowGear(dense)
  1103     FollowGear(dense)
  1104     SetTurnTimeLeft(cMaxTurnTime)
  1104     SetTurnTimeLeft(MAX_TURN_TIME)
  1105   end
  1105   end
  1106 end
  1106 end
  1107 
  1107 
  1108 function onGearDamage(gear, damage)
  1108 function onGearDamage(gear, damage)
  1109   if gear == cyborg and stage == cyborgStage then
  1109   if gear == cyborg and stage == cyborgStage then