Lake banks slope down to the water instead of ending in a cliff (t96)
Digging basins to the lower rim left a 9-18 grain vertical cliff on each lake's high side (owner screenshots, seed 766733). From each edge inward the ground now falls at most 0.7 grains a column and is never raised above the natural surface. New no-cliff check in t_lakes.js; world hashes re-baselined (shallow ore: 2 cells changed, on a lake bank). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -185,8 +185,8 @@ oreNames.forEach((name, j) => {
|
||||
});
|
||||
const totalOre = oreBalance.counts.reduce((a, b) => a + b, 0);
|
||||
check('total ore is about 4 to 4.5 times the original', totalOre >= 162519 * 4 && totalOre <= 162519 * 4.5, totalOre);
|
||||
// t96 round 3: lake basins moved, so ore under them changed (414 cells, all under the two lakes).
|
||||
check('shallow ore matches the original generator', oreBalance.shallowHash === 607138519, oreBalance.shallowHash);
|
||||
// t96: lake basins moved and their high banks now slope, so ore there changed (only at the two lakes).
|
||||
check('shallow ore matches the original generator', oreBalance.shallowHash === 1640715415, oreBalance.shallowHash);
|
||||
run('generateWorld(99, 4096, 1536, null)');
|
||||
const marks = run('(()=>{let lakes=0,peaks=0,inLake=false;for(let x=1;x<W-1;x++){const l=mat[(surfY[x]-1)*W+x]===WATER;if(l&&!inLake)lakes++;inLake=l;if(surfY[x]<surfBase-100&&surfY[x]<=surfY[x-1]&&surfY[x]<surfY[x+1])peaks++;}return [lakes,peaks]})()');
|
||||
check('a large world has several lakes and mountains across it', marks[0] >= 2 && marks[1] >= 2, marks);
|
||||
|
||||
Reference in New Issue
Block a user