644 SpawnSupplyCrate(2579, 1254, amMine) |
644 SpawnSupplyCrate(2579, 1254, amMine) |
645 SpawnSupplyCrate(2478, 1243, amMine) |
645 SpawnSupplyCrate(2478, 1243, amMine) |
646 end |
646 end |
647 |
647 |
648 function AfterWave2DeadAnim() |
648 function AfterWave2DeadAnim() |
649 TurnsLeft = 7 |
|
650 stage = platformStage |
649 stage = platformStage |
651 SpawnPlatformCrates() |
650 SpawnPlatformCrates() |
652 SetGearMessage(CurrentHedgehog, 0) |
651 SetGearMessage(CurrentHedgehog, 0) |
653 AddEvent(CheckTurnsOver, {}, DoTurnsOver, {3}, 0) |
652 AddEvent(CheckTurnsOver, {}, DoTurnsOver, {3}, 0) |
654 AddEvent(CheckWaveDead, {3}, DoWaveDead, {3}, 0) |
653 AddEvent(CheckWaveDead, {3}, DoWaveDead, {3}, 0) |
1175 if AnimInProgress() then |
1174 if AnimInProgress() then |
1176 SetTurnTimeLeft(MAX_TURN_TIME) |
1175 SetTurnTimeLeft(MAX_TURN_TIME) |
1177 return |
1176 return |
1178 end |
1177 end |
1179 |
1178 |
1180 TurnsLeft = TurnsLeft - 1 |
|
1181 |
|
1182 if stage == platformStage then |
1179 if stage == platformStage then |
1183 AddCaption(string.format(loc("Turns until arrival: %d"), TurnsLeft)) |
1180 if wave3TurnsLeft == nil then |
|
1181 wave3TurnsLeft = 7 |
|
1182 else |
|
1183 wave3TurnsLeft = wave3TurnsLeft - 1 |
|
1184 end |
|
1185 if wave3TurnsLeft > 0 then |
|
1186 AddCaption(string.format(loc("Turns until arrival: %d"), wave3TurnsLeft)) |
|
1187 end |
1184 end |
1188 end |
1185 if deployedHog then |
1189 if deployedHog then |
1186 if GetHogTeamName(CurrentHedgehog) == nativesTeamName then |
1190 if GetHogTeamName(CurrentHedgehog) == nativesTeamName then |
1187 AnimSwitchHog(deployedHog) |
1191 AnimSwitchHog(deployedHog) |
1188 end |
1192 end |