From 197df8f02201098ee9088bfa5d015dd0fd558f0c Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Mon, 13 Jul 2026 18:20:23 -0400 Subject: [PATCH] zenno/doc/race: add reference links to doccy --- zenno/src/routes/doc/Sec.svelte | 16 ++- zenno/src/routes/doc/race/+page.svelte | 148 +++++++++++++++++++++---- 2 files changed, 138 insertions(+), 26 deletions(-) diff --git a/zenno/src/routes/doc/Sec.svelte b/zenno/src/routes/doc/Sec.svelte index 9de5d75..9f10502 100644 --- a/zenno/src/routes/doc/Sec.svelte +++ b/zenno/src/routes/doc/Sec.svelte @@ -7,12 +7,13 @@ h?: 1 | 2 | 3 | 4 | 5 | 6; id: string; children: Snippet; + ref?: string; top?: string; toc?: boolean; class?: ClassValue | null; } - let { h = 1, id, children, top = '#top', toc = true, class: className }: Props = $props(); + let { h = 1, id, children, ref, top = '#top', toc = true, class: className }: Props = $props(); const tag = $derived(`h${h}`); const href = $derived(`#${id}`); @@ -39,9 +40,12 @@ {@render children()} - {#if h >= 2} - Top ▲ - {/if} +
+ {#if ref != null} + Ref ↗ + {/if} + {#if h >= 2} + Top ▲ + {/if} +
diff --git a/zenno/src/routes/doc/race/+page.svelte b/zenno/src/routes/doc/race/+page.svelte index cf5e532..a18f86f 100644 --- a/zenno/src/routes/doc/race/+page.svelte +++ b/zenno/src/routes/doc/race/+page.svelte @@ -215,6 +215,16 @@ {/if} {/snippet} +{#snippet docref(h: string)} +

+ ref ↗ +

+{/snippet} +
{#snippet head()} Race Mechanics Charts @@ -239,23 +249,43 @@ Speed - Spurt Speed + Spurt Speed

Target speed during the Uma's last spurt. See also the effect of Guts.

{@render statChart(race.Stat.Speed, spurtSpeed, 'Spurt Speed (m/s)', [20, 26.5], { len: true, style: true, dist: true })} - Late Race Speed + Late Race Speed

Base target speed during late race when the Uma is not spurting (but not dead yet).

{@render statChart(race.Stat.Speed, nonSpurtSpeed, 'Base Target Speed (m/s)', [18, 23], { len: true, style: true, dist: true })} Stamina - HP + HP

Max HP, i.e. starting HP.

{@render statChart(race.Stat.Stamina, hp, 'HP', [1000, 5000], { len: true })} Power - Move Lane Modifier + Move Lane Modifier

Target speed bonus when changing lanes while under the effect of a lane change speed skill. See lane combo {@render statChart(race.Stat.Power, moveLane, 'Target Speed Modifier (m/s)', [0.2, 0.6])} - Uphill Target Speed Loss + Uphill Target Speed Loss

Target speed modifier while running uphill.

{@render statChart(race.Stat.Power, uphill, 'Target Speed Modifier (m/s)', [-2, 0])} - Acceleration + Acceleration

Acceleration.

{@render statChart(race.Stat.Power, accel, 'Acceleration (m/s²)', [0.1, 0.55], { style: true })} - Lane Change Target Speed + Lane Change Target Speed

Horizontal (rather than forward) target speed of changing lanes.

- Conserve Power Acceleration -

Bonus acceleration at spurt start from the Conserve Power mechanic.

+ Fully Charged Acceleration +

+ Bonus acceleration at spurt start from the Charge Up/Fully Charged mechanic. Scales with base power plus passive skills, so + modifiers for ground conditions and career mode do not apply. +

This mechanic does not appear to be well understood, in particular how long the acceleration bonus lasts and how the rushed and spot struggle multipliers apply. @@ -293,26 +346,51 @@ Guts - Spurt Speed + Spurt Speed

Target speed during the Uma's last spurt. See also the effect of Speed.

{@render statChart(race.Stat.Guts, gutsSpurt, 'Spurt Speed (m/s)', [20, 26.5], { len: true, style: true, dist: true })} - Minimum Speed + Minimum Speed

Forced minimum speed, as well as target speed when out of HP.

{@render statChart(race.Stat.Guts, minSpeed, 'Target Speed (m/s)', [15.8, 18.5], { len: true })} - Late Race HP Consumption Rate Modifier + Late Race HP Consumption Rate Modifier

Multiplier on HP consumption rate during late race and last spurt phase.

{@render statChart(race.Stat.Guts, gutsHPRate, 'HP Consumption Multiplier', [1.2, 1.6])} - Spot Struggle + Spot Struggle

Speed boost and duration of spot struggle.

- Dueling + Dueling

Speed boost and acceleration boost of dueling.

@@ -321,7 +399,12 @@ Wit - Section Speed + Section Speed

Random variance in target speed per race section.

- Downhill Accel Mode Chance + Downhill Accel Mode Chance

Chance each second to enter downhill accel mode when eligible.

{@render statChart(race.Stat.Wit, downhill, 'Entry Chance (% each second)', [0, 75])} - Reduced Spurt Accept Chance + Reduced Spurt Accept Chance

Chance to accept each checked spurt delay and speed when not full spurting.

{@render statChart(race.Stat.Wit, reducedSpurt, 'Accept Chance (% each candidate)', [0, 100])} - Skill Activation Chance + Skill Activation Chance

Chance that each skill that has a wit check will be eligible to activate. This uses base wit, so style aptitude and passive wit skills do not affect the chance, although mood does.

{@render statChart(race.Stat.Wit, skillChance, 'Skill Activation Chance (%)', [0, 100])} - Position Keep Mode Chance + Position Keep Mode Chance

Chance for front runners to enter speed-up or overtake mode, or for non-front runners to enter pace-up mode (but no effect on pace-down mode), each 2 seconds when eligible.

{@render statChart(race.Stat.Wit, poskeep, 'Mode Entry Chance (%)', [0, 50])} - Rushed Chance + Rushed Chance

Chance for runners to become rushed at some point during the race. Rushed chance is bracketed to integer percentages.

{@render statChart(race.Stat.Wit, rushed, 'Rushed Chance (%)', [0, 30])}