Skip to content

Commit

Permalink
Final scoring tile "Federation Structures": Show hint on Automa setup…
Browse files Browse the repository at this point in the history
… screen (#19)
  • Loading branch information
stefanseifert authored Nov 30, 2024
1 parent a217221 commit 9bfa7ef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/setup/AutomaSetup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<li v-html="t('setupGameAutoma.playerTokens')"></li>
<li v-html="t('setupGameAutoma.startVP', {count:botStartVP})"></li>
<li v-html="t('setupGameAutoma.satellites')"></li>
<ul v-if="isScoringFinalTileFederationStructures">
<li v-html="t('endOfGame.scoringFinalTileFederationStructures')"></li>
</ul>
<template v-if="hasLostFleet">
<li v-html="t('setupGameAutoma.explorationShuttle')"></li>
</template>
Expand Down Expand Up @@ -37,6 +40,7 @@ import { useStateStore } from '@/store/state'
import DifficultyLevel from '@/services/enum/DifficultyLevel'
import DirectionalSelection from '@/services/enum/DirectionalSelection'
import Expansion from '@/services/enum/Expansion'
import ScoringFinalTile from '@/services/enum/ScoringFinalTile'
export default defineComponent({
name: 'AutomaSetup',
Expand Down Expand Up @@ -84,6 +88,9 @@ export default defineComponent({
},
isNeutralPlayer() : boolean {
return this.totalPlayerCount < 3
},
isScoringFinalTileFederationStructures() : boolean {
return (this.state.setup.scoringFinalTiles ?? []).includes(ScoringFinalTile.FEDERATION_STRUCTURES)
}
},
methods: {
Expand Down

0 comments on commit 9bfa7ef

Please sign in to comment.