From 05f522095fc7788ecaf6b9ccd82c7a300c4030bb Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Sat, 14 Jan 2023 17:11:54 -0500 Subject: [PATCH] ui for chapter 2 --- src/lib/components/Battle.story.svelte | 2 +- src/lib/components/Battle.svelte | 32 +++++++++++- .../Battle/AdditionalCharacter.svelte | 16 ++++++ .../components/Battle/Chapter2.story.svelte | 50 +++++++++++++++++++ src/lib/store/api.js | 13 ++++- src/lib/store/genNextBattle.js | 2 +- src/lib/store/genNextBattle.test.js | 2 +- 7 files changed, 111 insertions(+), 6 deletions(-) create mode 100644 src/lib/components/Battle/AdditionalCharacter.svelte create mode 100644 src/lib/components/Battle/Chapter2.story.svelte diff --git a/src/lib/components/Battle.story.svelte b/src/lib/components/Battle.story.svelte index faea9da..8134970 100644 --- a/src/lib/components/Battle.story.svelte +++ b/src/lib/components/Battle.story.svelte @@ -1,6 +1,6 @@ - + character
{character}
+ {#if additionalCharacters} + {#each additionalCharacters as c, i (c.selection)} +
add. character
+
+ +
+ {/each} + {/if} +
difficulty
@@ -102,11 +117,13 @@