zenno/race/stam: add disclaimers

Also minor adjustments to chart size and how effective HP is calculated.
This commit is contained in:
2026-09-03 15:10:47 -04:00
parent 0791fdd3d4
commit c7a847f677
+17 -2
View File
@@ -130,7 +130,8 @@
}
return { mode: (mr * maxHP) / 10000, modePer: mp * 100, mean };
});
const effStam = $derived(race.effectiveStam(raceLen, style, maxHP + statistics.mode));
const debuffHP = $derived((maxHP * debuffCounts.reduce((a, s) => a + s.r * s.n, 0)) / 10000);
const effStam = $derived(race.effectiveStam(raceLen, style, maxHP + statistics.mode - debuffHP));
const sections = $derived.by(() => {
const r = course.splitSectionSlopes(raceLen, slopesRaw).map((s) => {
@@ -448,7 +449,21 @@
</table>
-->
{#if skills.length != 0 || risky}
<div class="mx-auto h-96 max-w-5xl">
<div class="mx-auto h-96 max-w-3xl">
<HPChart {distribution} {maxHP} />
</div>
{/if}
<div class="mx-auto mt-12 w-full max-w-4xl border-t pt-4 md:mt-8">
<p>
Mode HP from Skills gives the most frequent single result of recoveries and debuffs, along with the probability of that
result.
</p>
<p>
Effective Stamina gives the stamina stat which yields the same HP as the input configuration plus the mode HP from recovery
skills alone, ignoring debuffs. It can be considered the HP that removes wit checks from the equivalent HP pool.
</p>
<p>
As of now, this calculator does not handle recoveries that have no wit check, nor the HP effects of rushed, spot struggle, and
downhill running.
</p>
</div>