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 }