changeset 15502 | ad9fe7dc2ff7 |
parent 15501 | 5a30396f8fb2 |
15501:5a30396f8fb2 | 15502:ad9fe7dc2ff7 |
---|---|
2 |
2 |
3 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" } |
|
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"} |
7 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 totalHedgehogs = 0 |
8 local totalHedgehogs = 0 |
10 local HH = {} |
9 local HH = {} |
11 local teams = {} |
10 local teams = {} |
12 local dummyHog = nil |
11 local dummyHog = nil |
13 |
12 |
14 |
13 |
15 function onGameInit() |
14 function onGameInit() |
15 Theme = themes[GetRandom(#themes)+1] |
|
16 -- Ensure people get same map for same theme |
16 -- Ensure people get same map for same theme |
17 Theme = themes[GetRandom(#themes)+1] |
|
18 Seed = "" |
17 Seed = "" |
19 TurnTime = MAX_TURN_TIME |
18 TurnTime = MAX_TURN_TIME |
20 EnableGameFlags(gfOneClanMode) |
19 EnableGameFlags(gfOneClanMode) |
21 DisableGameFlags(gfBottomBorder+gfBorder) |
20 DisableGameFlags(gfBottomBorder+gfBorder) |
22 CaseFreq = 0 |
21 CaseFreq = 0 |