share/hedgewars/Data/Missions/Training/ClimbHome.lua
author nemo
Sat, 29 Nov 2014 21:29:11 -0500
changeset 10581 f0b4c14a3c62
parent 10413 afd746a538ef
child 11067 c632b47b8ff0
permissions -rw-r--r--
Wuzzy's changes to climbhome w/ some tweaks by me

HedgewarsScriptLoad("/Scripts/Locale.lua")

isSinglePlayer = true

-- trying to allow random theme, but fixed theme objects...
-- Also skip some ugly themes, or ones where the sky is "meh"
--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" }
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"}

function onGameInit()
    -- Ensure people get same map for same theme
    Theme = themes[GetRandom(#themes)+1]
    Seed = ClimbHome
    TurnTime = 999999999
    EnableGameFlags(gfOneClanMode)
    DisableGameFlags(gfBottomBorder+gfBorder)
    CaseFreq = 0
    Explosives = 0
    Map = "ClimbHome"
    AddTeam(loc("Lonely Hog"), 0xDD0000, "Simple", "Island", "Default")
    player = AddHog(loc("Climber"), 0, 1, "NoHat")
    AddTeam(loc("Water Gods"), 0x4980C1, "Simple", "Island", "Default")
    dummyHog = AddHog("Poseidon", 5, 1, "NoHat")
    --HideHog(dummyHog)
end