战斗:星级
This commit is contained in:
@@ -122,7 +122,8 @@ export function calculateWarStar(warStar: WarStar[] = [], battleId: number, star
|
||||
let hasFound = false;
|
||||
for(let curWarStar of warStar) {
|
||||
if(curWarStar.id == battleId) {
|
||||
newStars = uniq([...stars, ...curWarStar.stars]);
|
||||
let oldStars = curWarStar.stars||[];
|
||||
newStars = uniq([...stars, ...oldStars]);
|
||||
newStar = newStars.filter(cur => cur > 0).length;
|
||||
newWarStars.push({...curWarStar, star: newStar, stars: newStars});
|
||||
hasFound = true;
|
||||
|
||||
Reference in New Issue
Block a user