Repository navigation
Whole trades never refused, Global graphs per colony, colonies window design pass - #80
Merged
Merged
Conversation
In a separate-colonies co-op game the batch control window's Global goods (F9) and population (F10) graphs showed both colonies added together. They now draw this player's colony: their own districts' saved histories added day by day on the whole map's days (wellbeing weighted by beavers, as the top bar's). ColonyHistoryView builds these display-only histories on its own lists and hands them to the graph factories in place of the game's global ones, which are only read; they are rebuilt only after a new day's sample or a change of districts, when a graph of the colony's asks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the game picks Kyler (rc30 play): "No trade offer should be refused, the game should just take of those details without concerning the player." A player types the whole trade (101 Logs for 2 Gears). The game carries it in one round per 100 of the larger side (ExchangeTerms.RoundsFor), each side spread as evenly as it goes, larger rounds first (ExchangeTerms.ShareOf: 51 then 50 Logs, 1 and 1 Gear), so exactly what was typed crosses. CrossingExchange saves the side's Whole; Total is the current round's share, set again as each round crosses. Offers, answers and the colonies window say only the whole trade; the ledger shows each round as it crossed. The Rounds box is display-only (greyed, showing the count, or infinity for a repeating deal, whose amounts stay each round's, up to 100). The site's Trading Post demo plays by the same rules. Both players need this build: an offer's amounts now mean the whole trade. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A design pass of the Trading Posts and colonies window against the game's UXML/USS (UI.zip): the named box of the population's well-being, the map editor's wooden buttons, the game's text classes. - Text uses the game's text classes (game-text-small/normal/big/heading, text--yellow), which a window has; the entity panel's (entity-panel__text) is not loaded there, so titles, amounts, buttons and the goods grid's counts read in the game's light grey instead of the theme's dark default. The white overrides go. - NativeElements.Text and its buttons also carry game-text-normal (same grey as entity-panel__text: no change in an entity panel); new GameText / WithTextClass for text sized by the game's class alone. - The box keeps the game's own padding (45 px) and is 540 wide; rows get the panel sections' padding (8/12). - A colony's buttons sit under its text, at the right, and wrap, instead of a column that squeezed the text. - Food and water pairs wrap as one; captions (Goods, Looking for:) in the game's yellow as on the Trading Post. - Clear is the window's wooden button (the entity panel's red button has no art in a window); another colony's wishes are plain green tiles, not buttons that light up on hover. - RuntimeChecks (rc31): every class the window names is listed and defined in the sheets GameUI.uxml loads, and the window is still the game's named box. StabilityTests: the same list, from the source. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # StabilityTests/Rc27Checks.cs
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.
Three changes for rc31, asked for by Kyler after rc30:
1. A trade is typed whole and never refused. You type "101 Logs for 2 Gears" and exactly that crosses.
ExchangeTerms.RoundsFor).ExchangeTerms.ShareOf): 51 for 1, then 50 for 1.CrossingExchangesaves each side'sWhole, andTotalis set per round as each crosses.2. The Global history graphs (F9 goods, F10 population) show your own colony.
ColonyHistoryViewbuilds a display-only history from your own districts' saved histories.3. Design pass of the Trading Posts and colonies window (Y) against the game's UXML/USS.
GameUI.uxml's classes, matched to the game's well-being window and batch control rows.Checks: both configurations build with 0 warnings. StabilityTests 548/548, RuntimeChecks 502/502, and the water snapshot test pass. I checked the site demo in the browser: 101 for 2 shows Rounds 2 and runs 51 then 50. Not played.
🤖 Generated with Claude Code