Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/archipelago.js
Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Lines | for (var i = 0; i < numPlayers; i++) | ||||
var cityRadius = radius/3; | var cityRadius = radius/3; | ||||
placer = new ClumpPlacer(PI*cityRadius*cityRadius, 0.6, 0.3, 10, ix, iz); | placer = new ClumpPlacer(PI*cityRadius*cityRadius, 0.6, 0.3, 10, ix, iz); | ||||
var painter = new LayeredPainter([tRoadWild, tRoad], [1]); | var painter = new LayeredPainter([tRoadWild, tRoad], [1]); | ||||
createArea(placer, painter, null); | createArea(placer, painter, null); | ||||
} | } | ||||
createBumps([avoidClasses(clPlayer, 10), stayClasses(clLand, 5)]); | createBumps([avoidClasses(clPlayer, 10), stayClasses(clLand, 5)]); | ||||
if (randInt(1,2) == 1) | if (randBool(0.5)) | ||||
elexis: ✓ | |||||
createHills([tMainTerrain, tCliff, tHill], [avoidClasses(clPlayer, 2, clHill, 15), stayClasses(clLand, 0)], clHill, scaleByMapSize(1, 4) * numPlayers); | createHills([tMainTerrain, tCliff, tHill], [avoidClasses(clPlayer, 2, clHill, 15), stayClasses(clLand, 0)], clHill, scaleByMapSize(1, 4) * numPlayers); | ||||
else | else | ||||
createMountains(tCliff, [avoidClasses(clPlayer, 2, clHill, 15), stayClasses(clLand, 0)], clHill, scaleByMapSize(1, 4) * numPlayers); | createMountains(tCliff, [avoidClasses(clPlayer, 2, clHill, 15), stayClasses(clLand, 0)], clHill, scaleByMapSize(1, 4) * numPlayers); | ||||
createForests( | createForests( | ||||
[tMainTerrain, tForestFloor1, tForestFloor2, pForest1, pForest2], | [tMainTerrain, tForestFloor1, tForestFloor2, pForest1, pForest2], | ||||
[avoidClasses(clPlayer, 20, clForest, 17, clHill, 0), stayClasses(clLand, 4)], | [avoidClasses(clPlayer, 20, clForest, 17, clHill, 0), stayClasses(clLand, 4)], | ||||
clForest, | clForest, | ||||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
✓