share/hedgewars/Data/Missions/Training/Basic_Training_-_Grenade.lua
changeset 13630 fe7d2bbf5f3f
parent 13583 141cdfe0f3ca
child 13664 85506d95977d
equal deleted inserted replaced
13629:c9a49d06f1a2 13630:fe7d2bbf5f3f
    45 	SetEffect(hog, heResurrectable, 1)
    45 	SetEffect(hog, heResurrectable, 1)
    46 
    46 
    47 	SendHealthStatsOff()
    47 	SendHealthStatsOff()
    48 end
    48 end
    49 
    49 
    50 function onGearResurrect(gear)
    50 function onGearResurrect(gear, vGear)
    51 	if gear == hog then
    51 	if gear == hog then
    52 		flawless = false
    52 		flawless = false
    53 		SetGearPosition(hog, 570, 157)
    53 		SetGearPosition(hog, 570, 157)
       
    54 		if vGear then
       
    55 			SetVisualGearValues(vGear, GetX(hog), GetY(hog))
       
    56 		end
    54 		AddCaption(loc("Your hedgehog has been revived!"))
    57 		AddCaption(loc("Your hedgehog has been revived!"))
    55 	end
    58 	end
    56 end
    59 end
    57 
    60 
    58 local function placeGirders()
    61 local function placeGirders()