Repository navigation
Give city hall and the town square their landmark ground - #52
Merged
Merged
Conversation
Landmarks now stand on sites of several slots, both rows deep: a half block (2 x 2 lots) or a whole one. The first landmark block, the Civic Centre north of Church Hill across Mill Lane, holds city hall in its west half and the town square in its east half, both facing Church Hill. A landmark still takes its turn in its district's slots, so no other lot moves; the two lots they leave in Church Hill stay empty for later. Lots carry their span (cols, rows) to the app, which centres a landmark on its site, gives city hall a forecourt with lawns, flagpoles and lamps and a garden behind, lays the square out at its new size round a bigger fountain, and draws an unbuilt site as one staked plot. Picking tests the site's rectangle. The roadmap gets the agreed landmark plan: sites, the level each unlocks at, and why they are unlocks rather than needs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First step of the landmark plan: landmarks can now stand on sites bigger than a lot.
What changes
SITESinlayout.rs): a landmark spans several slots, both rows deep — a half block (2 × 2 lots) or a whole block (4 × 2).LotInfonow carriescolsandrows(they default to 1, so older daemons and clients still work).Effect on existing cities
Players who have built city hall or the square see it move to the Civic Centre on upgrade. Its address changes; its name and history stay.
Tested
cargo test,cargo clippy --all-targets,bun test,tsc --noEmit.ui/src/layout.jsonregenerated (UPDATE_FIXTURES=1 cargo test).?mock=metropolis(both built) and?mock=city(square built, city hall's site still empty).🤖 Generated with Claude Code