Avoid creating rooms with no exits #29
Loading…
x
Reference in New Issue
Block a user
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?
Right now the player can end up in a room with no exits. This is apparently caused by some bug in how we account for junctions. So uh, fix that!
Fix map generator bugsto Avoid creating rooms with no exitsThe code that was ported to produce
mapgen.ts
, this specific Dart code associated with this blog post, has been updated in the interim as it becomes a thing for a specific game with a lot of rewriting since then, but I discovered a specific revision in the changelogs that refers to the exact symptom being described here: the description of the commit "Make dungeons and mixed style levels more robust." includes, as part of one of its bullet points, "Fixes cases where you'd get a solitary starting room."So that makes me suspect the port is faithful and has faithfully created a bug. Looking into this patch to see what looks like it would fix this bug, and then figuring out how to mentally map that back to the original design of this map generator, and from there onto its TypeScript counterpart.
The patch I found on the original repo is probably for a different issue. Oh well.
Fixed in #39 .