Skip to content

Commit

Permalink
fix(plugins/achievements): fix progress of rank A (lowlighter#1430) […
Browse files Browse the repository at this point in the history
…skip ci]
  • Loading branch information
TonyCrane authored Aug 25, 2023
1 parent 125c4de commit 693ba35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/plugins/achievements/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 693ba35

Please sign in to comment.