equal
deleted
inserted
replaced
134 end |
134 end |
135 return false |
135 return false |
136 end |
136 end |
137 |
137 |
138 function onBoom(gear) |
138 function onBoom(gear) |
139 local win = true |
139 if (not IsHogAlive(gear)) or (not StoppedGear(gear)) then |
|
140 return false |
|
141 end |
140 for i=1,table.getn(explosives) do |
142 for i=1,table.getn(explosives) do |
141 if GetHealth(explosives[i]) then |
143 if GetHealth(explosives[i]) then |
142 win = false |
144 return false |
143 break |
|
144 end |
145 end |
145 end |
146 end |
146 if currentHealth <= currentDamage then |
147 if currentHealth <= currentDamage then |
147 win = false |
148 return false |
148 end |
149 end |
149 return win |
150 return true |
150 end |
151 end |
151 |
152 |
152 -------------- ACTIONS ------------------ |
153 -------------- ACTIONS ------------------ |
153 |
154 |
154 function heroDeath(gear) |
155 function heroDeath(gear) |