Skip to content

Commit

Permalink
SR gacha summary output
Browse files Browse the repository at this point in the history
  • Loading branch information
stdcall0 committed Apr 15, 2024
1 parent 1d02455 commit dda6bd5
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions apps/starrail_gacha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,11 @@ export class SRGachaPlugin extends Plugin {
if (s5.length > 0) {
msg.push("5*: ");
s5.forEach(x => {
msg.push(`- ${x.item.displayName} (${x.count5})`);
});
}
if (s5.length > 0 && s4.length > 0) msg.push("");
if (s4.length > 0) {
msg.push("4*: ");
s4.forEach(x => {
msg.push(`- ${x.item.displayName} (${x.count5} >> ${x.count})`);
msg.push(`- ${x.item.displayName} (${x.count5}${x.isGuaranteed ? " 大保底" : ""})`);
});
msg.push("");
}
msg.push("共 ${s5.length} 个 5*,${s4.length} 个 4*");
}

await this.reply(msg.join('\n'), true, { at: false, recallMsg: 0 });
Expand Down

0 comments on commit dda6bd5

Please sign in to comment.