Skip to content

Commit

Permalink
automa setup
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Nov 30, 2024
1 parent 52dc813 commit 5f423db
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
18 changes: 18 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>
<template v-if="hasLostFleet">
<li v-html="t('setupGameAutoma.explorationShuttle')"></li>
</template>
<li v-for="(faction,index) of botFactions" :key="faction">
<AppIcon type="faction" :name="faction" class="factionIcon"/>
<span class="fw-bold" v-html="t(`botFaction.${faction}`)"></span>
Expand Down Expand Up @@ -33,6 +36,7 @@ import BotFaction from '@/services/enum/BotFaction'
import { useStateStore } from '@/store/state'
import DifficultyLevel from '@/services/enum/DifficultyLevel'
import DirectionalSelection from '@/services/enum/DirectionalSelection'
import Expansion from '@/services/enum/Expansion'
export default defineComponent({
name: 'AutomaSetup',
Expand All @@ -46,6 +50,9 @@ export default defineComponent({
return { t, state }
},
computed: {
hasLostFleet() : boolean {
return this.state.setup.expansions.includes(Expansion.LOST_FLEET)
},
totalPlayerCount() : number {
return this.state.setup.playerSetup.botCount + this.state.setup.playerSetup.playerCount
},
Expand All @@ -56,6 +63,17 @@ export default defineComponent({
return this.state.setup.playerSetup.botFaction.toReversed()
},
botStartVP() : number {
if (this.hasLostFleet) {
if (this.state.setup.difficultyLevel == DifficultyLevel.AUTOMA) {
return 15
}
else if (this.state.setup.difficultyLevel == DifficultyLevel.AUTOMAECHTIG) {
return 20
}
else if (this.state.setup.difficultyLevel == DifficultyLevel.ULTOMA) {
return 25
}
}
if (this.state.setup.difficultyLevel == DifficultyLevel.AUTOMALEIN) {
return 0
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/setup/TilesSetup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ li {
}
.tile {
width: 75px;
border-radius: 5px;;
border-radius: 5px;
filter: drop-shadow(5px 5px 4px #555);
}
}
Expand All @@ -511,7 +511,7 @@ li {
}
.tile {
width: 65px;
border-radius: 5px;;
border-radius: 5px;
filter: drop-shadow(5px 5px 4px #555);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"playerTokens": "Platziere die Markierungssteine auf der Siegpunktleiste und dem Forschungstableau.",
"startVP": "Automa beginnt das Spiel mit <b>{count} SP</b>.",
"satellites": "Platziere je einen Satellit auf den \"0\"-Positionen auf dem Wertungstableau.",
"explorationShuttle": "<i>Die Verlorene Flotte</i>: Setzte ein Erkundungs-Shuttle auf das erkundete Schiff (Schiffsmarker mit Aktionsseite nach oben).",
"bonus": "Aufbau-Bonus:",
"initialMinePlacement": "Platziere <b>{count}</b> Startminen auf Heimatplaneten des Automa (am nächsten zum Zentrum).",
"roundBooster": "Nimm Rundenbooster <b>#{index}</b>",
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"playerTokens": "Place player tokens on the VP track and on the research areas.",
"startVP": "Automa starts the game with <b>{count} VP</b>.",
"satellites": "Place one satellite on each \"0\" space on the scoring board.",
"explorationShuttle": "<i>The Lost Fleet</i>: Place one exploration shuttle on the explored spaceship (spaceship tile showing action side up).",
"bonus": "Setup Bonus:",
"initialMinePlacement": "Place <b>{count}</b> mines on planets of the Automa's home type (closest to the center space).",
"roundBooster": "Take Round Booster <b>#{index}</b>",
Expand Down

0 comments on commit 5f423db

Please sign in to comment.