Skip to content

Lateania: make city districts walkable (you couldn't move between district rooms)#401

Open
hardlygospel wants to merge 1 commit into
mpiorowski:mainfrom
hardlygospel:fix/lateania-city-districts-walkable
Open

Lateania: make city districts walkable (you couldn't move between district rooms)#401
hardlygospel wants to merge 1 commit into
mpiorowski:mainfrom
hardlygospel:fix/lateania-city-districts-walkable

Conversation

@hardlygospel

Copy link
Copy Markdown
Contributor

Thanks @mpiorowski! A follow-up bugfix for the city districts that shipped in The Wide World (#386).

The bug

Each capital's district was a hub-and-spoke: a spine room fanned out to four "haunts", and every haunt had a single exit back to the spine. So standing in, say, the Stonecutters' Court you could only go back the way you came — hence the wall of "You can't go west." You could never move between the haunts, only in-and-out through the hub.

The fix

Lay each district out as a walkable street: the spine faces the square, and the four haunts run off it along one axis, chained to each other (preferring an east-west run). Now you stroll down the street through them and back. Applies to all four capitals (Lamplit Quarter, Saltwind Wharves, Hightarn Terraces, Sunbaked Bazaar) from the one generator.

Regression test

Adds city_districts_are_a_walkable_street_not_dead_end_rooms, asserting each district's rooms link to a sibling haunt (a street), not merely dead-end at the spine — which the old star failed.

cargo test -p late-ssh --lib door::lateania::world   # 34 pass (incl. the new test)

Branched off current main; touches only world.rs.

Each capital's district was a hub-and-spoke: a spine room fanned out to
four haunts, and every haunt had a single exit back to the spine. So
from a room like the Stonecutters' Court you could only go back the way
you came ("You can't go west"), never move between the haunts.

Lay each district out as a walkable street instead: the spine faces the
square and the four haunts run off it along one axis, chained to each
other, preferring an east-west run. Now you stroll through them and back.

Adds a regression test that each district's rooms link to a sibling (a
street), not just dead-end at the spine.

cargo test / clippy / fmt green.

Signed-off-by: Tony Hosaroygard <tasmaniamate@gmail.com>
@hardlygospel hardlygospel requested a review from mpiorowski as a code owner July 5, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant