Purpose seeds follow one rule; unknown noise styles fail

PackWorld.seed(purpose) is a default method, WorldRandom.purposeSeed of
the world seed, for every host and purpose: the exception that let a
host answer its own built-ins with older seeds is gone. An unknown style
name or a missing expression now fails like a missing image map, instead
of sampling flat or falling back to the base style.
This commit is contained in:
piexel committed 2026-11-06 07:31:08 +01:00
1 parent 264f754297
commit e8fca6d8c6
9 files changed
+17 -32

No files matched your search

+2 -3
View File
@@ -148,9 +148,8 @@ stage uses its own stream within one invocation and must not share or keep it.
A module's own world-wide randoms and noise take `world.seed(purpose)`, the seed the world gives a purpose id such as
`example:moss/patches`: the same for the same world and purpose, independent across purposes, so two modules never
mix the world seed into the same value by hand. Hosts answer `WorldRandom.purposeSeed(world.seed(), purpose)`, pinned
like every other `WorldRandom` value; Iris answers its built-ins' `iris:seed/*` purposes with the seeds its worlds
always had.
mix the world seed into the same value by hand. It is `WorldRandom.purposeSeed(world.seed(), purpose)` for every
purpose and host (a default method of `PackWorld`), pinned like every other `WorldRandom` value.
## The mantle pipeline and reach