Fear's spaces are walked, not flown — warps carry the dread
The owner caught the metric: a wizard eight squares away as the crow flies stood three WALKED spaces away through a warp, and the manhattan check waved it through (while falsely blocking approaches manhattan- near through solid walls). fearRepels now measures walkingDistance — the same BFS the maze walks, warps included, walls respected. The board's aura follows suit: the diamond becomes a violet wash on every square within three walked spaces, computed by the same BFS, warp mouths included. No rev-32 ledger existed yet, so the metric corrects inside rev 32. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0138A8CjeQRpvzKxuMfz1Bqc
This commit is contained in:
co-authored by
Claude Fable 5
parent
644d651ae0
commit
410ebc0135
@@ -739,7 +739,7 @@ describe("fear holds off monsters and unwilling feet alike (rules rev 32)", () =
|
||||
wallPassesPerTurn: 0, wallPassUsed: 0, attackUsed: false, justCreated: false,
|
||||
scorchedThisTurn: [],
|
||||
} as never);
|
||||
state.edgeOverrides[edgeKey({ x: 2, y: 8 }, "S")] = "open";
|
||||
for (const y of [5, 6, 7, 8]) state.edgeOverrides[edgeKey({ x: 2, y }, "S")] = "open";
|
||||
while (state.players[state.turn.activeIndex]!.id !== "a") {
|
||||
const r = applyCommand(state, state.players[state.turn.activeIndex]!.id, { type: "endTurn", draw: 0 });
|
||||
if (!r.ok) throw new Error(r.error);
|
||||
|
||||
Reference in New Issue
Block a user