Let NPCs roam as HandleNPCStep does
Checks / web (push) Canceled after 0s

- Random walks and spins from SpriteMovementData, with random sleeps.
- CanObjectMoveInDirection: side walls, land, objects' current and
  previous tiles, the radius (stored plus one) and the screen edge.
- Objects freeze while text is open and during applymovement, and
  return home when both they and their home leave the object window.
- Wandering positions are not saved; test helpers replan around NPCs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sébastien QUEROLandClaude Opus 5.5 committed 2026-09-23 17:40:12 +02:00
1 parent 796fe8f6d5
commit 6a74f59e46
12 files changed
+386 -20

No files matched your search

+3
View File
@@ -111,6 +111,9 @@ describe.skipIf(!existsSync(romPath))("Route 29 with the local ROM", () => {
expect(world.notice, world.diagnostic).toBe("");
};
crossWest(ROUTE_29);
// Route29TuscanyCallback hides Tuscany without the Zephyr Badge, even on
// a Tuesday (2026-09-22).
expect(world.objects().some((object) => object.id === 8)).toBe(false);
crossWest("26:3");
walkTo(world, 17, 8);
expect(world.move("up")).toBe(true);