powergrid-viewer 1.11.12 → 1.11.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powergrid-viewer",
3
- "version": "1.11.12",
3
+ "version": "1.11.13",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/boardgamers/powergrid.git",
@@ -18,7 +18,7 @@
18
18
  "vue": "^2.6.11",
19
19
  "vue-class-component": "^7.2.3",
20
20
  "vue-property-decorator": "^8.4.2",
21
- "powergrid-engine": "1.15.12"
21
+ "powergrid-engine": "1.15.13"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/assert": "^1.4.7",
@@ -459,7 +459,11 @@
459
459
  <strong>{{ G.map.uraniumMineResupply[G.players.length - 2][0] }}</strong>
460
460
  token(s) from the cheapest slots
461
461
  </li>
462
- <li>Bureaucracy: remove <strong>highest</strong> power plant from market</li>
462
+ <li v-if="G.map.name === 'Manhattan'">
463
+ Bureaucracy: move the <strong>two highest</strong> future-market plants to the
464
+ discard pile (see Map Specific Rules for the full deck cycle)
465
+ </li>
466
+ <li v-else>Bureaucracy: remove <strong>highest</strong> power plant from market</li>
463
467
  </ul>
464
468
  </li>
465
469
  <li v-if="G.map.name !== 'Manhattan'">
@@ -84,7 +84,7 @@
84
84
  v-else
85
85
  x="160"
86
86
  y="5"
87
- width="200"
87
+ :width="actualMarketHighlightWidth"
88
88
  height="120"
89
89
  fill="none"
90
90
  stroke="blue"
@@ -126,10 +126,16 @@ export default class PowerPlantMarket extends Vue {
126
126
  futureMarketCards: Piece[] = [];
127
127
  chosenPowerPlant: Piece | null = null;
128
128
  actualMarketWidth: number = 430;
129
+ actualMarketHighlightWidth: number = 200;
129
130
 
130
131
  createPieces(gameState: GameState) {
131
132
  this.actualMarketWidth = gameState.map.actualMarketWidth ?? 430;
132
133
  this.actualMarketCards = [];
134
+ // Step 3 holds at most 6 plants (3+3), but Manhattan's second-depletion
135
+ // "whole market buyable" state keeps up to 8 in the actual market — wrap
136
+ // at 4 per row there so cards 7 and 8 don't paint on top of the second row.
137
+ const actualPerRow = gameState.actualMarket.length > 6 ? 4 : 3;
138
+ this.actualMarketHighlightWidth = 65 * Math.min(gameState.actualMarket.length, actualPerRow) + 5;
133
139
  gameState.actualMarket.forEach((card, i) => {
134
140
  if (gameState.futureMarket.length > 0) {
135
141
  if (card.number != gameState.chosenPowerPlant?.number) {
@@ -144,8 +150,8 @@ export default class PowerPlantMarket extends Vue {
144
150
  if (card.number != gameState.chosenPowerPlant?.number) {
145
151
  this.actualMarketCards.push({
146
152
  id: 'actual_' + i,
147
- x: 165 + (i % 3) * 65,
148
- y: i < 3 ? 24 : 80,
153
+ x: 165 + (i % actualPerRow) * 65,
154
+ y: 24 + Math.floor(i / actualPerRow) * 56,
149
155
  powerPlant: card,
150
156
  });
151
157
  }