From e0f91418ee81bd585ca8f013fadbef8f7508f429 Mon Sep 17 00:00:00 2001 From: HansonSin Date: Wed, 12 Jan 2022 20:05:31 +0800 Subject: [PATCH] Add Fate Count Calculator main file --- src/routes/calculator/_fateCount.svelte | 155 ++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 src/routes/calculator/_fateCount.svelte diff --git a/src/routes/calculator/_fateCount.svelte b/src/routes/calculator/_fateCount.svelte new file mode 100644 index 00000000..0b02a174 --- /dev/null +++ b/src/routes/calculator/_fateCount.svelte @@ -0,0 +1,155 @@ + + +
+
+
+
+ {#each fateValues as value} +
+
+ {value.name} +

{value.name}

+
+
+
+ +
+
+
+ {/each} +
+
+
+ {#each parameters as value} +
+
+

{value.name}

+
+
+
+ +
+
+
+ {/each} +
+
+ + {#if result !== null} + +
+
+ + + + + + + {#each result as res} + + + + + + {/each} + + + +
{$t('calculator.fateCount.type')}{$t('calculator.fateCount.amount')}{$t('calculator.fateCount.totalPrimogem')}
+ + {#if res.image !== null}{res.name}{/if} +

{res.name}

+
+
+ {res.amount} + + {res.total} +
+ {$t('calculator.fateCount.totalPrimogem')} + {totalPrimogem} + Primogem + ({Math.floor(totalPrimogem / 160)} + Fate) +
+
+
+ {/if} +
+
+