add opponent sold joker event

This commit is contained in:
2025-05-22 11:30:36 +02:00
parent f698fd9035
commit b51811af8f

View File

@@ -376,6 +376,15 @@ export default function LogParser() {
} }
continue continue
} }
if (
line.includes('Client got soldJoker message: (action: soldJoker)')
) {
currentGame.events.push({
timestamp,
text: 'Opponent sold a joker',
type: 'shop',
})
}
// This message indicates opponent's spending report // This message indicates opponent's spending report
if (line.includes(' Client got spentLastShop message')) { if (line.includes(' Client got spentLastShop message')) {
const match = line.match(/amount: (\d+)/) const match = line.match(/amount: (\d+)/)