Skip to content

Whole trades never refused, Global graphs per colony, colonies window design pass - #80

Merged
kramsey458 merged 7 commits into
mainfrom
claude/rc31-trades
Sep 29, 2026
Merged

kramsey458 merged 7 commits into
mainfrom
claude/rc31-trades

Conversation

@kramsey458

Copy link
Copy Markdown
Contributor

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.

  • The game takes one round per 100 of the larger side (ExchangeTerms.RoundsFor).
  • It spreads each side evenly, larger rounds first (ExchangeTerms.ShareOf): 51 for 1, then 50 for 1.
  • CrossingExchange saves each side's Whole, and Total is set per round as each crosses.
  • The offer and accept events carry whole amounts; the host checks the rounds follow from them.
  • The Rounds box is display-only: the round count, or ∞ for a repeating deal. A repeating deal's amounts stay per round, up to 100.
  • Messages, the offer panel and the colonies window say only the whole trade. Once it runs, the panel shows "round 1 of 2" and the ledger shows each round.
  • The site demo plays by the same rules, and the docs are updated.
  • This changes simulated behaviour: both players need rc31.

2. The Global history graphs (F9 goods, F10 population) show your own colony.

  • ColonyHistoryView builds a display-only history from your own districts' saved histories.
  • The game's global registries are only read.

3. Design pass of the Trading Posts and colonies window (Y) against the game's UXML/USS.

  • The window used entity-panel classes that don't reach where it's drawn. That was the dark text seen in play, and why the red Clear button showed no red.
  • It now uses only GameUI.uxml's classes, matched to the game's well-being window and batch control rows.
  • RuntimeChecks verifies every class it uses against UI.zip.

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

kramsey458 and others added 7 commits September 29, 2026 13:09
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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kramsey458
kramsey458 merged commit 02c3302 into main Sep 29, 2026
2 checks passed
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