调整深渊排名的文案

This commit is contained in:
yoimiya-kokomi 2022-07-08 08:04:47 +08:00
parent c1b79781dd
commit 5b8b40cc16

View File

@ -422,9 +422,9 @@ export async function uploadData(e) {
let char = Character.get(ds.avatarId);
title = `${title}${char.name} ${(ds.value / 10000).toFixed(1)}W`;
if (ds.percent < 0.2) {
msg.push(`${title}少于${(100 - ds.percent * 100).toFixed(1)}%的用户`)
msg.push(`${title}少于${(Math.max(0.1, 100 - ds.percent * 100)).toFixed(1)}%的${char.name}用户`)
} else {
msg.push(`${title}超过${(ds.percent * 100).toFixed(1)}%的用户`)
msg.push(`${title}超过${(Math.min(99.9, ds.percent * 100)).toFixed(1)}%的${char.name}用户`)
}
}
msg.push("本次深渊排行:");