465 function SkipAnim(anim) |
465 function SkipAnim(anim) |
466 if anim == startAnim then |
466 if anim == startAnim then |
467 SetGearPosition(enemy, unpack(enemyPos)) |
467 SetGearPosition(enemy, unpack(enemyPos)) |
468 end |
468 end |
469 if GetHogTeamName(CurrentHedgehog) ~= loc("Natives") then |
469 if GetHogTeamName(CurrentHedgehog) ~= loc("Natives") then |
470 TurnTimeLeft = 0 |
470 EndTurn(true) |
471 end |
471 end |
472 AnimWait(enemy, 1) |
472 AnimWait(enemy, 1) |
473 end |
473 end |
474 |
474 |
475 function AfterFleeAnim() |
475 function AfterFleeAnim() |
487 SetHealth(SpawnHealthCrate(130, 455), 25) |
487 SetHealth(SpawnHealthCrate(130, 455), 25) |
488 SetHealth(SpawnHealthCrate(2087, 50), 25) |
488 SetHealth(SpawnHealthCrate(2087, 50), 25) |
489 SetHealth(SpawnHealthCrate(2143, 54), 25) |
489 SetHealth(SpawnHealthCrate(2143, 54), 25) |
490 SetHealth(SpawnHealthCrate(70, 1308), 25) |
490 SetHealth(SpawnHealthCrate(70, 1308), 25) |
491 ShowMission(loc("Long Live The Queen"), loc("Bullseye"), loc("Good job! Defeat the rest of the aliens!"), 1, 0) |
491 ShowMission(loc("Long Live The Queen"), loc("Bullseye"), loc("Good job! Defeat the rest of the aliens!"), 1, 0) |
492 TurnTimeLeft = 0 |
492 EndTurn(true) |
493 end |
493 end |
494 -----------------------------Events------------------------------------ |
494 -----------------------------Events------------------------------------ |
495 function CheckTurnsOver() |
495 function CheckTurnsOver() |
496 return TotalRounds > 6 |
496 return TotalRounds > 6 |
497 end |
497 end |
511 function DoNativesDead() |
511 function DoNativesDead() |
512 RemoveEventFunc(CheckTurnsOver) |
512 RemoveEventFunc(CheckTurnsOver) |
513 RemoveEventFunc(CheckGearDead) |
513 RemoveEventFunc(CheckGearDead) |
514 RemoveEventFunc(CheckCyborgsDead) |
514 RemoveEventFunc(CheckCyborgsDead) |
515 AddCaption(loc("And so the cyborgs took over the island.")) |
515 AddCaption(loc("And so the cyborgs took over the island.")) |
516 TurnTimeLeft = 0 |
516 EndTurn(true) |
517 end |
517 end |
518 |
518 |
519 function CheckCyborgsDead() |
519 function CheckCyborgsDead() |
520 return (cyborgsLeft == 0 and (gearDead[enemy] == true or enemyFled == "1")) |
520 return (cyborgsLeft == 0 and (gearDead[enemy] == true or enemyFled == "1")) |
521 end |
521 end |