From 8779d8ae31a10702b1f539a13ad71c87753c53af Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Mon, 16 Jan 2023 10:20:54 -0500 Subject: [PATCH] sky26: can load straight from battle --- src/lib/components/Battle.svelte | 233 ++++++++++++++++--------------- 1 file changed, 123 insertions(+), 110 deletions(-) diff --git a/src/lib/components/Battle.svelte b/src/lib/components/Battle.svelte index 41292aa..654283c 100644 --- a/src/lib/components/Battle.svelte +++ b/src/lib/components/Battle.svelte @@ -1,82 +1,94 @@ -
-
- -
-
- Chapter {chapter}, - battle {chapterBattle} - {status} -
-
- {#if status === 'ongoing' && chapter !== 4} -
wave
-
{wave === 2 ? 'second' : 'first'}
- {/if} -
home
-
- {#if typeof city === 'string'} - {city} - {:else} - c !== city.selection)} - /> - {/if} -
-
view_kanban
-
{scenario}
- - {#if character} -
person
-
{character}
- {/if} - - {#if additionalCharacters} - {#each additionalCharacters as c, i (c.selection)} -
personstar
-
- -
- {/each} - {/if} - -
difficulty
-
-
- - event.setBattleDifficulty(params.battleId, value)} - /> +{#if !$activeCampaign} +
+
+
Loading...
+
+
+
+
+{:else} +
+
+ +
+
+ Chapter {chapter}, + battle {chapterBattle} + {status} +
+
+ {#if status === 'ongoing' && chapter !== 4} +
wave
+
{wave === 2 ? 'second' : 'first'}
+ {/if} +
home
+
+ {#if typeof city === 'string'} + {city} + {:else} + c !== city.selection)} + /> + {/if} +
+
view_kanban
+
{scenario}
- -
-
+ + -
- {#if status === 'upcoming'} - - {:else if status === 'ongoing'} - - - {/if} -
+
+ {#if status === 'upcoming'} + + {:else if status === 'ongoing'} + + + {/if} +
-
+ {#if battles?.length > battle?.id} + + + + {/if} + + + +{/if}