TypeDocs issues

This commit is contained in:
Frutescens 2024-07-30 09:01:52 -07:00
parent 090b3abc48
commit dc56849f60
3 changed files with 6 additions and 3 deletions

View File

@ -6,5 +6,6 @@ export enum GameDataType {
SESSION, SESSION,
SETTINGS, SETTINGS,
TUTORIALS, TUTORIALS,
SEEN_DIALOGUES SEEN_DIALOGUES,
RUN_HISTORY
} }

View File

@ -39,7 +39,7 @@ import { titles, trainerClasses, trainerNames } from "./trainers";
import { tutorial } from "./tutorial"; import { tutorial } from "./tutorial";
import { voucher } from "./voucher"; import { voucher } from "./voucher";
import { weather } from "./weather"; import { weather } from "./weather";
import { runHistory } from "./run-history-ui-handler.ts"; import { runHistory } from "./run-history-ui-handler";
export const enConfig = { export const enConfig = {
ability: ability, ability: ability,

View File

@ -297,6 +297,8 @@ export class GameData {
public gameStats: GameStats; public gameStats: GameStats;
public runHistory: RunHistoryData;
public unlocks: Unlocks; public unlocks: Unlocks;
public achvUnlocks: AchvUnlocks; public achvUnlocks: AchvUnlocks;
@ -607,7 +609,7 @@ export class GameData {
//Arbitrary limit of 25 entries per User --> Can increase or decrease //Arbitrary limit of 25 entries per User --> Can increase or decrease
if (timestamps.length >= 25) { if (timestamps.length >= 25) {
const oldestTimestamp = Math.min.apply(Math, timestampsNo); const oldestTimestamp = Math.min.apply(Math, timestampsNo);
delete this.scene.gameData.runHistory[oldestTimestamp.toString()]; delete runHistoryData[oldestTimestamp.toString()];
} }
const timestamp = (runEntry.timestamp).toString(); const timestamp = (runEntry.timestamp).toString();