Commit graph

918 commits

Author SHA1 Message Date
c8aae01636 Add Power Grid endgame achievements for coordinator review 2026-11-14 00:45:55 +00:00
abe1c841bd Release analysis money editing: engine 2.0.31 and viewer 2.3.30 2026-11-13 12:53:02 +00:00
cd400d019e Record verified BGS engine 2.0.30 publication 2026-11-12 21:57:46 +00:00
da164b00ba Release engine 2.0.30: reveal sealed bids in fixed seat order 2026-11-12 21:57:10 +00:00
github-actions
e433b2ad0d 🔖 powergrid-viewer 2.3.29 2026-11-11 21:50:21 +00:00
github-actions
65f9b9f073 🔖 powergrid-engine 2.0.29 2026-11-11 21:48:28 +00:00
MikeIsom
96f3dedd5e
Shuffled Decks on every map, deck rules on the rules window, skipping Step 2 fix (#169)
* Count only wind plants as ecological, behind one switch

Benelux's extra market slot and Québec's protected plants now share one
isEcological() helper. Fusion is not ecological unless FUSION_IS_ECOLOGICAL
is flipped. New Benelux and Québec games store the ruling as
options.fusionEcological, so flipping it later only affects new games.

Québec's deck setup used to protect fusion plant 50 while its bureaucracy
and Benelux did not. Games without the stored flag rebuild their Québec
deck the old way via reconstructionOptions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Add a power plant deck option with Deck 1, Deck 2 and Random

New games choose a deck with options.powerPlantDeck: standard, deck1 (The
New Power Plants / Set 1, without 52-60), deck2 (Set 2) or random, which
resolves from the seed and stores the result. Only a non-standard deck is
stored.

Deck 1 deals from 01-08 with 11 on top in the Original edition and from
the 01-16 plug cards in Recharged. Deck 1 and Deck 2 are offered on maps
whose setup doesn't name standard-deck plant numbers; the rest fall back
to the standard deck until their per-deck changes land. Germany's uranium
phase-out triggers on 38 (Deck 1) or 37 (Deck 2).

The legacy alternatePowerPlants flag keeps its Europe/North America-only
behaviour and storage, so existing games set up identically.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Offer Deck 1 and Deck 2 on every map

Map rules that name plant numbers now look them up per deck in
deckChanges.ts: removed plants, market openers, top-of-deck plants and
Spain & Portugal's Step 2 plants, from the decks' 2024 map-changes sheets.
Map setup and the deck analysis share that table. Original-edition games
use the same numbers, except France with Deck 1, which follows The New
Power Plants rulebook (remove 11).

Australia, India, South Africa, Spain & Portugal and UK & Ireland now use
the shared default setup instead of their own copies. India has a version
of each deck. Italy's uranium phase-out uses Germany's plant per deck.
Northern Europe's regional cards replace the deck's plants by number, and
a regional plant the deck lacks is shuffled into the draw pile. Middle
East closes garbage purchases in Step 1, for Deck 2's garbage/oil hybrids.

Standard-deck setups are unchanged for old and new games. Also stops the
ecological replay test from comparing the transient pendingMessages queue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Add shuffled power plant decks: all decks, or one per number

powerPlantDeck now also takes 'shuffled' (every plant of the standard deck,
Deck 1 and Deck 2 together) and 'shuffledUnique' (one random copy of each
number, without Deck 1's 52-60). Extra copies are numbered n.1 (Deck 1) and
n.2 (Deck 2), so the market ranks duplicates Deck 2 > Deck 1 > Original and
moves keep identifying plants by number. Cards show the printed number, and
logs read "Power Plant 46 (Deck 2)"; the journal and the deck analysis
parse that label back to the copy.

Bids start at the printed number, the Original discard rule and plug
cards compare it, and each deck's own nuclear plant ends Germany's and
Italy's uranium resupply. The shuffled decks are only offered on maps
whose rules don't name plant numbers; Random still picks a single deck.

Standard-deck setups are unchanged for old and new games.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Offer the shuffled decks on maps with deck-specific rules

The shuffled decks follow all three decks' map rules at once, for the
copies dealt: Deck 1's and Deck 2's plant numbers become n.1 and n.2.
This opens them on Australia, Brazil, Bremen, China, France, India,
Manhattan, Middle East, Recharged Russia, South Africa and Spain &
Portugal.

Exceptions, where the decks' rules clash:
- Northern Europe and Quebec keep the single decks only.
- Original Russia keeps the single decks only (availableDecks now takes
  the variant).
- Original "top of the deck" plants use the standard deck's list.

Spain & Portugal stores the dealt held-back copies in heldPowerPlants
and puts them on top at Step 2. India's shuffled decks keep India's
garbage plants. Map setups deal the sampled deck and split plug cards
with isPlugPlant.

The analysis sampler now copes with shuffled decks: undealt top plants,
protected-plant overflow and plug-count estimates are capped. The
Middle East public replay resets the plant discount before refiltering
its opening market.

Single-deck setups are byte-identical to before for every map,
variant, deck, player count and seed checked.

* Offer the shuffled decks on Northern Europe, Quebec and Original Russia

Where the three decks' rules clash, the shuffled decks now follow each
rule's purpose:

- Northern Europe: each regional plant in play is always dealt. It takes
  the place of one dealt copy of its number, and every other copy leaves
  the game; a regional number that wasn't dealt is shuffled in. This
  also applies once the regions are drafted, which now also updates
  cardsLeft.
- Quebec: one plug card on top of the deck, then the two smallest dealt
  ecological plants not in the market. The Recharged market is drawn
  from the plug cards; the Original market is the eight smallest plants,
  with the standard deck's 13 (if dealt) or else the smallest plug card
  left on top. Ecological plants are never removed.
- Original Russia: the six smallest dealt plants open the market, the
  standard deck's 13 goes on top if dealt, and the 7th and 8th smallest
  plants are shuffled into the top five.

The analysis sampler mirrors all three. Maps can give a `shuffled` deck
note, which the viewer shows for the shuffled decks.

Single-deck setups are unchanged for every map, variant, deck, player
count and seed checked.

* Generate the rules tab's deck build from the deck tables

The rules dialog's "Deck build" section is now built from the same tables
the decks are dealt from (deckChanges.ts and each deck's card list), so
it names the right plants for Deck 1, Deck 2 and the shuffled decks
instead of always the Original deck's. Shuffled games list each rule's
plants as Original deck / Deck 1 / Deck 2, with a sentence explaining
that only the dealt plants count. Player-count lists show the game's
own player count.

Each sentence is a template with plant numbers as {pN} values, rendered
in its own span, so the catalogues translate it whole. The 54 new
templates are translated into all 16 languages; the 20 old deck-build
sentences are removed. The maps' hand-written deckBuild notes are gone.

Tests read the plant numbers back out of the generated text and compare
them with real setups for every map, edition, single deck and player
count, and check that every sentence translates in every language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Describe Central Europe's nuclear and Wien rules

Central Europe had no map rules text, though the engine limits nuclear
plants to players with a city in Czechia, Slovakia or Hungary and gives
a Wien network $1 off garbage (never below $1). The rules dialog now
says so, in all 17 languages, using each catalogue's own name for Wien.

The dialog reads a map's rules from the current map definition rather
than the copy saved in the game, so games already under way see rules
text added later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Outline buildable Bremen districts around the diamond

The blue build hint and the gold region-draft ring were fixed 18-unit
circles, which on Bremen's diamond tiles crossed the entry cost and slot
numbers. Bremen's tiles now get a diamond outline just outside their own
region border instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Begin Step 2 first when the Step 3 card comes early

The rulebooks: if the Step 3 card is drawn before Step 2 has begun,
carry out everything that begins Step 2, then prepare Step 3, back to
back. The engine only did this on UK & Ireland, and without Step 2's
own setup, so on Spain & Portugal the held-back plants never came back.

Step 2's setup (the smallest plant leaves, Spain & Portugal puts its
held-back plants on top, a new plant is drawn) is now one function.
Normal Step 2 uses it unchanged, and an early Step 3 card runs it first:
straight away outside the auction, or at the end of the auction phase
with Step 3's own setup, which then shuffles the draw pile again.
Middle East, China and Manhattan keep their own rules.

New games store step2BeforeStep3; games created earlier replay with
their old sequence.

The rules summary now lists what happens when Step 2 and Step 3 start,
and the early-Step-3 order, in all 17 languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Remove a stale Manhattan line brought back by the master merge

Merging the fork's older master into combined-deck-rules restored
`const lastPlug = lastPlugPlant(powerPlantDeck)` in Manhattan's setup.
lastPlugPlant isn't imported there and the value is unused, so the
engine build failed and CI went red on the branch and on master.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:45:47 -08:00
github-actions
f929ea8dd0 🔖 powergrid-engine 2.0.28 2026-11-11 19:13:03 +00:00
goldjohn6
bbe533ee8d
Show plug cards on the draw pile for every deck (#168)
* Show plug cards on the draw pile for every deck

The draw pile darkens when its top card is a plug card, and the engine
decided that by comparing the plant number with 15. That was right for the
standard deck only. Deck 1 has plug cards up to 16, and the shuffled decks
mix in copies such as 16.1 and 15.2, so in those games a plug card on top
was shown as an ordinary one.

Ask the deck instead, with the isPlugPlant() rule the decks already use.
For the standard deck (and India, and Deck 2) it is the same test as
before, so those games cannot change.

Measured over seeded 3p/5p Recharged games on Italy, USA and Germany:
before, 41/3112 states wrong on Deck 1, 40/3278 on shuffled, 31/3420 on
shuffled-unique, 0/3338 on standard; after, 0 on all four. The new test
fails on the old code ("deck1: 16 on top: expected false to equal true").

Found while answering Frankie_Stein's report on Italy_Rechrg_1103 (a
standard-deck game, so this is not the cause of that report).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix the engine lint error that has kept CI red since 2.0.26

`pnpm lint` fails on master since e954346: prefer-const flags `bidder` and
`plant` in sealed-bid-privacy.spec.ts, destructured with `let` alongside
`state`, which is reassigned. Split the destructuring; the test is unchanged
and still passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 11:09:28 -08:00
d381197fdc Release engine 2.0.27 and viewer 2.3.28: correct replay deck counts 2026-11-10 23:20:59 +00:00
e954346757 Release engine 2.0.26: redact sealed auction last moves 2026-11-10 18:23:57 +00:00
30dcc16f44 Format verified analysis release receipt 2026-11-10 09:36:38 +00:00
2667beccee Release analysis fixes: engine 2.0.25 and viewer 2.3.27 2026-11-10 09:36:25 +00:00
5fc0e22236 Fix interactive analysis cash and manual-seat policy 2026-11-10 08:25:37 +00:00
github-actions
0f0f3eb24d 🔖 powergrid-viewer 2.3.26 2026-11-08 17:16:42 +00:00
goldjohn6
ed4738e2ea
Show the printed price when you are the only buyer left (#167)
In the shuffled decks a plant's extra copies are numbered 13.1 / 13.2, and
the sole-buyer confirmation used that number as the price, so it asked
"Buy Power Plant 13 (Deck 1) for $13.1?". The engine already charges the
printed number (Math.floor), so only the dialog was wrong. Round it down
the same way; the Recharged $1 discount plant is unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 09:13:29 -08:00
github-actions
b06e7f3e66 🔖 powergrid-viewer 2.3.25 2026-11-08 16:53:19 +00:00
github-actions
3091336e6e 🔖 powergrid-engine 2.0.24 2026-11-08 16:51:57 +00:00
MikeIsom
fcc0a127d9
Deal a standard-sized deck for "all three decks shuffled" (#166)
Shuffled games put every plant of all three decks in play, leaving about
114 cards in the draw pile, so games rarely reached Step 3. New shuffled
games instead draw 42 plants at random from all three decks, keeping the
standard deck's 13 plug and 29 socket cards plus the Step 3 card; the
usual player-count removals still apply. Duplicates and missing numbers
are possible, unlike the one-per-number deck.

New games store options.shuffledSample. Older shuffled games have none
(reconstructionOptions forces it off), so they keep the full pile and
replay exactly as before.
2026-11-08 08:50:04 -08:00
github-actions
4e22d0f19c 🔖 powergrid-viewer 2.3.24 2026-11-04 22:17:14 +00:00
github-actions
c7f899c62a 🔖 powergrid-engine 2.0.23 2026-11-04 22:14:53 +00:00
goldjohn6
de6f0703fb
End a game nobody can finish, and never sell a 9999 city (#165)
UK & Ireland's island jump needs an empty city, so a player locked on one
island tops out at its cities (14 and 12 on a 4-region board). If nobody
crosses before the other island fills, no one can ever reach the end count
and the game never ended. Two seeded bot games showed how master escaped:
after ~105 rounds a player saved $9999 and bought a city priced 9999, the
engine's "impossible" marker (occupied, or across the sea).

New games store options.stallEnds. For them, the game ends after a Step 3
Building phase in which no active player could ever build again (whatever
their money), scored as usual; and a 9999 price is never affordable.
Older games have no stamp (reconstructionOptions forces it off), so they
play and replay exactly as before.

Build pricing moves out of availableMoves into buildOptions() so the
money-filtered moves and noPlayerCanBuild() share every map rule.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 14:11:27 -08:00
MikeIsom
57b7e75f95
Update middleeast.ts Rules (#164)
* Update middleeast.ts Rules

* Translate the Middle East garbage rule in every language

The map's rules text is also its translation key, so the new sentence
("During step 1, garbage cannot be bought.") needs the key and each
translation updated, or every non-English player falls back to English.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: John Gold <goldjohn6@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 14:09:59 -08:00
MikeIsom
75b9d5f69f
Plant Deck Set 1 (#163)
* Count only wind plants as ecological, behind one switch

Benelux's extra market slot and Québec's protected plants now share one
isEcological() helper. Fusion is not ecological unless FUSION_IS_ECOLOGICAL
is flipped. New Benelux and Québec games store the ruling as
options.fusionEcological, so flipping it later only affects new games.

Québec's deck setup used to protect fusion plant 50 while its bureaucracy
and Benelux did not. Games without the stored flag rebuild their Québec
deck the old way via reconstructionOptions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Add a power plant deck option with Deck 1, Deck 2 and Random

New games choose a deck with options.powerPlantDeck: standard, deck1 (The
New Power Plants / Set 1, without 52-60), deck2 (Set 2) or random, which
resolves from the seed and stores the result. Only a non-standard deck is
stored.

Deck 1 deals from 01-08 with 11 on top in the Original edition and from
the 01-16 plug cards in Recharged. Deck 1 and Deck 2 are offered on maps
whose setup doesn't name standard-deck plant numbers; the rest fall back
to the standard deck until their per-deck changes land. Germany's uranium
phase-out triggers on 38 (Deck 1) or 37 (Deck 2).

The legacy alternatePowerPlants flag keeps its Europe/North America-only
behaviour and storage, so existing games set up identically.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Offer Deck 1 and Deck 2 on every map

Map rules that name plant numbers now look them up per deck in
deckChanges.ts: removed plants, market openers, top-of-deck plants and
Spain & Portugal's Step 2 plants, from the decks' 2024 map-changes sheets.
Map setup and the deck analysis share that table. Original-edition games
use the same numbers, except France with Deck 1, which follows The New
Power Plants rulebook (remove 11).

Australia, India, South Africa, Spain & Portugal and UK & Ireland now use
the shared default setup instead of their own copies. India has a version
of each deck. Italy's uranium phase-out uses Germany's plant per deck.
Northern Europe's regional cards replace the deck's plants by number, and
a regional plant the deck lacks is shuffled into the draw pile. Middle
East closes garbage purchases in Step 1, for Deck 2's garbage/oil hybrids.

Standard-deck setups are unchanged for old and new games. Also stops the
ecological replay test from comparing the transient pendingMessages queue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Add shuffled power plant decks: all decks, or one per number

powerPlantDeck now also takes 'shuffled' (every plant of the standard deck,
Deck 1 and Deck 2 together) and 'shuffledUnique' (one random copy of each
number, without Deck 1's 52-60). Extra copies are numbered n.1 (Deck 1) and
n.2 (Deck 2), so the market ranks duplicates Deck 2 > Deck 1 > Original and
moves keep identifying plants by number. Cards show the printed number, and
logs read "Power Plant 46 (Deck 2)"; the journal and the deck analysis
parse that label back to the copy.

Bids start at the printed number, the Original discard rule and plug
cards compare it, and each deck's own nuclear plant ends Germany's and
Italy's uranium resupply. The shuffled decks are only offered on maps
whose rules don't name plant numbers; Random still picks a single deck.

Standard-deck setups are unchanged for old and new games.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 13:41:57 -08:00
ddfae0915f Release viewer 2.3.23 with text actions and consistent board controls 2026-11-02 21:04:17 +00:00
8e3e41587b Release viewer 2.3.22 with remaining-card count on the draw pile 2026-11-02 20:32:15 +00:00
776aad8d22 Release viewer 2.3.21: phase-aware skip controls and consistent icon hover 2026-11-01 21:49:04 +01:00
06bb0aebf6 Release viewer 2.3.20: consistent action controls and stable resource previews 2026-11-01 21:28:18 +01:00
fcf31f459e Release viewer 2.3.19 with phase/action pictograms and simpler preferences 2026-11-01 18:52:11 +01:00
github-actions
087d514be4 🔖 powergrid-viewer 2.3.18 2026-11-01 16:26:51 +00:00
github-actions
e39daffab6 🔖 powergrid-engine 2.0.22 2026-11-01 16:24:40 +00:00
goldjohn6
3c6719acaa
Wien garbage never free in Central Europe; UK & Ireland "completely vacant city" wording (#162)
* Never let the Wien discount make garbage free in Central Europe

Both Central Europe rulebooks (Original 2006/2011 and Recharged) give a
player connected to Wien garbage at $1 off "with the stipulation that his
cost per piece may not be 0": from the first space he pays $1. The engine
and the market box subtracted $1 with no floor, so a full market sold
garbage for $0. Engine, available moves and the box now share one price.

Six ended games on the server did buy garbage for $0. A game whose log
already shows such a buy is rebuilt with the old discount
(reconstructionOptions), so history and analysis replay them as played;
no live game has one, so they all get the floor from their next buy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Say UK & Ireland island jumps need a completely vacant city

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Reword the UK & Ireland jump rule in every language

"An EMPTY spot" read like a free slot in an occupied city; the engine only
allows a jump to a city with no houses at all. Re-keys the 17 catalogues.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 08:20:20 -08:00
github-actions
bf4433dd84 🔖 powergrid-viewer 2.3.17 2026-10-31 16:46:35 +00:00
github-actions
596f929469 🔖 powergrid-engine 2.0.21 2026-10-31 16:44:59 +00:00
goldjohn6
aa29b7cf7c
Recharged starting garbage for Brazil and France. (#161)
* Start France and Brazil Recharged with garbage on spaces 6-8

Both Recharged rulebooks fill garbage (biogas in Brazil) on spaces 6-8, i.e.
9 tokens, but the maps' single startingResources array held the Original
count of 6 for both variants. startingResources can now name each variant.

Games created before this keep their original market when rebuilt: setup
records rechargedStartingResources for new games, and replay/reconstructState
treat a missing flag as the old behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Format PlayerBoard.vue with Prettier

Whitespace only; master's prettier check has failed on this file since 3adad0c.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 09:39:44 -07:00
github-actions
d3ecf28424 🔖 powergrid-engine 2.0.20 2026-10-31 16:38:57 +00:00
3adad0cc0d Release auction auto-pass with a personal player-card setting 2026-10-26 20:42:38 +01:00
22d4a0b80c Release viewer 2.3.14 with stable board layout and readable player column 2026-10-25 14:09:57 +01:00
295d50da8b Add optional Recharged plant discount cutoff at Step 3 2026-10-24 21:51:58 +02:00
ee31b0be68 Show regional power plants correctly in the journal 2026-10-24 21:46:17 +02:00
537e41e318 Add hand-authored Simplified Chinese game localization 2026-10-20 14:12:18 +02:00
github-actions
4873f48657 🔖 powergrid-viewer 2.3.11 2026-10-19 19:40:20 +00:00
github-actions
7ff589d3b3 🔖 powergrid-engine 2.0.17 2026-10-19 19:38:25 +00:00
goldjohn6
3f9295292a
Make Bremen easier to read: larger district tiles and a tighter board (#160)
Amy (70s eyes) found Bremen's district text hard to read.

- Viewer: every part of a node-weighted district tile scales by one factor
  (TILE_SCALE = 1.3): the diamond, house slots, slot numbers, entry-cost coin
  and the houses placed in them, so the pieces keep their relative places.
- Engine: Blumenthal, Vegesack and Burglesum move down and right (placed with
  the coord picker), which narrows the board so the adaptive layout zooms it
  in. Hofen moves down 20 so the Burglesum-Seehausen link no longer clips it.
  Adjacency and rules are unchanged; only x/y move.
- Geography: Bremen's outline is regenerated from the updated anchors, so the
  land follows the new positions. Other maps' assets are untouched.

New district positions reach new games only (map data is stored at setup);
the larger tiles reach every game on reload.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 12:32:33 -07:00
a28bf041c0 Refresh custom player colours when live preferences change 2026-10-17 22:52:37 +02:00
464b8e5d88 Use custom BGS colours without replacing other players' colour choices 2026-10-17 22:49:03 +02:00
287343f11c Release viewer 2.3.8 preserving custom BGS colours after colour selection 2026-10-17 22:35:40 +02:00
github-actions
ef972c74fc 🔖 powergrid-viewer 2.3.7 2026-10-12 03:02:02 +00:00
github-actions
42861a256e 🔖 powergrid-engine 2.0.15 2026-10-12 02:59:39 +00:00
mmunson99
c50b5951a1
Add an alternate power plant deck option for Europe and North America (#159)
* Add an alternate power plant deck option for Europe and North America

New game option `alternatePowerPlants`. On the Europe and North America maps it
replaces the standard deck with the alternate deck: same card numbers, new
fuels and outputs. The option is ignored on every other map.

The deck adds a garbage/oil hybrid plant type (plants 8, 22 and 35). It burns
any mix of garbage and oil and has one shared storage tank, like the coal/oil
hybrid. Buying, storage, discarding, powering and end-game scoring all handle
the shared tank. Players without that plant keep the existing coal/oil logic
unchanged, and games without the option keep their exact state shape.

* Draw alternate-deck plants in the journal from the alternate deck

The journal drew every plant through getPowerPlant(number, mapName), which
only knew the India and standard catalogues. In an alternate-deck game the
journal showed the standard card for each number: 22 appeared as a wind 2,
27 as a wind 3 and 33 as a wind 4.

getPowerPlant now looks plants up through plantCatalogue, so it takes an
alternatePowerPlants flag. The journal passes the game's option through.
Every other caller passes no flag and gets the same card as before.

Found in a hand playtest of this PR on Europe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: John Gold <goldjohn6@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 19:55:02 -07:00