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