Il taccuino: le tappe del capitolo e l'obiettivo di adesso (tasto N)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ApqNBvNbNCwXqR2RLo8QJh
This commit is contained in:
@@ -339,6 +339,11 @@ export class Game {
|
||||
}
|
||||
|
||||
// La mappa: i posti già visti, con la posizione sulla pianta, e le strade che li collegano (uscite fra due posti visti).
|
||||
// Il taccuino: le tappe fatte e quella di adesso (la prima non fatta).
|
||||
notebook() {
|
||||
const steps = this.story.notebook ?? [], at = steps.findIndex(s => !check(s.done, this.state));
|
||||
return { done: (at < 0 ? steps : steps.slice(0, at)).map(s => s.text), now: at < 0 ? null : steps[at].text };
|
||||
}
|
||||
mapPlaces() {
|
||||
return Object.entries(this.story.scenes)
|
||||
.filter(([id, sc]) => sc.map && this.state.flags['visto:' + id])
|
||||
|
||||
Reference in New Issue
Block a user