share/hedgewars/Data/Maps/TrophyRace/map.lua
changeset 9658 c97e8ecc7457
parent 9657 2d8cae3c0855
child 9659 e9c00dd31b07
equal deleted inserted replaced
9657:2d8cae3c0855 9658:c97e8ecc7457
    71 function onAmmoStoreInit()
    71 function onAmmoStoreInit()
    72     SetAmmo(amRope, 9, 2, 0)
    72     SetAmmo(amRope, 9, 2, 0)
    73 end
    73 end
    74 
    74 
    75 function onGameTick20()
    75 function onGameTick20()
    76     if startTime = 0 and TurnTimeLeft < maxtime then
    76     if startTime == 0 and TurnTimeLeft < maxtime then
    77         startTime = GameTime
    77         startTime = GameTime
    78     end
    78     end
    79     if CurrentHedgehog ~= nil and TurnTimeLeft <= 20 and TurnTimeLeft > 0 then
    79     if CurrentHedgehog ~= nil and TurnTimeLeft <= 20 and TurnTimeLeft > 0 then
    80         SetHealth(CurrentHedgehog, 0)
    80         SetHealth(CurrentHedgehog, 0)
    81         x, y = GetGearPosition(CurrentHedgehog)
    81         x, y = GetGearPosition(CurrentHedgehog)