equal
deleted
inserted
replaced
306 return |
306 return |
307 end |
307 end |
308 end |
308 end |
309 end |
309 end |
310 |
310 |
311 if CurrentHedgehog ~= nil then x,y = GetGearPosition(CurrentHedgehog) end |
311 if CurrentHedgehog ~= nil then |
312 if Cake ~= nil and CurrentHedgehog ~= nil then |
312 x,y = GetGearPosition(CurrentHedgehog) |
313 local cx,cy = GetGearPosition(Cake) |
313 if Cake ~= nil then |
314 if y < cy-1500 then |
314 local cx,cy = GetGearPosition(Cake) |
315 DeleteGear(Cake) |
315 if y < cy-1500 then |
316 Cake = nil |
316 DeleteGear(Cake) |
317 end |
317 Cake = nil |
318 |
318 end |
319 if Cake ~= nil and GetHealth(Cake) < 999980 and gearIsInCircle(CurrentHedgehog,cx,cy,450) then |
319 |
320 FireBoom(cx,cy,200) -- todo animate |
320 if GetHealth(Cake) < 999980 and gearIsInCircle(CurrentHedgehog,cx,cy,450) then |
321 DeleteGear(Cake) |
321 FireBoom(cx,cy,200) -- todo animate |
322 Cake = nil |
322 DeleteGear(Cake) |
323 end |
323 Cake = nil |
324 end |
324 end |
|
325 end |
|
326 end |
325 |
327 |
326 if CurrentHedgehog ~= nil and band(GetState(CurrentHedgehog),gstHHDriven) == 0 then |
328 if CurrentHedgehog ~= nil and band(GetState(CurrentHedgehog),gstHHDriven) == 0 then |
327 for f,i in pairs(Fire) do -- takes too long to fall otherwise |
329 for f,i in pairs(Fire) do -- takes too long to fall otherwise |
328 DeleteGear(f) |
330 DeleteGear(f) |
329 end |
331 end |