diff --git a/zenno/src/lib/CharaPick.svelte b/zenno/src/lib/CharaPick.svelte index 7017e3e..bcc330d 100644 --- a/zenno/src/lib/CharaPick.svelte +++ b/zenno/src/lib/CharaPick.svelte @@ -22,7 +22,7 @@ let search = $state(''); const charas = $derived(characters ?? []); - const searchedCharas = $derived(stringsearch(search, charas, ({name}) => name) || charas); + const searchedCharas = $derived(stringsearch(search, charas, ({ name }) => name) || charas); $effect(() => { if (required && value == null && charas.length > 0) { @@ -41,14 +41,14 @@ case 'ArrowDown': { const opts = [...optionsContainer!.children] as HTMLElement[]; const i = opts.findIndex((n) => parseInt(n.dataset.charaId ?? '') === value?.chara_id); - const o = i != null && i >= 0 ? opts[Math.min(i+1, opts.length - 1)] : opts[0]; + const o = i != null && i >= 0 ? opts[Math.min(i + 1, opts.length - 1)] : opts[0]; setByElem(o); break; } case 'ArrowUp': { const opts = [...optionsContainer!.children] as HTMLElement[]; const i = opts.findIndex((n) => parseInt(n.dataset.charaId ?? '') === value?.chara_id); - const o = i != null && i > 0 ? opts[i-1] : opts[0]; + const o = i != null && i > 0 ? opts[i - 1] : opts[0]; setByElem(o); break; } @@ -83,48 +83,60 @@
Max HP, i.e. starting HP.
- {@render statChart(race.Stat.Stamina, hp, 'HP', [1000, 5000], {len: true})} + {@render statChart(race.Stat.Stamina, hp, 'HP', [1000, 5000], { len: true })}Acceleration.
- {@render statChart(race.Stat.Power, accel, 'Acceleration (m/s²)', [0.1, 0.5], {style: true})} + {@render statChart(race.Stat.Power, accel, 'Acceleration (m/s²)', [0.1, 0.5], { style: true })}Horizontal (rather than forward) target speed of changing lanes.