forked from mirrors/0ad
Restrict foundations on survival of the fittest
Units which are able to build can't reach the center, to build the placed foundation and the collectors can't build. This might help Petra a bit and avoid players placing foundations that cannot be built.
This commit is contained in:
@@ -15,6 +15,8 @@ export function* generateMap(mapSettings)
|
|||||||
const tTier2Terrain = g_Terrains.tier2Terrain;
|
const tTier2Terrain = g_Terrains.tier2Terrain;
|
||||||
const tTier3Terrain = g_Terrains.tier3Terrain;
|
const tTier3Terrain = g_Terrains.tier3Terrain;
|
||||||
const tTier4Terrain = g_Terrains.tier4Terrain;
|
const tTier4Terrain = g_Terrains.tier4Terrain;
|
||||||
|
const tLowland = tMainTerrain.map(singleTerrain =>
|
||||||
|
singleTerrain + TERRAIN_SEPARATOR + "obstructors/placement");
|
||||||
|
|
||||||
const oTree1 = g_Gaia.tree1;
|
const oTree1 = g_Gaia.tree1;
|
||||||
const oTree2 = g_Gaia.tree2;
|
const oTree2 = g_Gaia.tree2;
|
||||||
@@ -71,7 +73,7 @@ export function* generateMap(mapSettings)
|
|||||||
createArea(
|
createArea(
|
||||||
new ClumpPlacer(diskArea(fractionToTiles(0.15)), 0.7, 0.1, Infinity, mapCenter),
|
new ClumpPlacer(diskArea(fractionToTiles(0.15)), 0.7, 0.1, Infinity, mapCenter),
|
||||||
[
|
[
|
||||||
new TerrainPainter(tMainTerrain),
|
new TerrainPainter(tLowland),
|
||||||
new SmoothElevationPainter(ELEVATION_SET, heightLand, 3),
|
new SmoothElevationPainter(ELEVATION_SET, heightLand, 3),
|
||||||
new TileClassPainter(clLand)
|
new TileClassPainter(clLand)
|
||||||
]);
|
]);
|
||||||
@@ -105,7 +107,7 @@ export function* generateMap(mapSettings)
|
|||||||
new PathPlacer(mapCenter, passage[i], scaleByMapSize(14, 24), 0.4, scaleByMapSize(3, 9),
|
new PathPlacer(mapCenter, passage[i], scaleByMapSize(14, 24), 0.4, scaleByMapSize(3, 9),
|
||||||
0.2, 0.05),
|
0.2, 0.05),
|
||||||
[
|
[
|
||||||
new TerrainPainter(tMainTerrain),
|
new TerrainPainter(tLowland),
|
||||||
new SmoothElevationPainter(ELEVATION_SET, heightLand, 4)
|
new SmoothElevationPainter(ELEVATION_SET, heightLand, 4)
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user