better quest adventurer choice ux

This commit is contained in:
2025-05-11 16:37:58 +02:00
parent e71326d89b
commit d962c85629
5 changed files with 44 additions and 21 deletions
+4 -2
View File
@@ -19,7 +19,7 @@
<button class="slot">
<AdventurerComponent
:adventurer="missive.adventurers[0]"
:all-adventurers="adventurers"
:all-adventurers="notBusyAdventurers"
@hire-adventurer="(id) => {
adventurers[id].busy = true;
missive.adventurers[0] = adventurers[id];
@@ -63,6 +63,9 @@ export default defineComponent({
progressPercentageValue(): string {
return `${this.missive.progressPoints / this.missive.maxProgress * 100}%`;
},
notBusyAdventurers(): Adventurer[] {
return Object.values(this.adventurers).filter(adventurer => !adventurer.busy);
},
},
props: {
missive: {
@@ -232,7 +235,6 @@ export default defineComponent({
background-color: rgba(0, 0, 0, 0.2);
cursor: pointer;
border-radius: 0.2rem;
position: relative;
}
}