Il 1997: l'Arcu viene anche lui al Barrettino, e il pulsante «Torna al 2007» (come la porta) riporta in Via Liguri Magelli e fa sparire la macchina del tempo; per rifare il viaggio si richiede all'Arcu (Andrea)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GiECd9KMfjthRUnujCGSzZ
This commit is contained in:
@@ -81,6 +81,21 @@ test('la macchina del tempo: l\'Arcu la fa comparire, il viaggio porta al Barret
|
||||
g.closeup.step = 'result'; g.closeup.result = { winner: 'player', chips: { andrea: 200, vannino: 60, pierino: 40 }, top: ['andrea'] };
|
||||
g.closeupClose(); settle(g);
|
||||
assert.ok(g.state.flags.poker_vinto);
|
||||
assert.ok(g.hotspot('arcu'), 'l\'Arcu è venuto anche lui');
|
||||
g.act('walk', 'porta'); settle(g);
|
||||
assert.equal(g.state.scene, 'via_liguri_magelli');
|
||||
assert.ok(!g.state.flags.macchina_trappola && !g.hotspot('macchina_tempo'), 'tornati, la macchina sparisce');
|
||||
assert.equal(g.goBack(), false, 'nel 2007 il pulsante non c\'è');
|
||||
// Per rifare il viaggio si richiede all'Arcu; dal 1997 si torna anche col pulsante «Torna al 2007».
|
||||
g.act('talk', 'arcu'); settle(g);
|
||||
g.choose(g.options().findIndex(o => o.text.startsWith('Bei tempi'))); settle(g);
|
||||
g.choose(g.options().findIndex(o => o.text.startsWith('Ci si vede'))); settle(g);
|
||||
g.act('use', 'macchina_tempo'); settle(g);
|
||||
for (let t = 0; t < TRIP.end + 0.5 && g.closeup; t += 0.05) g.update(0.05);
|
||||
settle(g);
|
||||
assert.equal(g.state.scene, 'barrettino_1997');
|
||||
assert.equal(g.scene.back.label, 'Torna al 2007');
|
||||
assert.ok(g.goBack()); settle(g);
|
||||
assert.equal(g.state.scene, 'via_liguri_magelli');
|
||||
assert.ok(!g.hotspot('macchina_tempo'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user