Skip to content

Commit

Permalink
Automa does not take a round booster in last round
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Nov 26, 2024
1 parent 4c4ebf4 commit dcdf300
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
19 changes: 12 additions & 7 deletions src/components/turn/BotPass.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
<ActionGainVictoryPoints :botAction="victoryPointsBotAction" :navigationState="navigationState" :hideText="true"/>
</div>
</li>
<li>
<span v-html="t('botPass.roundBoosterTake')"></span>
<div class="ms-4 mt-2 mb-3">
<AppIcon type="round-booster-selection" :name="roundBoosterSelection" class="roundBoosterSelection"/>
</div>
</li>
<li v-html="t('botPass.roundBoosterReturn')"></li>
<template v-if="!isLastRound">
<li>
<span v-html="t('botPass.roundBoosterTake')"></span>
<div class="ms-4 mt-2 mb-3">
<AppIcon type="round-booster-selection" :name="roundBoosterSelection" class="roundBoosterSelection"/>
</div>
</li>
<li v-html="t('botPass.roundBoosterReturn')"></li>
</template>
</ol>

</template>
Expand Down Expand Up @@ -60,6 +62,9 @@ export default defineComponent({
},
victoryPointsBotAction() : BotAction {
return { action: Action.GAIN_VICTORY_POINTS, victoryPoints: this.scoreVP }
},
isLastRound() : boolean {
return this.navigationState.round == 6
}
}
})
Expand Down
5 changes: 4 additions & 1 deletion src/components/turn/PlayerTurn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ModalDialog id="passModal" :title="t('action.pass')">
<template #body>
<p v-html="t('playerTurn.passConfirm')"></p>
<p v-if="navigationState.round == 6" v-html="t('playerTurn.passInfoRound6')"></p>
<p v-if="isLastRound" v-html="t('playerTurn.passInfoRound6')"></p>
<p v-else v-html="t('playerTurn.passInfo')"></p>
</template>
<template #footer>
Expand Down Expand Up @@ -55,6 +55,9 @@ export default defineComponent({
computed: {
hasPassed() : boolean|undefined {
return this.navigationState.roundTurn?.pass
},
isLastRound() : boolean {
return this.navigationState.round == 6
}
},
methods: {
Expand Down

0 comments on commit dcdf300

Please sign in to comment.