Skip to content

Commit

Permalink
Merge pull request #63 from tjohnson314/master
Browse files Browse the repository at this point in the history
Fix deck setup for France map
  • Loading branch information
coyotte508 committed Feb 18, 2024
2 parents 7a9258f + e684bb6 commit ec983d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/src/maps/france.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ export const map: GameMap = {
powerPlantsDeck.splice(1, 1)[0];
const step3 = powerPlantsDeck.pop()!;

powerPlantsDeck = shuffle(powerPlantsDeck, rng() + '');
if (numPlayers == 2 || numPlayers == 3) {
powerPlantsDeck = powerPlantsDeck.slice(8);
} else if (numPlayers == 4) {
Expand All @@ -272,6 +273,7 @@ export const map: GameMap = {
const first = initialPowerPlants.shift()!;
const step3 = powerPlantsDeck.pop()!;

powerPlantsDeck = shuffle(powerPlantsDeck, rng() + '');
if (numPlayers == 2) {
powerPlantsDeck = shuffle(powerPlantsDeck.slice(6).concat(initialPowerPlants), rng() + '');
} else if (numPlayers == 3) {
Expand Down

0 comments on commit ec983d9

Please sign in to comment.