generated from nhcarrigan/template
fix: preserve codex lore entries across prestige resets
This commit is contained in:
@@ -111,6 +111,8 @@ export const buildPostPrestigeState = (
|
|||||||
...freshState,
|
...freshState,
|
||||||
prestige: newPrestigeData,
|
prestige: newPrestigeData,
|
||||||
lastTickAt: Date.now(),
|
lastTickAt: Date.now(),
|
||||||
|
// Codex lore persists across prestiges — players keep their discovered entries
|
||||||
|
...(currentState.codex ? { codex: currentState.codex } : {}),
|
||||||
};
|
};
|
||||||
|
|
||||||
return { newState, newPrestigeData, runestonesEarned, milestoneRunestones };
|
return { newState, newPrestigeData, runestonesEarned, milestoneRunestones };
|
||||||
|
|||||||
Reference in New Issue
Block a user