diff --git a/src/routes/wish/tally/_itemNew.svelte b/src/routes/wish/tally/_itemNew.svelte new file mode 100644 index 00000000..1076b821 --- /dev/null +++ b/src/routes/wish/tally/_itemNew.svelte @@ -0,0 +1,638 @@ + + +
+ {featuredValues[0].total} + | +
+ + {$t('wish.tally.character')} + {$t('wish.tally.summoned')} + ++ {numberFormat.format(featuredValues[0].percentage)}% {$t('wish.tally.fromFiveStar')} + + |
+
+ {featuredValues[1].total} + | +
+ + {$t('wish.tally.weapon')} + {$t('wish.tally.summoned')} + ++ {numberFormat.format(featuredValues[1].percentage)}% {$t('wish.tally.fromFiveStar')} + + |
+
+ {featuredValues[i].total} + | +
+ + {type === 'character' ? characters[feat].name : weaponList[feat].name} + {$t('wish.tally.summoned')} + ++ {#if id >= 300011 && id < 400000 && i === 0} + {numberFormat.format( + ((featuredValues[i].total - featuredValues[i].guaranteed) / + (data.total.legendary - featuredValues[i].guaranteed)) * + 100, + )}% + {$t('wish.tally.wonFiftyFifty')} + {:else if id > 300011 && id < 400000 && i === 1} + {numberFormat.format(promotedRarePercentage)}% + {$t('wish.tally.fromFourStarFeatured')} + {:else} + {numberFormat.format(featuredValues[i].percentage)}% {$t( + type === 'character' && i === 1 ? 'wish.tally.fromFourStar' : 'wish.tally.fromFiveStar', + )} + {/if} + + |
+
+ {numberFormat.format(legendary.percentage)}% +
+
+
Total {numberFormat.format(legendary.total)}
++ {numberFormatSecondary.format(rare.percentage)}% +
+
+
Total {numberFormat.format(rare.total)}
+{$t('wish.tally.name')} | +{$t('wish.tally.total')} | +
+ {item.type === 'character' ? characters[item.name].name : weaponList[item.name].name} + | +{item.count} | +
+ {$t('wish.tally.update')} + {updateTime} +
+5★ {$t('wish.tally.pity')} | +{$t('wish.tally.total')} | +Chance% | +
---|---|---|
+ {#if Array.isArray(label)} + {label[0]} - {label[1]} + {:else} + {label} + {/if} + | ++ {numberFormat.format(legendaryPity[i].total)} + | ++ {numberFormat.format(legendaryPity[i].percentage * 100)} + | +
4★ {$t('wish.tally.pity')} | +{$t('wish.tally.total')} | +% | +
---|---|---|
+ {i + 1} + | ++ {numberFormat.format(pity.total)} + | ++ {numberFormat.format(pity.percentage * 100)} + | +