From b9af56fd07a7082a92afb3643c089265bf7637a7 Mon Sep 17 00:00:00 2001 From: luying Date: Mon, 11 Jul 2022 17:13:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=81=E7=BB=8A=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=96=B9=E6=B3=95=E7=9A=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/pubUtils/data.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/pubUtils/data.ts b/shared/pubUtils/data.ts index 7c459b6a9..07c895a81 100644 --- a/shared/pubUtils/data.ts +++ b/shared/pubUtils/data.ts @@ -330,8 +330,8 @@ export function getConnectLvByExp(actorId: number, shipId: number, newExp: numbe let exps = gameData.friendShips.get(`${actorId}_${shipId}`)||[]; exps.sort((a, b) => a.level - b.level); let newLv = 0, maxLv = 0; - for(let { level, shipValue } of exps) { - if(newExp >= shipValue) newLv = level; + for(let { level, shipExp } of exps) { + if(newExp >= shipExp) newLv = level; if(maxLv < level) maxLv = level } return { newLv, maxLv }