GameState.run_seed defaults to 123, silently producing identical worlds #1
Loading…
Add table
Add a link
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?
scripts/GameState.gddeclares:Nothing writes to it yet, so any code that reads
GameState.run_seedgets123and generates an identical world every run, with no indication that the seed was never set.The whole terrain and threat-cycle design rests on seeded determinism, so an unset seed silently masquerading as a valid one is the worst failure mode here — it looks like it works.
Make the unset state either loud or honest:
0and treat that as "not set" (assert or warn at the point of use), orGameStaterandomise in_ready(), so an unset seed is at least genuinely random rather than a fixed constant.Blocks meaningful testing of world generation.