Skip to content

Commit

Permalink
Fix SRGacha rankings percentage display
Browse files Browse the repository at this point in the history
  • Loading branch information
stdcall0 committed Apr 16, 2024
1 parent 34a69d8 commit 2f99d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/starrail_gacha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export class SRGachaPlugin extends Plugin {
for (let i = 0; i < 5; ++i) {
if (i < top1.length) {
let r = top1[i];
msg.push(`- ${r.name}: ${r.star5} 个 5*,${r.up} 个 UP,小保底不歪 ${this.getUpPercentage(r).toFixed(2)}%`);
msg.push(`- ${r.name}: ${r.star5} 个 5*,${r.up} 个 UP,小保底不歪 ${(this.getUpPercentage(r)*100).toFixed(2)}%`);
}
}
// show top2 5
Expand Down

0 comments on commit 2f99d2a

Please sign in to comment.