Skip to content

Commit

Permalink
Army provides 1VP instead of first player token in age 8 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert authored Jan 13, 2025
1 parent 46ff47b commit ded92a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Binary file added src/assets/icons/victory-point-1.webp
Binary file not shown.
8 changes: 7 additions & 1 deletion src/components/round/TechCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<div class="marker" v-if="isArmy(tech)">
<AppIcon name="first-player-token" class="icon"/>
</div>
<div class="marker" v-if="isArmyLastRound(tech)">
<AppIcon name="victory-point-1" class="icon"/>
</div>
<div class="marker" v-if="isEngineering(tech)">
<AppIcon name="architect-token" class="icon"/>
</div>
Expand Down Expand Up @@ -54,7 +57,10 @@ export default defineComponent({
},
methods: {
isArmy(tech: Tech) : boolean {
return tech == Tech.ARMY
return tech == Tech.ARMY && this.navigationState.round != 8
},
isArmyLastRound(tech: Tech) : boolean {
return tech == Tech.ARMY && this.navigationState.round == 8
},
isEngineering(tech: Tech) : boolean {
return tech == Tech.ENGINEERING
Expand Down

0 comments on commit ded92a1

Please sign in to comment.