equal
deleted
inserted
replaced
228 |
228 |
229 function AfterEndAnimAlone() |
229 function AfterEndAnimAlone() |
230 stage = endStage |
230 stage = endStage |
231 SwitchHog(leaks) |
231 SwitchHog(leaks) |
232 SetGearMessage(leaks, 0) |
232 SetGearMessage(leaks, 0) |
233 SetTurnTimeLeft(cMaxTurnTime) |
233 SetTurnTimeLeft(MAX_TURN_TIME) |
234 ShowMission(loc("The Journey Back"), loc("Collateral Damage II"), loc("Save Fell From Heaven!"), 1, 4000) |
234 ShowMission(loc("The Journey Back"), loc("Collateral Damage II"), loc("Save Fell From Heaven!"), 1, 4000) |
235 AddEvent(CheckLost, {}, DoLost, {}, 0) |
235 AddEvent(CheckLost, {}, DoLost, {}, 0) |
236 AddEvent(CheckWon, {}, DoWon, {}, 0) |
236 AddEvent(CheckWon, {}, DoWon, {}, 0) |
237 RemoveEventFunc(CheckFailedCourse) |
237 RemoveEventFunc(CheckFailedCourse) |
238 end |
238 end |
240 function AfterEndAnimDuo() |
240 function AfterEndAnimDuo() |
241 stage = endStage |
241 stage = endStage |
242 SwitchHog(leaks) |
242 SwitchHog(leaks) |
243 SetGearMessage(leaks, 0) |
243 SetGearMessage(leaks, 0) |
244 SetGearMessage(dense, 0) |
244 SetGearMessage(dense, 0) |
245 SetTurnTimeLeft(cMaxTurnTime) |
245 SetTurnTimeLeft(MAX_TURN_TIME) |
246 ShowMission(loc("The Journey Back"), loc("Collateral Damage II"), loc("Save Fell From Heaven!"), 1, 4000) |
246 ShowMission(loc("The Journey Back"), loc("Collateral Damage II"), loc("Save Fell From Heaven!"), 1, 4000) |
247 AddEvent(CheckLost, {}, DoLost, {}, 0) |
247 AddEvent(CheckLost, {}, DoLost, {}, 0) |
248 AddEvent(CheckWon, {}, DoWon, {}, 0) |
248 AddEvent(CheckWon, {}, DoWon, {}, 0) |
249 end |
249 end |
250 |
250 |
1186 SetAmmo(amPickHammer, 0, 0, 0, 1) |
1186 SetAmmo(amPickHammer, 0, 0, 0, 1) |
1187 end |
1187 end |
1188 |
1188 |
1189 function onNewTurn() |
1189 function onNewTurn() |
1190 if AnimInProgress() then |
1190 if AnimInProgress() then |
1191 SetTurnTimeLeft(cMaxTurnTime) |
1191 SetTurnTimeLeft(MAX_TURN_TIME) |
1192 elseif victory then |
1192 elseif victory then |
1193 EndTurn(true) |
1193 EndTurn(true) |
1194 elseif stage == endStage and CurrentHedgehog ~= leaks then |
1194 elseif stage == endStage and CurrentHedgehog ~= leaks then |
1195 AnimSwitchHog(leaks) |
1195 AnimSwitchHog(leaks) |
1196 SetGearMessage(leaks, 0) |
1196 SetGearMessage(leaks, 0) |
1197 SetTurnTimeLeft(cMaxTurnTime) |
1197 SetTurnTimeLeft(MAX_TURN_TIME) |
1198 elseif GetHogTeamName(CurrentHedgehog) ~= loc("Natives") then |
1198 elseif GetHogTeamName(CurrentHedgehog) ~= loc("Natives") then |
1199 SetTurnTimeLeft(20000) |
1199 SetTurnTimeLeft(20000) |
1200 else |
1200 else |
1201 TurnsLeft = TurnsLeft - 1 |
1201 TurnsLeft = TurnsLeft - 1 |
1202 if TurnsLeft >= 1 then |
1202 if TurnsLeft >= 1 then |