From 7133c46891c085ea890138c46a3b17cf96f301b7 Mon Sep 17 00:00:00 2001 From: Andrea Manzi Date: Fri, 23 Oct 2026 00:53:04 +0200 Subject: [PATCH] Il Trebbio si raggiunge dalla Fortezza, con la salita Co-Authored-By: Claude Opus 5.5 --- src/story/story.js | 8 ++++---- tests/browser.mjs | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/story/story.js b/src/story/story.js index 31f5215..2ce055f 100644 --- a/src/story/story.js +++ b/src/story/story.js @@ -86,9 +86,6 @@ export const story = { { id: 'vicolo', name: 'vicolo verso la Fortezza', box: [330, 190, 34, 48], at: [345, 234], exit: { scene: 'fortezza', at: [175, 352], face: 'right' }, }, - { - id: 'verso_trebbio', name: 'strada per il Trebbio', box: [604, 290, 36, 70], at: [632, 335], exit: { scene: 'trebbio', at: [110, 345], face: 'right' }, - }, ], enter: [{ if: '!intro', then: [{ set: 'intro' }, { say: 'Il drappo del Palio è sparito! E la festa è domani.' }, { say: 'Se nessuno lo ritrova, il Palio salta. Tocca a me.' }] }], }, @@ -133,6 +130,9 @@ export const story = { ], }, }, + { + id: 'sentiero_trebbio', name: 'salita per il Trebbio', box: [0, 300, 26, 60], at: [6, 340], exit: { scene: 'trebbio', at: [110, 345], face: 'right' }, + }, { id: 'verso_piazza', name: 'verso la Piazza', box: [120, 344, 110, 16], at: [175, 356], exit: { scene: 'piazza', at: [345, 240], face: 'left' }, }, @@ -169,7 +169,7 @@ export const story = { }, }, { - id: 'verso_paese', name: 'verso San Piero', box: [80, 318, 26, 42], at: [92, 345], exit: { scene: 'piazza', at: [628, 335], face: 'left' }, + id: 'verso_fortezza', name: 'discesa verso la Fortezza', box: [80, 318, 26, 42], at: [92, 345], exit: { scene: 'fortezza', at: [20, 340], face: 'right' }, }, ], }, diff --git a/tests/browser.mjs b/tests/browser.mjs index b69a2e1..87f00bb 100644 --- a/tests/browser.mjs +++ b/tests/browser.mjs @@ -78,8 +78,10 @@ try { // Una partita a metà riprende da dove era rimasta. await page.click('#restart'); await settle(page); - await clickScene(page, await hotspotCenter(page, 'verso_trebbio')); - await settle(page); + for (const exit of ['vicolo', 'sentiero_trebbio']) { + await clickScene(page, await hotspotCenter(page, exit)); + await settle(page); + } await page.click('#verbs [data-verb="talk"]'); await clickScene(page, await hotspotCenter(page, 'torre')); await page.locator('#choices li', { hasText: 'bloccato' }).click();