display correct percentage quest completion again

This commit is contained in:
2025-06-18 19:36:34 +02:00
parent b18e844ed1
commit aa33c5b9e0
+3 -3
View File
@@ -37,7 +37,7 @@
</div> </div>
<div class="progressWrap"> <div class="progressWrap">
<span class="progress"></span> <span class="progress"></span>
<span class="percentage">{{ `${progressPercentage.toFixed(2)}%` }}</span> <span class="percentage">{{ `${missive.getPercentProgress().toFixed(2)}%` }}</span>
</div> </div>
<h3>Rewards</h3> <h3>Rewards</h3>
<div class="rewards"> <div class="rewards">
@@ -61,7 +61,7 @@ export default defineComponent({
components: {Parchment, WaterStain, DrinkStain, AdventurerComponent}, components: {Parchment, WaterStain, DrinkStain, AdventurerComponent},
computed: { computed: {
progressPercentageValue(): string { progressPercentageValue(): string {
return `${this.missive.progressPoints / this.missive.maxProgress * 100}%`; return `${this.missive.getPercentProgress()}%`;
}, },
notBusyAdventurers(): Adventurer[] { notBusyAdventurers(): Adventurer[] {
return Object.values(this.adventurers).filter(adventurer => !adventurer.busy); return Object.values(this.adventurers).filter(adventurer => !adventurer.busy);
@@ -94,7 +94,7 @@ export default defineComponent({
methods: { methods: {
updateProgress() { updateProgress() {
if (this.missive === undefined) return; if (this.missive === undefined) return;
this.progressPercentage = this.missive.progressPoints / this.missive.maxProgress * 100; this.progressPercentage = this.missive.getPercentProgress();
}, },
randomNumber(min: number, max: number) { randomNumber(min: number, max: number) {
return Math.random() * (max - min) + min; return Math.random() * (max - min) + min;