mirror of
https://github.com/ershisan99/www.git
synced 2025-12-17 12:34:17 +00:00
add opponent sold joker event
This commit is contained in:
@@ -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+)/)
|
||||||
|
|||||||
Reference in New Issue
Block a user