From d995dcebfac93c0ce0689229cbfa99fb479bffd1 Mon Sep 17 00:00:00 2001 From: FeXoR Date: Fri, 8 May 2020 18:14:44 +0000 Subject: [PATCH] Reduce areas players can't place buildings on due to high inclination/bumpiness on random map Wild Lake. Reported by OptimusShepard at https://code.wildfiregames.com/D1624 Tested by: FeXoR This was SVN commit r23642. --- binaries/data/mods/public/maps/random/wild_lake.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binaries/data/mods/public/maps/random/wild_lake.js b/binaries/data/mods/public/maps/random/wild_lake.js index a419d3a886..83c427b445 100644 --- a/binaries/data/mods/public/maps/random/wild_lake.js +++ b/binaries/data/mods/public/maps/random/wild_lake.js @@ -419,7 +419,7 @@ function placeStartLocationResources( * Base terrain shape generation and settings */ // Height range by map size -let heightScale = (g_Map.size + 256) / 768 / 4; +let heightScale = (g_Map.size + 512) / 1024 / 5; let heightRange = { "min": MIN_HEIGHT * heightScale, "max": MAX_HEIGHT * heightScale }; // Water coverage @@ -474,7 +474,7 @@ for (let i = 0; i < 5; ++i) g_Map.log("Smoothing map"); createArea( new MapBoundsPlacer(), - new SmoothingPainter(1, 0.8, 1)); + new SmoothingPainter(1, 0.5, Math.ceil(g_Map.size/128) + 1)); g_Map.log("Rescaling map"); rescaleHeightmap(heightRange.min, heightRange.max);