equal
deleted
inserted
replaced
12 ----------------- VARIABLES -------------------- |
12 ----------------- VARIABLES -------------------- |
13 -- globals |
13 -- globals |
14 local campaignName = loc("A Space Adventure") |
14 local campaignName = loc("A Space Adventure") |
15 local missionName = loc("Fruit planet, The War!") |
15 local missionName = loc("Fruit planet, The War!") |
16 local chooseToBattle = false |
16 local chooseToBattle = false |
|
17 local previousHog = 0 |
17 -- dialogs |
18 -- dialogs |
18 local dialog01 = {} |
19 local dialog01 = {} |
19 local dialog02 = {} |
20 local dialog02 = {} |
20 local dialog03 = {} |
21 local dialog03 = {} |
21 -- mission objectives |
22 -- mission objectives |
172 SendHealthStatsOff() |
173 SendHealthStatsOff() |
173 end |
174 end |
174 |
175 |
175 function onNewTurn() |
176 function onNewTurn() |
176 if CurrentHedgehog == green1.gear then |
177 if CurrentHedgehog == green1.gear then |
177 TotalRounds = TotalRounds - 1 |
178 TotalRounds = TotalRounds - 2 |
178 if GetHealth(green2.gear) then |
179 SwitchHog(previousHog) |
179 SwitchHog(green2.gear) |
180 TurnTimeLeft = 0 |
180 elseif GetHealth(green3.gear) then |
181 end |
181 SwitchHog(green3.gear) |
182 previousHog = CurrentHedghog |
182 elseif GetHealth(green4.gear) then |
|
183 SwitchHog(green4.gear) |
|
184 end |
|
185 end |
|
186 getNextWave() |
183 getNextWave() |
187 end |
184 end |
188 |
185 |
189 function onGameTick() |
186 function onGameTick() |
190 AnimUnWait() |
187 AnimUnWait() |