Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/maps/random/bahrain.js
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Lines | ...playerPlacementRandom( | ||||
stayClasses(g_TileClasses.land, defaultPlayerBaseRadius() / 2) | stayClasses(g_TileClasses.land, defaultPlayerBaseRadius() / 2) | ||||
]), | ]), | ||||
"towers"); | "towers"); | ||||
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)); | ||||
} | } | ||||
addElements([ | addElements([ | ||||
{ | { | ||||
"func": addLayeredPatches, | "func": addLayeredPatches, | ||||
"avoid": [ | "avoid": [ | ||||
g_TileClasses.dirt, 5, | g_TileClasses.dirt, 5, | ||||
g_TileClasses.forest, 2, | g_TileClasses.forest, 2, | ||||
▲ Show 20 Lines • Show All 310 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator