equal
deleted
inserted
replaced
18 local weaponsAcquired = false |
18 local weaponsAcquired = false |
19 local battleZoneReached = false |
19 local battleZoneReached = false |
20 local checkPointReached = 1 -- 1 is start of the game |
20 local checkPointReached = 1 -- 1 is start of the game |
21 local afterDialog02 = false |
21 local afterDialog02 = false |
22 local gameOver = false |
22 local gameOver = false |
|
23 local minionsDead = false |
23 -- dialogs |
24 -- dialogs |
24 local dialog01 = {} |
25 local dialog01 = {} |
25 local dialog02 = {} |
26 local dialog02 = {} |
26 local dialog03 = {} |
27 local dialog03 = {} |
27 local dialog04 = {} |
28 local dialog04 = {} |
260 battleZone(hero.gear) |
261 battleZone(hero.gear) |
261 else |
262 else |
262 EndTurn(true) |
263 EndTurn(true) |
263 end |
264 end |
264 end |
265 end |
|
266 if minionsDead and (not (professor.dead or GetHealth(professor.gear) == nil or GetHealth(professor.gear) == 0)) then |
|
267 FollowGear(professor.gear) |
|
268 end |
265 end |
269 end |
266 |
270 |
267 function onPrecise() |
271 function onPrecise() |
268 if GameTime > 3000 then |
272 if GameTime > 3000 then |
269 SetAnimSkip(true) |
273 SetAnimSkip(true) |
442 SaveCampaignVar("ProfDiedOnMoon", "0") |
446 SaveCampaignVar("ProfDiedOnMoon", "0") |
443 victory() |
447 victory() |
444 end |
448 end |
445 |
449 |
446 function minionsDeath(gear) |
450 function minionsDeath(gear) |
|
451 minionsDead = true |
447 if professor.dead or GetHealth(professor.gear) == nil or GetHealth(professor.gear) == 0 then return end |
452 if professor.dead or GetHealth(professor.gear) == nil or GetHealth(professor.gear) == 0 then return end |
448 if gameOver then return end |
453 if gameOver then return end |
449 if (not IsHogAlive(hero.gear)) or (not StoppedGear(hero.gear)) then return end |
454 if (not IsHogAlive(hero.gear)) or (not StoppedGear(hero.gear)) then return end |
|
455 SetTeamPassive(teamC.name, false) |
450 AddAnim(dialog05) |
456 AddAnim(dialog05) |
451 end |
457 end |
452 |
458 |
453 -------------- ANIMATIONS ------------------ |
459 -------------- ANIMATIONS ------------------ |
454 |
460 |