From 792b3f02cc4ec7adde2e868979183f71466d75e3 Mon Sep 17 00:00:00 2001 From: Frutescens Date: Tue, 30 Jul 2024 09:01:52 -0700 Subject: [PATCH] TypeDocs issues --- src/enums/game-data-type.ts | 3 ++- src/locales/en/config.ts | 2 +- src/system/game-data.ts | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/enums/game-data-type.ts b/src/enums/game-data-type.ts index 179817fe5be..d672253794a 100644 --- a/src/enums/game-data-type.ts +++ b/src/enums/game-data-type.ts @@ -6,5 +6,6 @@ export enum GameDataType { SESSION, SETTINGS, TUTORIALS, - SEEN_DIALOGUES + SEEN_DIALOGUES, + RUN_HISTORY } diff --git a/src/locales/en/config.ts b/src/locales/en/config.ts index 072a6a5bb73..7c47f879ef0 100644 --- a/src/locales/en/config.ts +++ b/src/locales/en/config.ts @@ -39,7 +39,7 @@ import { titles, trainerClasses, trainerNames } from "./trainers"; import { tutorial } from "./tutorial"; import { voucher } from "./voucher"; import { weather } from "./weather"; -import { runHistory } from "./run-history-ui-handler.ts"; +import { runHistory } from "./run-history-ui-handler"; export const enConfig = { ability: ability, diff --git a/src/system/game-data.ts b/src/system/game-data.ts index 98de5040960..987082ffb0c 100644 --- a/src/system/game-data.ts +++ b/src/system/game-data.ts @@ -297,6 +297,8 @@ export class GameData { public gameStats: GameStats; + public runHistory: RunHistoryData; + public unlocks: Unlocks; public achvUnlocks: AchvUnlocks; @@ -607,7 +609,7 @@ export class GameData { //Arbitrary limit of 25 entries per User --> Can increase or decrease if (timestamps.length >= 25) { const oldestTimestamp = Math.min.apply(Math, timestampsNo); - delete this.scene.gameData.runHistory[oldestTimestamp.toString()]; + delete runHistoryData[oldestTimestamp.toString()]; } const timestamp = (runEntry.timestamp).toString();