Update Healer Man server

This commit is contained in:
phenom committed 2026-09-25 18:46:09 -04:00
1 parent a868401ebc
commit 48a678dcc5
295 files changed
+7644 -467

No files matched your search

+11
View File
@@ -36,6 +36,8 @@ export interface GameState {
activeGmReviewTarget: GmReviewTarget | null;
activeSpawn: WorldSpawn;
sessionRevision: number;
dungeonIntroActive: boolean;
dungeonIntroCompletedAt: number | null;
overlay: GameOverlay;
paused: boolean;
mapOpen: boolean;
@@ -67,8 +69,10 @@ export interface GameState {
readonly bossTest?: BossTestSession | null;
readonly gmReviewTarget?: GmReviewTarget | null;
readonly bossDifficulty?: number;
readonly showDungeonIntro?: boolean;
},
) => void;
completeDungeonIntro: (sessionRevision: number) => void;
openOverlay: (overlay: Exclude<GameOverlay, null>) => void;
toggleOverlay: (overlay: Exclude<GameOverlay, null>) => void;
closeOverlay: () => void;
@@ -102,6 +106,8 @@ export const useGameStore = create<GameState>((set) => ({
activeGmReviewTarget: null,
activeSpawn: { footPosition: entrance.footPosition, yaw: entrance.yaw },
sessionRevision: 0,
dungeonIntroActive: false,
dungeonIntroCompletedAt: null,
overlay: null,
paused: false,
mapOpen: false,
@@ -140,6 +146,8 @@ export const useGameStore = create<GameState>((set) => ({
activeGmReviewTarget: options?.gmReviewTarget ?? null,
activeSpawn,
sessionRevision: state.sessionRevision + 1,
dungeonIntroActive: options?.showDungeonIntro ?? false,
dungeonIntroCompletedAt: null,
overlay: null,
paused: false,
mapOpen: false,
@@ -159,6 +167,9 @@ export const useGameStore = create<GameState>((set) => ({
relocationRevision: state.relocationRevision + 1,
};
}),
completeDungeonIntro: (sessionRevision) => set((state) => state.sessionRevision === sessionRevision && state.dungeonIntroActive
? { dungeonIntroActive: false, dungeonIntroCompletedAt: Date.now() }
: state),
openOverlay: (overlay) => set({
overlay,
paused: true,