forked from phenom/healer-man
Release Healer Man 0.1.40
This commit is contained in:
1 parent
ed0d2fea3d
commit
197a64117c
215 files changed
+5131
-181
No files matched your search
@@ -6,6 +6,7 @@ import {
|
||||
resetDungeonEncounters,
|
||||
} from "./dungeonEncounterRuntime";
|
||||
import { applySharedWorld } from "./OnlineSessionBridge";
|
||||
import { useCombatStore } from "./combatStore";
|
||||
import { useGameStore } from "./store";
|
||||
import {
|
||||
WAILING_NARALEX_ENCOUNTER,
|
||||
@@ -58,4 +59,19 @@ describe("online shared-world hydration", () => {
|
||||
revision: authority.revision,
|
||||
});
|
||||
});
|
||||
|
||||
it("awards the authority's card rolls once to a follower, including after reconnect", () => {
|
||||
useCombatStore.getState().initializeCharacter({ classId: "priest", level: 20 });
|
||||
useCombatStore.getState().registerMob("shared-boss", { name: "Lady Anacondra", boss: true, maxHealth: 1 });
|
||||
const mob = useCombatStore.getState().mobs["shared-boss"];
|
||||
const world = { ...EMPTY_SHARED_WORLD, mobs: { "shared-boss": { ...mob, dead: true, looted: true, health: 0, bossCardDrop: { bossKey: "wow:lady anacondra", spawnId: mob.id, claimId: "shared-kill:1", rarities: ["normal", "epic"] as const } } } };
|
||||
applySharedWorld(world);
|
||||
applySharedWorld(world);
|
||||
expect(useCombatStore.getState().bossCards.counts["wow:lady anacondra"]).toEqual({ normal: 1, epic: 1 });
|
||||
const bossCards = JSON.parse(JSON.stringify(useCombatStore.getState().bossCards));
|
||||
useCombatStore.getState().initializeCharacter({ classId: "priest", level: 20, bossCards });
|
||||
applySharedWorld(world);
|
||||
expect(useCombatStore.getState().bossCards.counts["wow:lady anacondra"]).toEqual({ normal: 1, epic: 1 });
|
||||
expect(useCombatStore.getState().inventory).toEqual([]);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user