Valley map: bully fight starts at the fight's outcomes; figures moved off the place
Clicking the bully fight now assumes you stepped in, so every dragon's route fans out through the bullies' fate and the forks (like the wounded cadet), counting the risk of dying in the fight. The three fighters sit beside the clearing instead of on its marker. 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
68587a55f0
commit
1646844fa6
@@ -87,7 +87,7 @@
|
||||
"dir:Center": { force: { direction: "Center" }, at: "fs" },
|
||||
"dir:East": { force: { direction: "East" }, at: "fs" },
|
||||
scream: { force: {}, at: "scream" },
|
||||
bully: { force: { scream: INV }, at: "clearing" },
|
||||
bully: { force: { scream: INV, clearing: HELPC }, at: "fate", risk: true, note: "You stepped in to help your squadmate, so these chances include the risk of being killed in the fight. Walking away instead leads to the hour's walk." },
|
||||
wounded: { force: { scream: "Keep walking" }, at: "wounded" },
|
||||
away: { force: { scream: INV, clearing: "Walk away" }, at: "hour" },
|
||||
"res:Killed the bullies yourself": { force: { scream: INV, clearing: HELPC, fate: "Killed the bullies yourself" }, at: "post" },
|
||||
@@ -117,11 +117,12 @@
|
||||
if (s.kind === "end") return { x: 0, w: reached ? 1 : 0 };
|
||||
const live = reached && s.risk ? 1 - s.risk.p : 1;
|
||||
const atPoint = !reached && s.var === pt.at && Object.keys(pt.force).every((k) => h[k] != null || k === pt.at);
|
||||
const live2 = atPoint && pt.risk && s.risk ? 1 - s.risk.p : live;
|
||||
if (reached || atPoint) {
|
||||
if (s.kind === "decision") return { x: live * Math.max(...Object.values(s.options).map((v) => v.pX)), w: 1 };
|
||||
if (s.kind === "decision") return { x: live2 * Math.max(...Object.values(s.options).map((v) => v.pX)), w: 1 };
|
||||
let x = 0;
|
||||
for (const [b, p] of Object.entries(s.probs)) if (p) x += p * rec({ ...h, [s.var]: b }, true).x;
|
||||
return { x: live * x, w: 1 };
|
||||
return { x: live2 * x, w: 1 };
|
||||
}
|
||||
const forced = pt.force[s.var];
|
||||
if (s.kind === "decision") {
|
||||
@@ -337,9 +338,9 @@
|
||||
|
||||
/* ---------- the people (and the thorn) of the valley ---------- */
|
||||
const SCENERY = [
|
||||
{ at: "bully", fig: "defender", dx: 6, sc: 0.42, tip: "The bully fight", text: "Your squadmate holds off two cadets who have bullied them since Parapet. Help them, or walk away." },
|
||||
{ at: "bully", fig: "lunging", dx: 30, sc: 0.42, tip: "The bully fight", text: "The bigger cadet swings a sword; the smaller one has a dagger ready to throw." },
|
||||
{ at: "bully", fig: "throwing", dx: 58, sc: 0.42, tip: "The bully fight", text: "Assess first, even the numbers, or put yourself in the middle. Then decide the bullies' fate." },
|
||||
{ at: "bully", fig: "defender", dx: -150, dy: 62, sc: 0.42, tip: "The bully fight", text: "Your squadmate holds off two cadets who have bullied them since Parapet. Help them, or walk away." },
|
||||
{ at: "bully", fig: "lunging", dx: -126, dy: 62, sc: 0.42, tip: "The bully fight", text: "The bigger cadet swings a sword; the smaller one has a dagger ready to throw." },
|
||||
{ at: "bully", fig: "throwing", dx: -98, dy: 62, sc: 0.42, tip: "The bully fight", text: "Assess first, even the numbers, or put yourself in the middle. Then decide the bullies' fate." },
|
||||
{ at: "wounded", fig: "lying", dx: -72, dy: 4, sc: 0.56, tip: "The wounded cadet", text: "Ignore the scream and you find a badly wounded cadet. Tie a tourniquet, leave them, or take their weapons." },
|
||||
{ at: "hour", fig: "thorns", dx: -66, dy: 6, sc: 0.44, tip: "An hour's walk", text: "No dragon for an hour, and a thorn cuts the back of your hand. Then: climb the tallest tree, or walk on to the valley centre." },
|
||||
];
|
||||
@@ -567,6 +568,7 @@
|
||||
return `<div class="ex-head"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="5" fill="var(--accent)"/><circle cx="12" cy="12" r="10" fill="none" stroke="var(--accent)" stroke-width="2"/></svg>
|
||||
<div><span class="eyebrow">Starting from</span><h2 id="h-valley">${esc(name)}</h2></div>
|
||||
<button type="button" class="ex-close" id="ex-clear-point" aria-label="Back to the whole valley">×</button></div>
|
||||
${POINTS[st.point].note ? `<p class="small">${esc(POINTS[st.point].note)}</p>` : ""}
|
||||
<p class="small muted">If you are here, this is your best chance of bonding each dragon from here on, playing the best route after this point. Earlier rolls are averaged over the ways of getting here. Pick a dragon to follow its route step by step.</p>
|
||||
<div class="ex-from">${rows}</div>
|
||||
<div class="seg" role="group" aria-label="Goal"><button type="button" data-o="eventually" aria-pressed="${st.objective === "eventually"}">Only this dragon</button><button type="button" data-o="thisAttempt" aria-pressed="${st.objective === "thisAttempt"}">Best odds this run</button></div>
|
||||
|
||||
Reference in New Issue
Block a user