share/hedgewars/Data/Scripts/OfficialChallenges.lua
changeset 13862 b2cc4e4e380c
parent 13828 ced1e6ecaaad
child 14091 a5be3ef4bbbe
equal deleted inserted replaced
13772:219c2e588874 13862:b2cc4e4e380c
     1 local maps = {
     1 HedgewarsScriptLoad("/Scripts/OfficialChallengeHashes.lua")
     2     ["Border,60526986531,M838018718Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #1"
       
     3     , ["Border,71022545335,M-490229244Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #2"
       
     4     , ["Border,40469748943,M806689586Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #3"
       
     5     , ["85940488650,M-134869715Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #4"
       
     6     , ["62080348735,M-661895109Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #5"
       
     7     , ["56818170733,M479034891Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #6"
       
     8     , ["Border,25372705797,M1770509913Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #7"
       
     9     , ["Border,10917540013,M1902370941Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #8"
       
    10     , ["Border,43890274319,M185940363Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #9"
       
    11     , ["Border,27870148394,M751885839Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #10"
       
    12     , ["Border,22647869226,M178845011Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #11"
       
    13     , ["Border,46954401793,M706743197Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #12"
       
    14     , ["Border,60760377667,M157242054Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #13"
       
    15     , ["Border,51825989393,M-1585582638Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #14"
       
    16     , ["81841189250,M256715557Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #15"
       
    17     , ["Border,44246064625,M-528106034Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #16"
       
    18     , ["60906776802,M-1389184823Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #17"
       
    19     , ["Border,70774747774,M-534640804Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #18"
       
    20     , ["Border,50512019610,M-1839546856Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #19"
       
    21     , ["60715683005,M-281312897Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #20"
       
    22 -- tech racer
       
    23     , ["Border,19661006772,M-975391975Scripts/Multiplayer/TechRacer.lua"] = "Tech Racer #1"
       
    24     , ["Border,19661306766,M-975391975Scripts/Multiplayer/TechRacer.lua"] = "Tech Racer #2"
       
    25     , ["Border,19661606760,M-975391975Scripts/Multiplayer/TechRacer.lua"] = "Tech Racer #3"
       
    26     , ["Border,19661906754,M-975391975Scripts/Multiplayer/TechRacer.lua"] = "Tech Racer #4"
       
    27     , ["Border,19662206748,M-975391975Scripts/Multiplayer/TechRacer.lua"] = "Tech Racer #5"
       
    28     , ["Border,19662506742,M-975391975Scripts/Multiplayer/TechRacer.lua"] = "Tech Racer #6"
       
    29     , ["Border,19662806736,M-975391975Scripts/Multiplayer/TechRacer.lua"] = "Tech Racer #7"
       
    30     , ["Border,19663106730,M-975391975Scripts/Multiplayer/TechRacer.lua"] = "Tech Racer #8"
       
    31     }
       
    32 
     2 
    33 -- modified Adler hash
     3 -- modified Adler hash
    34 local hashA = 0
     4 local hashA = 0
    35 local hashB = 0
     5 local hashB = 0
    36 local hashModule = 299993
     6 local hashModule = 299993
    56         if band(GameFlags, gfBorder) ~= 0 then
    26         if band(GameFlags, gfBorder) ~= 0 then
    57             mapString = "Border," .. mapString
    27             mapString = "Border," .. mapString
    58         end
    28         end
    59 
    29 
    60         --WriteLnToConsole(mapString)
    30         --WriteLnToConsole(mapString)
    61         return(maps[mapString])
    31         return(official_racer_maps[mapString])
    62     end
    32     end
    63 end
    33 end