diff --git a/src/components/overview/PlayerTags.ts b/src/components/overview/PlayerTags.ts index 557117be60..85bdee3005 100644 --- a/src/components/overview/PlayerTags.ts +++ b/src/components/overview/PlayerTags.ts @@ -32,6 +32,9 @@ export const PlayerTags = Vue.component('player-tags', { showVenus: function(): boolean { return this.player.venusNextExtension; }, + showMoon: function(): boolean { + return this.player.moonExpansion; + }, getTagsPlaceholders: function() { const tags: {[x: string]: Tags | SpecialTags} = {...Tags, ...SpecialTags}; if (this.showColonyCount() === false) { @@ -43,6 +46,9 @@ export const PlayerTags = Vue.component('player-tags', { if (this.showVenus() === false) { delete tags.VENUS; } + if (this.showMoon() === false) { + delete tags.MOON; + } return tags; }, getCardCount: function(): number { diff --git a/src/models/PlayerModel.ts b/src/models/PlayerModel.ts index 1f92bd6a4d..a3a3ee71dd 100644 --- a/src/models/PlayerModel.ts +++ b/src/models/PlayerModel.ts @@ -46,6 +46,7 @@ export interface PlayerModel { megaCredits: number; megaCreditProduction: number; milestones: Array; + moonExpansion: boolean; name: string; oceans: number; oxygenLevel: number; diff --git a/src/server/ServerModel.ts b/src/server/ServerModel.ts index 40e6b7aca1..9598aac8a9 100644 --- a/src/server/ServerModel.ts +++ b/src/server/ServerModel.ts @@ -71,6 +71,7 @@ export class Server { id: player.id, megaCredits: player.megaCredits, megaCreditProduction: player.getProduction(Resources.MEGACREDITS), + moonExpansion: game.gameOptions.moonExpansion, name: player.name, oceans: game.board.getOceansOnBoard(), oxygenLevel: game.getOxygenLevel(), @@ -394,6 +395,7 @@ function getPlayers(players: Array, game: Game): Array { victoryPointsBreakdown: player.getVictoryPoints(game), isActive: player.id === game.activePlayer, venusNextExtension: game.gameOptions.venusNextExtension, + moonExpansion: game.gameOptions.moonExpansion, turmoilExtension: game.gameOptions.turmoilExtension, venusScaleLevel: game.getVenusScaleLevel(), boardName: game.gameOptions.boardName,