pvp: 修复pvp赛季结算奖励
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user