From 8f95c5651d2c7e4e2fe3b848dde4ca042d1bdb8a Mon Sep 17 00:00:00 2001 From: I Made Setia Baruna Date: Thu, 4 Feb 2021 23:11:56 +0800 Subject: [PATCH] Add levelling table --- src/routes/calculator/_characterTable.svelte | 153 +++++++++++++++++++ src/routes/calculator/index.svelte | 3 + 2 files changed, 156 insertions(+) create mode 100644 src/routes/calculator/_characterTable.svelte diff --git a/src/routes/calculator/_characterTable.svelte b/src/routes/calculator/_characterTable.svelte new file mode 100644 index 00000000..64247251 --- /dev/null +++ b/src/routes/calculator/_characterTable.svelte @@ -0,0 +1,153 @@ + + +
+
+
+ + + + + + + + {#each result as row, i} + + + + + + + + + {/each} +
LevelItemsWasted ExpMora Cost
{step[i]}{step[i + 1]} + {#each resources as res, j} + {#if row.usage[j] > 0} + + {res.label} + {row.usage[j]} + + {/if} + {/each} + {Math.abs(row.over)}{numberFormat.format(row.mora)}
+
+
+
+ + diff --git a/src/routes/calculator/index.svelte b/src/routes/calculator/index.svelte index b56b0f2b..7c7de84b 100644 --- a/src/routes/calculator/index.svelte +++ b/src/routes/calculator/index.svelte @@ -4,6 +4,7 @@ import WeaponCalculator from './_weapon.svelte'; import CharacterCalculator from './_character.svelte'; + import LevelUpTable from './_characterTable.svelte'; import Button from '../../components/Button.svelte'; import Icon from '../../components/Icon.svelte'; import HowToModal from '../../components/CalculatorHowToModal.svelte'; @@ -85,4 +86,6 @@ +
+