updated the dungeon loading so it doesnt fail first try

This commit is contained in:
phenom committed 2026-08-17 13:51:12 -04:00
1 parent e39aebf3a1
commit 7e60864e70
11 files changed
+383 -69

No files matched your search

+13
View File
@@ -77,3 +77,16 @@ export function activateDungeonSession(
useCombatStore.getState().setPlayerPosition(useGameStore.getState().playerPosition);
return true;
}
/**
* Rebuilds the current encounter after an asset/render failure without
* discarding the selected character, party composition, or run progression.
*/
export function restartActiveDungeonSession(): boolean {
const game = useGameStore.getState();
return activateDungeonSession(game.activeDungeonId, game.activeDifficultyId, {
gameMode: game.gameMode,
spawn: game.activeSpawn,
preserveCharacter: true,
});
}