equal
deleted
inserted
replaced
585 stage = 0 |
585 stage = 0 |
586 AddEvent(CheckWaveDead, {1}, DoWaveDead, {1}, 0) |
586 AddEvent(CheckWaveDead, {1}, DoWaveDead, {1}, 0) |
587 AddAmmo(speakerHog, amSwitch, 100) |
587 AddAmmo(speakerHog, amSwitch, 100) |
588 SetGearMessage(speakerHog, 0) |
588 SetGearMessage(speakerHog, 0) |
589 SetState(speakerHog, 0) |
589 SetState(speakerHog, 0) |
590 SetTurnTimeLeft(cMaxTurnTime) |
590 SetTurnTimeLeft(MAX_TURN_TIME) |
591 ShowMission(loc("Backstab"), loc("The food bites back"), loc("Defeat the cannibals"), 1, 4000) |
591 ShowMission(loc("Backstab"), loc("The food bites back"), loc("Defeat the cannibals"), 1, 4000) |
592 SpawnCrates() |
592 SpawnCrates() |
593 end |
593 end |
594 |
594 |
595 function SkipAfterChoiceAnim() |
595 function SkipAfterChoiceAnim() |
1104 j = 0 |
1104 j = 0 |
1105 |
1105 |
1106 function onNewTurn() |
1106 function onNewTurn() |
1107 tmpVar = 0 |
1107 tmpVar = 0 |
1108 if AnimInProgress() then |
1108 if AnimInProgress() then |
1109 SetTurnTimeLeft(cMaxTurnTime) |
1109 SetTurnTimeLeft(MAX_TURN_TIME) |
1110 return |
1110 return |
1111 end |
1111 end |
1112 |
1112 |
1113 if GetHogTeamName(CurrentHedgehog) == loc("Tribe") then |
1113 if GetHogTeamName(CurrentHedgehog) == loc("Tribe") then |
1114 EndTurn(true) |
1114 EndTurn(true) |
1129 if CurrentHedgehog == spyHog or GetHogTeamName(CurrentHedgehog) ~= loc("Natives") then |
1129 if CurrentHedgehog == spyHog or GetHogTeamName(CurrentHedgehog) ~= loc("Natives") then |
1130 EndTurn(true) |
1130 EndTurn(true) |
1131 else |
1131 else |
1132 SetGearMessage(CurrentHedgehog, 0) |
1132 SetGearMessage(CurrentHedgehog, 0) |
1133 --AnimSwitchHog(natives[leaksNum]) |
1133 --AnimSwitchHog(natives[leaksNum]) |
1134 SetTurnTimeLeft(cMaxTurnTime) |
1134 SetTurnTimeLeft(MAX_TURN_TIME) |
1135 end |
1135 end |
1136 else |
1136 else |
1137 if freshDead ~= nil and GetHogTeamName(CurrentHedgehog) == loc("Natives") then |
1137 if freshDead ~= nil and GetHogTeamName(CurrentHedgehog) == loc("Natives") then |
1138 SetupHogDeadAnim(freshDead) |
1138 SetupHogDeadAnim(freshDead) |
1139 AddAnim(hogDeadAnim) |
1139 AddAnim(hogDeadAnim) |