mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2024-11-29 03:32:44 +01:00
Fix character/weapon average pity calculation
This commit is contained in:
parent
96ddf54859
commit
b9bac1ac7b
2 changed files with 4 additions and 4 deletions
|
@ -102,7 +102,7 @@
|
|||
{numberFormat.format((banner.rare.character.length / banner.total) * 100)}%
|
||||
</td>
|
||||
<td class="text-rare-from font-semibold text-right border-t border-gray-700">
|
||||
{rareTotal > 0 ? numberFormat.format(rarePityCharacter / rareTotal) : 0}
|
||||
{rareTotal > 0 ? numberFormat.format(rarePityCharacter / banner.rare.character.length) : 0}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -116,7 +116,7 @@
|
|||
{numberFormat.format((banner.rare.weapon.length / banner.total) * 100)}%
|
||||
</td>
|
||||
<td class="text-rare-from font-semibold text-right border-t border-gray-700">
|
||||
{rareTotal > 0 ? numberFormat.format(rarePityWeapon / rareTotal) : 0}
|
||||
{rareTotal > 0 ? numberFormat.format(rarePityWeapon / banner.rare.weapon.length) : 0}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -187,12 +187,12 @@
|
|||
weapon: {
|
||||
total: rareWeapon,
|
||||
percentage: total > 0 ? rareWeapon / total : 0,
|
||||
pity: rare > 0 ? rarePityWeapon / rare : 0,
|
||||
pity: rare > 0 ? rarePityWeapon / rareWeapon : 0,
|
||||
},
|
||||
character: {
|
||||
total: rareCharacter,
|
||||
percentage: total > 0 ? rareCharacter / total : 0,
|
||||
pity: rare > 0 ? rarePityCharacter / rare : 0,
|
||||
pity: rare > 0 ? rarePityCharacter / rareCharacter : 0,
|
||||
},
|
||||
},
|
||||
legendary: {
|
||||
|
|
Loading…
Reference in a new issue