From 8d1ec92cfdf5984674868bb832568935a6bc2d7c Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Sun, 15 Jan 2023 13:36:02 -0500 Subject: [PATCH] add histoire task --- Taskfile.yaml | 1 + src/lib/components/Battle.svelte | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Taskfile.yaml b/Taskfile.yaml index 27293c5..bc6789e 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -12,6 +12,7 @@ tasks: dev: vite test: vitest run src test:watch: vitest src + story: histoire dev default: cmds: - echo "{{.GREETING}}" diff --git a/src/lib/components/Battle.svelte b/src/lib/components/Battle.svelte index 851561c..2aa87dd 100644 --- a/src/lib/components/Battle.svelte +++ b/src/lib/components/Battle.svelte @@ -145,7 +145,7 @@ additionalCharacters && R.difference(additionalCharacters.map(R.prop('selection')).flat()); - let chapter = 1 + parseInt(params.battleId / 2); + $: chapter = 1 + parseInt((params.battleId - 1) / 2); $: chapterBattle = params.battleId >= 7 ? params.battleId - 6