Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Nov 27, 2024
1 parent 015d468 commit d35ac39
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/components/setup/MapRandomizer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
</div>
</div>
</div>
<div class="row mt-3">
<div class="col">
<div class="alert alert-info" v-html="t('mapRandomizer.simpleNotice')"></div>
</div>
</div>
</template>

<script lang="ts">
Expand Down
3 changes: 3 additions & 0 deletions src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
"researchBoard": "Forschungstableau"
}
},
"mapRandomizer": {
"simpleNotice": "Dies ist ein einfacher Karten-Generator. Wenn du mehr Kontrolle und Möglichkeiten willst, kannst du einen <a href='https://boardgamehelpers.com/GaiaProject/' target='_blank' rel='noopener'>externen Map Generator</a> verwenden."
},
"setupGameAutoma": {
"title": "Automa Spielaufbau",
"structures": "Der Automa erhält alle seine Gebäude.",
Expand Down
3 changes: 3 additions & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
"researchBoard": "Research Board"
}
},
"mapRandomizer": {
"simpleNotice": "This is a simple map randomizer. If you want more control and more options, you can use an <a href='https://boardgamehelpers.com/GaiaProject/' target='_blank' rel='noopener'>external Map Generator</a>."
},
"setupGameAutoma": {
"title": "Automa Setup",
"structures": "Prepare the Automa supply with all it's structures.",
Expand Down
4 changes: 2 additions & 2 deletions src/services/map/MapGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import rollDice from '@brdgm/brdgm-commons/src/util/random/rollDice'
export default class MapGenerator {

readonly playerCount : number
private _spaceSectors = ref([] as SpaceSector[])
private readonly _spaceSectors = ref([] as SpaceSector[])

constructor(playerCount: number) {
this.playerCount = playerCount
this.reset()
}

get spaceSectors() : SpaceSector[] {
get spaceSectors() : readonly SpaceSector[] {
return this._spaceSectors.value
}

Expand Down

0 comments on commit d35ac39

Please sign in to comment.