Skip to content

Commit

Permalink
Better rankings total calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
stdcall0 committed Apr 16, 2024
1 parent ef1781c commit e70b703
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/starrail_gacha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ export class SRGachaPlugin extends Plugin {
gacha,
star5: s5.length,
up: s5.filter(x => x.item.up).length,
total: n
total: // sum up all s5.count5
s5.reduce((acc, x) => acc + x.count5, 0)
};
}

Expand Down

0 comments on commit e70b703

Please sign in to comment.