forked from phenom/healer-man
updated the dungeon loading so it doesnt fail first try
This commit is contained in:
1 parent
e39aebf3a1
commit
7e60864e70
11 files changed
+383
-69
No files matched your search
@@ -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,
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user