статистика на экране смерти

This commit is contained in:
azykov@mail.ru
2026-09-05 11:58:44 +03:00
parent 0c374e3ef8
commit f07602b533
5 changed files with 60 additions and 2 deletions
+9
View File
@@ -20,6 +20,15 @@ export interface SaveData {
hour?: number;
/** Absent on saves from before the character had hp, which default to a full characterMaxHp. */
characterHp?: number;
/** This life's run-summary stats (shown on the death screen) — absent on older saves or a
* fresh game, which default to 0. */
distanceTraveled?: number;
treesChoppedCount?: number;
bushesChoppedCount?: number;
rabbitsCaughtCount?: number;
/** Cumulative coins earned from converting resources — unlike inventory.coins, this never goes
* down when coins are spent on upgrades. */
totalCoinsEarned?: number;
}
function isValidSave(value: unknown): value is SaveData {