Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/marmara.js
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | ...playerPlacementRandom( | ||||
stayClasses(g_TileClasses.land, scaleByMapSize(6, 25)) | stayClasses(g_TileClasses.land, scaleByMapSize(6, 25)) | ||||
]), | ]), | ||||
true); | true); | ||||
g_Map.log("Flatten the initial CC area"); | g_Map.log("Flatten the initial CC area"); | ||||
for (let position of playerPosition) | for (let position of playerPosition) | ||||
createArea( | createArea( | ||||
new ClumpPlacer(diskArea(defaultPlayerBaseRadius() * 0.8), 0.95, 0.6, Infinity, position), | new ClumpPlacer(diskArea(defaultPlayerBaseRadius() * 0.8), 0.95, 0.6, Infinity, position), | ||||
new SmoothElevationPainter(ELEVATION_SET, g_Map.getHeight(position), 6)); | new SmoothElevationPainter(ELEVATION_SET, g_Map.getVertexHeight(position), 6)); | ||||
} | } | ||||
Engine.SetProgress(50); | Engine.SetProgress(50); | ||||
addElements([ | addElements([ | ||||
{ | { | ||||
"func": addLayeredPatches, | "func": addLayeredPatches, | ||||
"avoid": [ | "avoid": [ | ||||
g_TileClasses.bluff, 2, | g_TileClasses.bluff, 2, | ||||
▲ Show 20 Lines • Show All 224 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator