From 1943cdca926a676576af447d6135ff2b7d5855c8 Mon Sep 17 00:00:00 2001 From: I Made Setia Baruna Date: Mon, 11 Jan 2021 23:24:00 +0800 Subject: [PATCH] Add boss item to list --- src/routes/items.svelte | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/routes/items.svelte b/src/routes/items.svelte index 322baf58..4b2cdae1 100644 --- a/src/routes/items.svelte +++ b/src/routes/items.svelte @@ -105,6 +105,12 @@ allItems[item.item.id][character.id] = 'characters'; } } + + const bossMaterial = character.material.boss; + if (allItems[bossMaterial.id] === undefined) { + allItems[bossMaterial.id] = {}; + } + allItems[bossMaterial.id][character.id] = 'characters'; } }