--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert02.lua Mon Aug 05 19:45:55 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert02.lua Mon Aug 05 19:49:43 2013 +0300
@@ -128,12 +128,24 @@
return false
end
+function onHeroSafe(gear)
+ if not hero.dead and GetY(hero.gear) < 200 and StoppedGear(hero.gear) then
+ return true
+ end
+ return false
+end
+
-------------- OUTCOMES ------------------
function heroDeath(gear)
heroLost()
end
+function heroSafe(gear)
+ -- hero win stuff
+ EndGame()
+end
+
-------------- ANIMATIONS ------------------
function Skipanim(anim)