changeset 11889 | c8979eeb73fa |
parent 11067 | c632b47b8ff0 |
11888:618d99523933 | 11889:c8979eeb73fa |
---|---|
1 HedgewarsScriptLoad("/Scripts/Locale.lua") |
1 HedgewarsScriptLoad("/Scripts/Locale.lua") |
2 |
2 |
3 local isSinglePlayer = true |
3 isSinglePlayer = true |
4 |
4 |
5 -- trying to allow random theme, but fixed theme objects... |
5 -- trying to allow random theme, but fixed theme objects... |
6 -- Also skip some ugly themes, or ones where the sky is "meh" |
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" } |
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"} |
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 local showWaterStats = true -- uses the AI team to draw water height. |
|
10 local scaleGraph = true |
|
11 local totalHedgehogs = 0 |
9 local totalHedgehogs = 0 |
12 local HH = {} |
10 local HH = {} |
13 local teams = {} |
11 local teams = {} |
14 local dummyHog = nil |
12 local dummyHog = nil |
15 |
13 |
26 MineDudPercent = 0 |
24 MineDudPercent = 0 |
27 Map = "ClimbHome" |
25 Map = "ClimbHome" |
28 AddTeam(loc("Lonely Hog"), 0xDD0000, "Simple", "Island", "Default") |
26 AddTeam(loc("Lonely Hog"), 0xDD0000, "Simple", "Island", "Default") |
29 player = AddHog(loc("Climber"), 0, 1, "NoHat") |
27 player = AddHog(loc("Climber"), 0, 1, "NoHat") |
30 if showWaterStats then |
28 if showWaterStats then |
31 AddTeam(" ", 0x545C9D, "Simple", "Island", "Default") |
|
32 elseif scaleGraph then |
|
33 AddTeam(" ", 0x050505, "Simple", "Island", "Default") |
|
34 end |
|
35 if showWaterStats or scaleGraph then |
|
36 dummyHog = AddHog(" ", 0, 1, "NoHat") |
29 dummyHog = AddHog(" ", 0, 1, "NoHat") |
37 HH[dummyHog] = nil |
30 HH[dummyHog] = nil |
38 totalHedgehogs = totalHedgehogs - 1 |
31 totalHedgehogs = totalHedgehogs - 1 |
39 SendStat(siClanHealth, tostring(32640), " ") |
32 SendStat(siClanHealth, tostring(32640), " ") |
40 end |
33 end |