From 693ba354e18fc8cc90d9ce16e575a056917758e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B9=A4=E7=BF=94=E4=B8=87=E9=87=8C?= Date: Fri, 25 Aug 2023 09:51:33 +0800 Subject: [PATCH] fix(plugins/achievements): fix progress of rank A (#1430) [skip ci] --- source/plugins/achievements/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/plugins/achievements/index.mjs b/source/plugins/achievements/index.mjs index c0c1f3db..b950bc7e 100644 --- a/source/plugins/achievements/index.mjs +++ b/source/plugins/achievements/index.mjs @@ -46,7 +46,7 @@ function rank(x, [c, b, a, s, m]) { if (x >= s) return {rank: "S", progress: (x - s) / (m - s)} if (x >= a) - return {rank: "A", progress: (x - a) / (m - a)} + return {rank: "A", progress: (x - a) / (s - a)} else if (x >= b) return {rank: "B", progress: (x - b) / (a - b)} else if (x >= c)