From b1dc09145307c47669967aefb9ef05ab2884f0d1 Mon Sep 17 00:00:00 2001 From: luying Date: Sat, 9 Jul 2022 10:46:40 +0800 Subject: [PATCH] =?UTF-8?q?pvp:=20=E4=BF=AE=E5=A4=8Dpvp=E8=B5=9B=E5=AD=A3?= =?UTF-8?q?=E7=BB=93=E7=AE=97=E5=A5=96=E5=8A=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/pubUtils/data.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/shared/pubUtils/data.ts b/shared/pubUtils/data.ts index 7d5be5fbb..f5b1f5f65 100644 --- a/shared/pubUtils/data.ts +++ b/shared/pubUtils/data.ts @@ -458,14 +458,7 @@ export function getPvpHeroRewardsByScore(score: number) { return item; } } - return getMaxPvpHeroRewards() -} - -function getMaxPvpHeroRewards() { - if(gameData.pvpHeroRewards.length <= 0) return null - return gameData.pvpHeroRewards.reduce((pre, cur) => { - return cur.max > pre.max? cur: pre; - }, gameData.pvpHeroRewards[0]) + return null }