fix 计算队伍等级
This commit is contained in:
@@ -272,7 +272,7 @@ export function getFuncsSwitch(id:number) {
|
||||
export function getPLvByScore(score: number) {
|
||||
let lv = 0;
|
||||
for(let {teamLv, topFiveMin, topFiveMax} of gameData.pvpTeamLevel) {
|
||||
if(score > topFiveMin) lv = teamLv;
|
||||
if(score >= topFiveMin) lv = teamLv;
|
||||
if(score < topFiveMax) break;
|
||||
}
|
||||
return lv;
|
||||
|
||||
Reference in New Issue
Block a user