share/hedgewars/Data/Missions/Training/Basic_Training_-_Movement.lua
changeset 14452 df065d68e513
parent 14451 bb7f22cb0b64
child 14464 ead8928a59f8
equal deleted inserted replaced
14451:bb7f22cb0b64 14452:df065d68e513
   401 		, 2, 8000)
   401 		, 2, 8000)
   402 	end
   402 	end
   403 end
   403 end
   404 
   404 
   405 function onGearDamage(gear)
   405 function onGearDamage(gear)
   406 	if GetGearType(gear) == gtHedgehog and tookDamage == false then
   406 	if GetGearType(gear) == gtHedgehog and tookDamage == false and GetX(gear) > 1362 then
   407 		ShowMission(loc("Basic Movement Training"), loc("Fall Damage"), loc("Ouch! You just took fall damage.").."|"..
   407 		ShowMission(loc("Basic Movement Training"), loc("Fall Damage"), loc("Ouch! You just took fall damage.").."|"..
   408 		loc("Better get yourself another health crate to heal your wounds."), 2, 5000)
   408 		loc("Better get yourself another health crate to heal your wounds."), 2, 5000)
   409 		tookDamage = true
   409 		tookDamage = true
   410 	end
   410 	end
   411 end
   411 end