статистика на экране смерти
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user