ensure there's always at least one gas planet next to the spawn point at max 4 chunks #234
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Done in
885f977.Measured before changing anything, and the seed had genuinely lost: zero gas planets within four chunks of the spawn, the nearest five away past five rocky ones. Gas giants are gated behind two independent noise fields — the SPACE biome and the planet roll — so whether any sat in reach was luck. Gas is an early need (the burner, ammunition), so the opening cannot depend on the noise being kind.
SPAWN_GAS_GIANT_CHUNKat (2, -2), authored likeOCTOPUS_BIOME_CENTERrather than found by searching outward: a fixed chunk is reproducible from anywhere without walking the map, which is the property the rest ofWorldGenis built on.The override is applied after every rng draw, for the same reason the dev planting is — forcing one chunk must not shift what any other chunk rolls. Confirmed by probe: the five other planets within four chunks are identical before and after, and the distant gas giants at (-5,-4) and (0,-5) are still where they were.
Verified in reverse: without the chunk, "no gas planet within 4 chunks of the spawn".