From c82bef70b25a7a93a1bf23139f9d6908b69fc120 Mon Sep 17 00:00:00 2001 From: Andrea Manzi Date: Mon, 26 Oct 2026 14:28:21 +0100 Subject: [PATCH] =?UTF-8?q?Oratorio:=20il=20libro=20della=20Storia=20infin?= =?UTF-8?q?ita=20passa=20sulla=20prima=20tavolata,=20a=20sinistra=20del=20?= =?UTF-8?q?palo,=20lontano=20dal=20giocatore=20di=20carte=20(Andrea:=20?= =?UTF-8?q?=C2=ABtroppo=20vicini,=20non=20riesco=20a=20interagire=C2=BB);?= =?UTF-8?q?=20test=20che=20li=20distingue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01A1dxvtsZx8NE9fwjXUNDBr --- src/story/story.js | 5 +++-- tests/story.test.mjs | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/story/story.js b/src/story/story.js index be87a28..be05adf 100644 --- a/src/story/story.js +++ b/src/story/story.js @@ -793,8 +793,9 @@ export const story = { }, { // Dopo le tavolate: dove si sovrappongono, vince l'ultimo della lista. - id: 'libro_dimenticato', name: 'libro dimenticato', box: [562, 198, 18, 12], at: [560, 268], face: 'up', when: ['!has:libro', '!libro_preso'], - art: [{ rect: [565, 203, 11, 5], fill: '#c46a3a' }, { rect: [565, 207, 11, 1], fill: '#f4efe4' }, { rect: [569, 204, 3, 3], fill: '#e8c25a' }], + // Sulla prima tavolata, a sinistra del palo: lontano dal giocatore di carte (Andrea: «troppo vicini»). + id: 'libro_dimenticato', name: 'libro dimenticato', box: [512, 198, 22, 14], at: [522, 262], face: 'up', when: ['!has:libro', '!libro_preso'], + art: [{ rect: [517, 203, 11, 5], fill: '#c46a3a' }, { rect: [517, 207, 11, 1], fill: '#f4efe4' }, { rect: [521, 204, 3, 3], fill: '#e8c25a' }], actions: { look: [{ say: 'Un libro dimenticato sulle tavolate. Sulla copertina c\'è scritto «La storia infinita».' }], take: [{ give: 'libro' }, { set: 'libro_preso' }, { say: 'Ricordo di aver visto il film da piccolo... era stupendo!' }, { closeup: 'libro' }], diff --git a/tests/story.test.mjs b/tests/story.test.mjs index b5cb50d..d865e44 100644 --- a/tests/story.test.mjs +++ b/tests/story.test.mjs @@ -205,7 +205,8 @@ test('il libro dell\'oratorio: il primo piano si sfoglia, l\'ultima pagina è « const g = new Game(story); g.go('oratorio', [320, 345]); settle(g); - assert.ok(g.hotspotAt([570, 205])?.id === 'libro_dimenticato', 'sulle tavolate il clic prende il libro, non le tavolate'); + assert.ok(g.hotspotAt([522, 205])?.id === 'libro_dimenticato', 'sulle tavolate il clic prende il libro, non le tavolate'); + assert.ok(g.hotspotAt([598, 215])?.id === 'giocatore_carte', 'il giocatore di carte resta cliccabile, lontano dal libro'); assert.ok(g.act('take', 'libro_dimenticato')); const before = settle(g).map(s => s.text); assert.deepEqual(before, ['Ricordo di aver visto il film da piccolo... era stupendo!']);