From 58b8bbc27bfdb59a840cd92eda72786fa7ace204 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 23 Feb 2025 22:21:10 -0800 Subject: [PATCH] oops, missed revisions in StateManager --- src/statemanager.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/statemanager.ts b/src/statemanager.ts index a30cdb3..50489ec 100644 --- a/src/statemanager.ts +++ b/src/statemanager.ts @@ -15,15 +15,22 @@ const N_TURNS: number = 9; export class StateManager { #turn: number; + #revision: number; constructor() { this.#turn = 1; + this.#revision = 1; } getTurn(): number { return this.#turn; } + nextRevision(): number { + this.#revision++; + return this.#revision; + } + startFirstGame() { getVNModal().play([ ...openingScene,