From 7a15cc7885b37d33f469c0749e1087ffb81124d3 Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Fri, 23 Apr 2021 06:44:47 +0800 Subject: [PATCH] Fix elemental mastery values --- src/routes/characters/[id].svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/routes/characters/[id].svelte b/src/routes/characters/[id].svelte index 964346c6..8b470a51 100644 --- a/src/routes/characters/[id].svelte +++ b/src/routes/characters/[id].svelte @@ -293,10 +293,14 @@ {:else} 50% {/if} - {#if data.statGrow !== 'critRate' && data.statGrow !== 'critDamage'} + {#if data.statGrow !== 'critRate' && data.statGrow !== 'critDamage' && data.statGrow !== 'em'} {numberFormat.format(data[data.statGrow][index] * 100)}% + {:else if data.statGrow === 'em'} + + {numberFormat.format(data[data.statGrow][index])} + {/if} {/each}