diff --git a/src/locales/en.json b/src/locales/en.json
index 7249887a..88c23cf8 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -484,7 +484,9 @@
"moreTotal": "More pulls than {percentage}% of paimon.moe users",
"lessTotal": "Less pulls than {percentage}% of paimon.moe users",
"moreLuck": "Luckier than {percentage}% of paimon.moe users",
- "lessLuck": "Less lucky than {percentage}% of paimon.moe users"
+ "lessLuck": "Less lucky than {percentage}% of paimon.moe users",
+ "top": "TOP",
+ "bottom": "BOTTOM"
}
},
"calculator": {
diff --git a/src/routes/wish/_rank.svelte b/src/routes/wish/_rank.svelte
index 4ac40f09..7216f0a5 100644
--- a/src/routes/wish/_rank.svelte
+++ b/src/routes/wish/_rank.svelte
@@ -170,9 +170,15 @@
- TOP
+
+ {$t(`wish.rank.${percentage < 50 ? 'top' : 'bottom'}`)}
+
- {loading.total ? '...' : percentage.toFixed(fixedPoint)}%
+ {loading.total
+ ? '...'
+ : percentage < 50
+ ? percentage.toFixed(fixedPoint)
+ : (100 - percentage).toFixed(fixedPoint)}%
@@ -198,9 +204,15 @@
- TOP
+
+ {loading.legendary ? $t('wish.rank.top') : $t(`wish.rank.${percentageLuck.legendary < 50 ? 'top' : 'bottom'}`)}
+
- {loading.legendary ? '...' : percentageLuck.legendary.toFixed(fixedPointLegendary)}%
+ {loading.legendary
+ ? '...'
+ : percentageLuck.legendary < 50
+ ? percentageLuck.legendary.toFixed(fixedPointLegendary)
+ : (100 - percentageLuck.legendary).toFixed(fixedPointLegendary)}%
@@ -224,9 +236,15 @@
- TOP
+
+ {loading.rare ? $t('wish.rank.top') : $t(`wish.rank.${percentageLuck.rare < 50 ? 'top' : 'bottom'}`)}
+
- {loading.rare ? '...' : percentageLuck.rare.toFixed(fixedPointRare)}%
+ {loading.rare
+ ? '...'
+ : percentageLuck.rare < 50
+ ? percentageLuck.rare.toFixed(fixedPointRare)
+ : (100 - percentageLuck.rare).toFixed(fixedPointRare)}%