From 2bac27996d5b7fa18222bc7b561aee78cd020c64 Mon Sep 17 00:00:00 2001 From: ghkkk090 <108461408+ghkkk090@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:24:43 +0700 Subject: [PATCH] fix rgWinCount --- src/modules/game.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/modules/game.ts b/src/modules/game.ts index 40e270d..ad4774e 100644 --- a/src/modules/game.ts +++ b/src/modules/game.ts @@ -259,6 +259,14 @@ export default class GameModule extends Module { saveEx.ghostLevel = car?.ghostLevel; } + let winCount = 0; + if(body.rgResult?.rgRegionMapScore !== null && body.rgResult?.rgRegionMapScore !== undefined && body.rgResult?.rgRegionMapScore.length !== 0){ + for(let i=0; i