share/hedgewars/Data/Missions/Training/ClimbHome.lua
changeset 10413 afd746a538ef
child 10581 f0b4c14a3c62
equal deleted inserted replaced
10411:ee4e6d392b31 10413:afd746a538ef
       
     1 HedgewarsScriptLoad("/Scripts/Locale.lua")
       
     2 
       
     3 isSinglePlayer = true
       
     4 
       
     5 -- trying to allow random theme, but fixed theme objects...
       
     6 -- Also skip some ugly themes, or ones where the sky is "meh"
       
     7 --local themes = { "Art","Cake","City","EarthRise","Halloween","Olympics","Underwater","Bamboo","Castle","Compost","Eyes","Hell","Planes","Bath","Cave","CrazyMission","Freeway","Island","Sheep","Blox","Cheese","Deepspace","Fruit","Jungle","Snow","Brick","Christmas","Desert","Golf","Nature","Stage" }
       
     8 local themes = {"Christmas","Hell","Bamboo","City","Island","Bath","Compost","Jungle","Desert","Nature","Olympics","Brick","EarthRise","Sheep","Cake","Freeway","Snow","Castle","Fruit","Stage","Cave","Golf","Cheese","Halloween"}
       
     9 
       
    10 function onGameInit()
       
    11     -- Ensure people get same map for same theme
       
    12     Theme = themes[GetRandom(#themes)+1]
       
    13     Seed = ClimbHome
       
    14     TurnTime = 999999999
       
    15     EnableGameFlags(gfOneClanMode)
       
    16     DisableGameFlags(gfBottomBorder+gfBorder)
       
    17     CaseFreq = 0
       
    18     Explosives = 0
       
    19     Map = "ClimbHome"
       
    20     AddTeam(loc("Lonely Hog"), 14483456, "Simple", "Island", "Default")
       
    21     player = AddHog(loc("Climber"), 0, 1, "NoHat")
       
    22 end