Update Healer Man server
This commit is contained in:
1 parent
a868401ebc
commit
48a678dcc5
295 files changed
+7644
-467
No files matched your search
@@ -12,11 +12,25 @@ describe("game store", () => {
|
||||
companionOpen: false,
|
||||
assetStatus: "checking",
|
||||
assetMessage: null,
|
||||
dungeonIntroActive: false,
|
||||
dungeonIntroCompletedAt: null,
|
||||
distanceTravelled: 0,
|
||||
hasMoved: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("keeps a new dungeon gated until its own intro finishes", () => {
|
||||
const game = useGameStore.getState();
|
||||
game.activateDungeon("wailing-caverns", undefined, { showDungeonIntro: true });
|
||||
const revision = useGameStore.getState().sessionRevision;
|
||||
expect(useGameStore.getState().dungeonIntroActive).toBe(true);
|
||||
useGameStore.getState().completeDungeonIntro(revision - 1);
|
||||
expect(useGameStore.getState().dungeonIntroActive).toBe(true);
|
||||
useGameStore.getState().completeDungeonIntro(revision);
|
||||
expect(useGameStore.getState().dungeonIntroActive).toBe(false);
|
||||
expect(useGameStore.getState().dungeonIntroCompletedAt).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("opens the map without leaving camera control active", () => {
|
||||
useGameStore.setState({ cameraLookActive: true });
|
||||
useGameStore.getState().toggleMap();
|
||||
|
||||
Reference in new issue
Block a user