Skip to content

Commit

Permalink
Hadsch Hallas: Allow to switch to "Build Mine" if "Upgrade" via Facti…
Browse files Browse the repository at this point in the history
…on Action is not possible
  • Loading branch information
stefanseifert committed Jan 4, 2025
1 parent 84dd637 commit 1e8c29f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/turn/botAction/ActionBuildMine.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
:scoringFinalTiebreaker="scoringFinalTileTiebreaker != undefined" :range="true" :directionalSelection="true" :terraformingReference="true"/>
</div>
<div class="actionCol text-muted small">
<button type="button" class="btn btn-outline-secondary btn-sm" @click="showUgrade()">{{t('botAction.buildMine.noMine')}}</button>
<ol class="mt-2">
<button type="button" class="btn btn-outline-secondary btn-sm mb-2" @click="showUgrade()">{{t('botAction.buildMine.noMine')}}</button>
<ol>
<li v-html="t('botAction.buildMine.validPlanets')"></li>
<li v-html="t('botAction.buildMine.tiebreaker.title')"></li>
<ol type="a">
Expand Down
12 changes: 11 additions & 1 deletion src/components/turn/botAction/ActionUpgrade.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<SupportInfo :botAction="botAction" :navigationState="navigationState" :directionalSelection="true"/>
</div>
<div class="actionCol text-muted small">
<button v-if="isFactionActionHadschHallas" type="button" class="btn btn-outline-secondary btn-sm mb-2" @click="showBuildMine()">{{t('botAction.upgrade.notPossible')}}</button>
<ol>
<li v-html="t('botAction.upgrade.choose.title')"></li>
<ol>
Expand Down Expand Up @@ -98,6 +99,9 @@ export default defineComponent({
isFactionHadschHallas() : boolean {
return this.botFaction === BotFaction.HADSCH_HALLAS
},
isFactionActionHadschHallas() : boolean {
return this.botAction.botFaction === BotFaction.HADSCH_HALLAS
},
scoringFinalTiles() : ScoringFinalTile[] {
return this.state.setup.scoringFinalTiles ?? []
},
Expand All @@ -113,7 +117,13 @@ export default defineComponent({
numberedSelectionCount: this.botAction.numberedSelectionCount
}, false)
this.advanceResearchAreaRandom = true
}
},
showBuildMine() {
this.$emit('showBotAction', {
action: Action.BUILD_MINE,
range: 3
}, true)
}
}
})
</script>
Expand Down
3 changes: 2 additions & 1 deletion src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@
"researchLabAdvanceResearchAreaRandom": "Wenn in ein Forschungslabor aufgewertet wurde:",
"advanceResearchAreaRandom": "Aufstieg Forschungsbereich (zufällig)",
"tradingStationVP": "Nach dem Aufwerten in ein Handelszentrum erhält der Automa +3 SP."
}
},
"notPossible": "Aufwerten nicht möglich"
},
"powerQic": {
"placeToken": "Lege ein Aktionsmarker auf eine offenes Macht-/Q.I.C.-Aktionsfeld.",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@
"researchLabAdvanceResearchAreaRandom": "If upgraded to a research lab:",
"advanceResearchAreaRandom": "Advance Research Area (random)",
"tradingStationVP": "After upgrading to a trading station, the Automa gains +3 VP."
}
},
"notPossible": "Upgrade not possible"
},
"powerQic": {
"placeToken": "Place action token on an uncovered Power/Q.I.C. action space.",
Expand Down

0 comments on commit 1e8c29f

Please sign in to comment.