pvp: 修复pvp赛季结算奖励

This commit is contained in:
luying
2022-07-09 10:46:40 +08:00
parent 11692c9a56
commit b1dc091453

View File

@@ -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
}