mirror of
https://github.com/shiroikitsu8/Bayshore_6r_legacy.git
synced 2025-01-31 20:55:21 +01:00
add win count
This commit is contained in:
parent
2bac27996d
commit
d12282ac9b
@ -259,13 +259,14 @@ export default class GameModule extends Module {
|
||||
saveEx.ghostLevel = car?.ghostLevel;
|
||||
}
|
||||
|
||||
let winCount = 0;
|
||||
let winCounter = 0;
|
||||
if(body.rgResult?.rgRegionMapScore !== null && body.rgResult?.rgRegionMapScore !== undefined && body.rgResult?.rgRegionMapScore.length !== 0){
|
||||
for(let i=0; i<body.rgResult.rgRegionMapScore.length; i++){
|
||||
winCount += body.rgResult.rgRegionMapScore[i];
|
||||
winCounter += body.rgResult.rgRegionMapScore[i];
|
||||
}
|
||||
}
|
||||
saveEx.rgWinCount = winCount;
|
||||
saveEx.rgWinCount = winCounter;
|
||||
saveEx.rgScore = winCounter;
|
||||
|
||||
let c = await prisma.car.update({
|
||||
where: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user