equal
deleted
inserted
replaced
125 lastHogTeam = ourTeam |
125 lastHogTeam = ourTeam |
126 lastOurHog = leaksNr |
126 lastOurHog = leaksNr |
127 lastEnemyHog = 0 |
127 lastEnemyHog = 0 |
128 stage = 0 |
128 stage = 0 |
129 choice = 0 |
129 choice = 0 |
|
130 checkAcceptTimer = 0 |
130 |
131 |
131 brainiacDead = false |
132 brainiacDead = false |
132 cyborgHidden = false |
133 cyborgHidden = false |
133 leaksHidden = false |
134 leaksHidden = false |
134 denseHidden = false |
135 denseHidden = false |
798 end |
799 end |
799 choice = choiceRefuse |
800 choice = choiceRefuse |
800 end |
801 end |
801 |
802 |
802 function CheckAccept() |
803 function CheckAccept() |
803 return GetX(dense) < 1300 and StoppedGear(dense) |
804 if GetX(dense) < 1300 then |
|
805 -- When close to cyborg, wait for a short time before accepting, |
|
806 -- to allow player to attack with melee weapons. |
|
807 checkAcceptTimer = checkAcceptTimer + 1 |
|
808 if checkAcceptTimer > 2000 and StoppedGear(dense) then |
|
809 return true |
|
810 end |
|
811 else |
|
812 checkAcceptTimer = 0 |
|
813 end |
|
814 return false |
804 end |
815 end |
805 |
816 |
806 function DoAccept() |
817 function DoAccept() |
807 if stage == loseStage then |
818 if stage == loseStage then |
808 return |
819 return |