share/hedgewars/Data/Scripts/OfficialChallenges.lua
author unc0rr
Thu, 20 Mar 2014 22:14:30 +0400
changeset 10211 f4c51ab8f46d
parent 10180 8d4bb51bf5cb
child 10213 e924d1935aa6
permissions -rw-r--r--
Better detection

function detectMap()
    if RopePercent == 100 and MinesNum == 0 then
-- challenges with border
        if GetGameFlag(gfBorder) then
            if LandDigest == "M838018718Scripts/Multiplayer/Racer.lua" then
                return("Racer Challenge #1")
            elseif LandDigest == "M-490229244Scripts/Multiplayer/Racer.lua" then
                return("Racer Challenge #2")
            elseif LandDigest == "M806689586Scripts/Multiplayer/Racer.lua" then
                return("Racer Challenge #3")
        end
-- challenges without border
        elseif LandDigest == "M-134869715Scripts/Multiplayer/Racer.lua" then
            return("Racer Challenge #4")
        end
    end
end