Skip to content

Commit 2e32d0a

Browse files
committed
fix scoring
1 parent d5244ec commit 2e32d0a

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/components/scoring/FinalScoring.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@ export default defineComponent({
121121
+ this.getLeftoverResourcesVP(i)
122122
}
123123
return result
124-
},
125-
totalVPPlayer() : number {
126-
return this.totalVP[0] - this.totalVP[1]
127124
}
128125
},
129126
methods: {
@@ -174,7 +171,7 @@ export default defineComponent({
174171
version,
175172
difficultyLevel: -1,
176173
playerPower: this.state.setup.playerPower ?? 'none',
177-
playerTotalVP: this.totalVPPlayer,
174+
playerTotalVP: this.totalVP[0],
178175
playerScoreTrackVP: toNumber(this.amount.scoreTrackVP[0]),
179176
playerMilestonesVP: toNumber(this.amount.milestonesVP[0]),
180177
playerBillboardsVP: this.getBillboardVP(0),
@@ -213,7 +210,7 @@ export default defineComponent({
213210
botSoloBoardVP: allTurns.filter(t => t.player == Player.BOT).reduce((sum, t) => sum + toNumber(t.botSoloBoardVP), 0),
214211
botDeliveryVP: allTurns.filter(t => t.player == Player.BOT).reduce((sum, t) => sum + toNumber(t.botDeliveryVP), 0),
215212
botFloricultureStarsVP: toNumber(this.amount.scoreTrackVP[1])
216-
- allTurns.filter(t => t.player == Player.BOT).reduce((sum, t) => sum + toNumber(t.botDeliveryVP) + toNumber(t.botSoloBoardVP) + toNumber(t.botDeliveryVP), 0)
213+
- allTurns.filter(t => t.player == Player.BOT).reduce((sum, t) => sum + toNumber(t.botPaidCardVP) + toNumber(t.botSoloBoardVP) + toNumber(t.botDeliveryVP), 0)
217214
}
218215
postGameStats(stats,
219216
import.meta.env.VITE_STATS_FORM_URL,

0 commit comments

Comments
 (0)