The Odds: summary cards first, 'become a rider' card
Remove the 'Your odds, honestly' heading and intro. The two summary cards now lead the page: 'become a rider' (runs that ended bonded to a dragon) and the unchanged 'riders sent to Malek'. The reach-the-hour figure moves into the first card's note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UCzTd31GphpMXDhQqWrCMQ
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
754e4f1eb8
commit
3b3622a08a
@@ -422,15 +422,10 @@ footer { border-top-color: var(--line); }
|
|||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<div class="tabpanel" id="panel-odds" role="tabpanel" aria-labelledby="tab-odds" hidden>
|
<div class="tabpanel" id="panel-odds" role="tabpanel" aria-labelledby="tab-odds" hidden>
|
||||||
<section id="overview" aria-labelledby="h-odds">
|
<section id="overview" aria-label="The odds">
|
||||||
<div class="section-head">
|
<div class="odds" id="odds"></div>
|
||||||
<span class="eyebrow">Before you walk into the valley</span>
|
|
||||||
<h2 id="h-odds">Your odds, honestly</h2>
|
|
||||||
<p class="muted small">For each dragon: the chance a run ends bonded to it if you take the best route and die on purpose whenever it goes wrong. Each grid is 100 runs. The numbers lean on riders who logged <i>every</i> run, because people mostly share their lucky ones.</p>
|
|
||||||
</div>
|
|
||||||
<div class="odds odds-colours" id="odds-colours"></div>
|
<div class="odds odds-colours" id="odds-colours"></div>
|
||||||
<div class="combo" id="combo"></div>
|
<div class="combo" id="combo"></div>
|
||||||
<div class="odds" id="odds"></div>
|
|
||||||
</section>
|
</section>
|
||||||
<section aria-labelledby="h-journey">
|
<section aria-labelledby="h-journey">
|
||||||
<div class="section-head">
|
<div class="section-head">
|
||||||
|
|||||||
+3
-1
@@ -171,9 +171,11 @@
|
|||||||
const cb = r.chance.blue_meadow;
|
const cb = r.chance.blue_meadow;
|
||||||
const bulkB = stratum(cb, "Bulk");
|
const bulkB = stratum(cb, "Bulk");
|
||||||
const tag = (txt) => `<span class="how">${txt}</span>`;
|
const tag = (txt) => `<span class="how">${txt}</span>`;
|
||||||
|
const bonded = Object.entries(r.meta.outcomes).filter(([k]) => k.startsWith("Bonded")).reduce((a, [, v]) => a + v, 0);
|
||||||
const dead = Object.entries(r.meta.outcomes).filter(([k]) => k.startsWith("Incinerated") || k.startsWith("Died")).reduce((a, [, v]) => a + v, 0);
|
const dead = Object.entries(r.meta.outcomes).filter(([k]) => k.startsWith("Incinerated") || k.startsWith("Died")).reduce((a, [, v]) => a + v, 0);
|
||||||
const cards = [
|
const cards = [
|
||||||
{ c: "--accent", big: pct(reach.p), what: "reach the hour alive", how: `${reach.k.toLocaleString()} of ${reach.n.toLocaleString()} logged runs made it past the cadets to the tree-or-valley choice.`, w: reach },
|
// "become a rider" = the run ended bonded to a dragon (reaching the hour alive is not the same thing)
|
||||||
|
{ c: "--accent", big: pct(bonded / r.n), what: "become a rider", how: `${bonded.toLocaleString()} of ${r.n.toLocaleString()} logged runs ended bonded to a dragon. ${pct(reach.p)} made it to the tree-or-valley choice alive; most of the rest were burned at the encounter or died on purpose to try again.`, w: { k: bonded, n: r.n } },
|
||||||
{ c: "--death", big: dead.toLocaleString(), what: "riders sent to Malek", how: `${pct(dead / r.n)} of logged runs ended in fire or worse. Most were riders dying on purpose to try again.`, w: { k: dead, n: r.n }, death: true },
|
{ c: "--death", big: dead.toLocaleString(), what: "riders sent to Malek", how: `${pct(dead / r.n)} of logged runs ended in fire or worse. Most were riders dying on purpose to try again.`, w: { k: dead, n: r.n }, death: true },
|
||||||
];
|
];
|
||||||
$("#odds").innerHTML = cards.map((c) => `<div class="odd${c.death ? " death deco" : ""}" style="--c: var(${c.c})"><span class="big">${esc(c.big)}</span><span class="what">${esc(c.what)}</span>${dots(c.w.k, c.w.n, cssVar(c.c))}${tag(c.how)}</div>`).join("");
|
$("#odds").innerHTML = cards.map((c) => `<div class="odd${c.death ? " death deco" : ""}" style="--c: var(${c.c})"><span class="big">${esc(c.big)}</span><span class="what">${esc(c.what)}</span>${dots(c.w.k, c.w.n, cssVar(c.c))}${tag(c.how)}</div>`).join("");
|
||||||
|
|||||||
Reference in New Issue
Block a user