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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10022
eb981a03de90 - Make Racer report achievements
unc0rr
parents:
diff changeset
     1
function detectMap()
10091
213c38232b3d Official racer challenge #2
unc0rr
parents: 10022
diff changeset
     2
    if RopePercent == 100 and MinesNum == 0 then
10211
f4c51ab8f46d Better detection
unc0rr
parents: 10180
diff changeset
     3
-- challenges with border
f4c51ab8f46d Better detection
unc0rr
parents: 10180
diff changeset
     4
        if GetGameFlag(gfBorder) then
f4c51ab8f46d Better detection
unc0rr
parents: 10180
diff changeset
     5
            if LandDigest == "M838018718Scripts/Multiplayer/Racer.lua" then
f4c51ab8f46d Better detection
unc0rr
parents: 10180
diff changeset
     6
                return("Racer Challenge #1")
f4c51ab8f46d Better detection
unc0rr
parents: 10180
diff changeset
     7
            elseif LandDigest == "M-490229244Scripts/Multiplayer/Racer.lua" then
f4c51ab8f46d Better detection
unc0rr
parents: 10180
diff changeset
     8
                return("Racer Challenge #2")
f4c51ab8f46d Better detection
unc0rr
parents: 10180
diff changeset
     9
            elseif LandDigest == "M806689586Scripts/Multiplayer/Racer.lua" then
f4c51ab8f46d Better detection
unc0rr
parents: 10180
diff changeset
    10
                return("Racer Challenge #3")
f4c51ab8f46d Better detection
unc0rr
parents: 10180
diff changeset
    11
        end
f4c51ab8f46d Better detection
unc0rr
parents: 10180
diff changeset
    12
-- challenges without border
10213
e924d1935aa6 Racer challenge #5
unc0rr
parents: 10211
diff changeset
    13
        else if LandDigest == "M-134869715Scripts/Multiplayer/Racer.lua" then
e924d1935aa6 Racer challenge #5
unc0rr
parents: 10211
diff changeset
    14
                return("Racer Challenge #4")
e924d1935aa6 Racer challenge #5
unc0rr
parents: 10211
diff changeset
    15
            elseif LandDigest == "M-661895109Scripts/Multiplayer/Racer.lua" then
e924d1935aa6 Racer challenge #5
unc0rr
parents: 10211
diff changeset
    16
                return("Racer Challenge #5")
10091
213c38232b3d Official racer challenge #2
unc0rr
parents: 10022
diff changeset
    17
        end
10022
eb981a03de90 - Make Racer report achievements
unc0rr
parents:
diff changeset
    18
    end
eb981a03de90 - Make Racer report achievements
unc0rr
parents:
diff changeset
    19
end