share/hedgewars/Data/Scripts/OfficialChallenges.lua
author unc0rr
Mon, 24 Mar 2014 16:51:39 +0400
changeset 10213 e924d1935aa6
parent 10211 f4c51ab8f46d
child 10214 426aafe1f3ed
permissions -rw-r--r--
Racer challenge #5

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
        else if LandDigest == "M-134869715Scripts/Multiplayer/Racer.lua" then
                return("Racer Challenge #4")
            elseif LandDigest == "M-661895109Scripts/Multiplayer/Racer.lua" then
                return("Racer Challenge #5")
        end
    end
end