share/hedgewars/Data/Scripts/OfficialChallenges.lua
author unC0Rr
Thu, 26 Feb 2015 15:38:10 +0300
changeset 10833 655bab155a58
parent 10832 ad257b8b2816
child 10854 4925438f5ab7
permissions -rw-r--r--
Racer challenge map #14

function detectMap()
    if RopePercent == 100 and MinesNum == 0 then
-- challenges with border
        if band(GameFlags, gfBorder) ~= 0 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")
            elseif LandDigest == "M1770509913Scripts/Multiplayer/Racer.lua" then
                return("Racer Challenge #7")
            elseif LandDigest == "M1902370941Scripts/Multiplayer/Racer.lua" then
                return("Racer Challenge #8")
            elseif LandDigest == "M185940363Scripts/Multiplayer/Racer.lua" then
                return("Racer Challenge #9")
            elseif LandDigest == "M751885839Scripts/Multiplayer/Racer.lua" then
                return("Racer Challenge #10")
            elseif LandDigest == "M178845011Scripts/Multiplayer/Racer.lua" then
                return("Racer Challenge #11")
            elseif LandDigest == "M706743197Scripts/Multiplayer/Racer.lua" then
                return("Racer Challenge #12")
            elseif LandDigest == "M157242054Scripts/Multiplayer/Racer.lua" then
                return("Racer Challenge #13")
            elseif LandDigest == "M-1585582638Scripts/Multiplayer/Racer.lua" then
                return("Racer Challenge #14")
            end
-- challenges without border
        elseif LandDigest == "M-134869715Scripts/Multiplayer/Racer.lua" then
            return("Racer Challenge #4")
        elseif LandDigest == "M-661895109Scripts/Multiplayer/Racer.lua" then
            return("Racer Challenge #5")
        elseif LandDigest == "M479034891Scripts/Multiplayer/Racer.lua" then
            return("Racer Challenge #6")
        end
    end
end