lay out rivers as the Rivers mod does

Every stored riverDistance column matches. Plates are built from 25
ocean samples per zone rather than a region map per zone, and the
ocean distance from a ring search that finds what the mod's BFS does,
so a plate costs 0.08 s; workers cache a few, as a wide view spans
several.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 18:40:53 +03:00
parent 5ad62524f1
commit 517d279c8d
10 changed files with 1257 additions and 38 deletions

View File

@@ -13,6 +13,8 @@
(import save)
(import dump)
(import worldgen)
(import fastnoise)
(import rivers)
(import settings)
(import verify)
@@ -86,7 +88,8 @@
(if (! g)
(return 1))
(var s (* save) (save/open save-path))
(var failed int (+ (verify-stories s g) (verify-regions s g out)))
(var failed int (+ (verify-stories s g) (verify-regions s g out)
(verify-rivers s g (river-config/defaults) out)))
(save/close s)
(return failed))