equal
deleted
inserted
replaced
107 |
107 |
108 function onGearDelete(gear) |
108 function onGearDelete(gear) |
109 if isHog(gear) then |
109 if isHog(gear) then |
110 SetHealth(hero.gear, 100) |
110 SetHealth(hero.gear, 100) |
111 local deadHog = getHog(gear) |
111 local deadHog = getHog(gear) |
112 if deadHog.weapon == amDynamite then |
112 if deadHog.weapon == amMortar then |
113 hero.dynamiteAmmo = 0 |
113 hero.mortarAmmo = 0 |
114 elseif deadHog.weapon == amFirePunch then |
114 elseif deadHog.weapon == amFirePunch then |
115 hero.firepunchAmmo = 0 |
115 hero.firepunchAmmo = 0 |
116 elseif deadHog.weapon == amDEagle then |
116 elseif deadHog.weapon == amDEagle then |
117 hero.deagleAmmo = 0 |
117 hero.deagleAmmo = 0 |
118 elseif deadHog.weapon == amBazooka then |
118 elseif deadHog.weapon == amBazooka then |