equal
deleted
inserted
replaced
265 DeleteGear(gear) |
265 DeleteGear(gear) |
266 end |
266 end |
267 end |
267 end |
268 end |
268 end |
269 |
269 |
270 function onGearResurrect(gear) |
270 function onGearResurrect(gear, vGear) |
271 -- Teleport hog to previous checkpoint |
271 -- Teleport hog to previous checkpoint |
272 if gear == hog then |
272 if gear == hog then |
273 SetGearPosition(hog, cpX, cpY) |
273 SetGearPosition(hog, cpX, cpY) |
|
274 if vGear then |
|
275 SetVisualGearValues(vGear, GetX(hog), GetY(hog)) |
|
276 end |
274 FollowGear(hog) |
277 FollowGear(hog) |
275 AddCaption(loc("Your hedgehog has been revived!")) |
278 AddCaption(loc("Your hedgehog has been revived!")) |
276 if isInMineChallenge then |
279 if isInMineChallenge then |
277 resetMineChallenge(false) |
280 resetMineChallenge(false) |
278 end |
281 end |