Repository navigation
Sets and neighbourhoods: a box per finished street or neighbourhood; names on the map - #38
Merged
Merged
Conversation
…; names on the map - layout.rs: lot blocks grouped into six named neighbourhoods. - world.rs: every street with lots and every neighbourhood is a set; building its last lot opens one box, once (its own rare odds, shared pity counter). - World.sets and Layout.neighbourhoods in proto; BoxInfo.set names the set. - App: the two sets nearest done under today's goals, all begun sets in the town hall; a street-name sign at each block's corner; neighbourhood names that fade in as the camera pulls back. The mock mirrors the sets. 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.
Picks up two items PR #37 left in the roadmap: collection sets and neighbourhood names with corner signs. As decided in the thread, a finished set pays a box.
Daemon
layout.rs:NEIGHBOURHOODSgroups each lot block into one of six: Millbrook, Old Town, Church Hill, The Canal Quarter, The Exchange, Highgate. Parks keep their own names.world.rs: every street with lots and every neighbourhood is a set. Building its last lot opens one box, once. Ruins and renames don't take it back, and renaming doesn't pay again. Odds areSTREET_RARE_PCT(15) andNEIGHBOURHOOD_RARE_PCT(40). The pity counter is shared with the goal boxes, and the roll comes from the ledger.economy::open_boxnow takes the rare odds rather than aGoal.World.sets(SetInfo: built/total/done),Layout.neighbourhoods,BoxInfo.set. All areserde(default).proto.tsmirrors them.App
Checks
cargo test(137 in the daemon, incl.a_finished_set_pays_one_boxandevery_lot_block_is_in_one_neighbourhood),cargo clippy --all-targetsandcargo fmtare clean.bun test(46) andtscpass.🤖 Generated with Claude Code