From dcc87c2e451ed7884825a66e1ad7931a73673abd Mon Sep 17 00:00:00 2001 From: I Made Setia Baruna Date: Tue, 9 Mar 2021 00:04:50 +0800 Subject: [PATCH] Add separate rare summary --- src/components/WishCounterHowToModal.svelte | 4 +++ src/routes/wish/_summaryItem.svelte | 28 +++++++++++++++++++++ tailwind.config.js | 2 +- 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/src/components/WishCounterHowToModal.svelte b/src/components/WishCounterHowToModal.svelte index 308a44a1..2f49b2c0 100644 --- a/src/components/WishCounterHowToModal.svelte +++ b/src/components/WishCounterHowToModal.svelte @@ -6,6 +6,10 @@

How to use Wish Counter

+

Consider using the Auto Import first, access it on button beside the button you click to open this How To

+

Using the Auto Import and manual input together is not recommended, still need some testing!

+
+

After you do 1 pull Wish:

Press diff --git a/src/routes/wish/_summaryItem.svelte b/src/routes/wish/_summaryItem.svelte index 03d8d897..ba9e3498 100644 --- a/src/routes/wish/_summaryItem.svelte +++ b/src/routes/wish/_summaryItem.svelte @@ -57,6 +57,34 @@ {numberFormat.format(avg.rare.pity)} + + + └ Character + + + {numberFormat.format(avg.rare.character.total)} + + + {numberFormat.format(avg.rare.character.percentage * 100)}% + + + {numberFormat.format(avg.rare.character.pity)} + + + + + └ Weapon + + + {numberFormat.format(avg.rare.weapon.total)} + + + {numberFormat.format(avg.rare.weapon.percentage * 100)}% + + + {numberFormat.format(avg.rare.weapon.pity)} + + {#if avg.legendary.pulls.length > 0}

diff --git a/tailwind.config.js b/tailwind.config.js index de29a4ff..4326d2de 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -21,7 +21,7 @@ module.exports = { primary: '#4E7CFF', button: '#394076', rare: { - from: '#AD76B0', + from: '#D28FD6', to: '#665680', }, legendary: {