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
@@ -14,7 +14,7 @@ describe("Manastorm corpse loot", () => {
|
||||
useManastormStore.getState().resetRun();
|
||||
});
|
||||
|
||||
it("guarantees Kresh's normal item but waits for an explicit reward claim", () => {
|
||||
it("guarantees Kresh's Normal card but waits for an explicit reward claim", () => {
|
||||
const kresh = MANASTORM_ENCOUNTERS.find((encounter) => encounter.id === "kresh")!;
|
||||
useGameStore.getState().activateDungeon(kresh.dungeonId, undefined, {
|
||||
gameMode: "manastorm",
|
||||
@@ -34,13 +34,14 @@ describe("Manastorm corpse loot", () => {
|
||||
useCombatStore.getState().damageMob(kresh.bossRuntimeId, 1, 10_000);
|
||||
|
||||
const corpse = useCombatStore.getState().mobs[kresh.bossRuntimeId];
|
||||
expect(corpse.pendingLoot).toHaveLength(1);
|
||||
expect(corpse.pendingLoot[0]?.sourceBossKey).toBe("kresh");
|
||||
expect(corpse.pendingLoot).toEqual([]);
|
||||
expect(corpse.bossCardDrop?.rarities).toContain("normal");
|
||||
expect(useCombatStore.getState().inventory).toEqual([]);
|
||||
expect(useCombatStore.getState().mobs[kresh.bossRuntimeId]?.looted).toBe(false);
|
||||
expect(lootCurrentManastormBoss(10_100)).toBe(true);
|
||||
expect(useCombatStore.getState().inventory).toEqual(corpse.pendingLoot);
|
||||
expect(useCombatStore.getState().mobs[kresh.bossRuntimeId]?.looted).toBe(true);
|
||||
expect(useCombatStore.getState().bossCards.counts["wow:kresh"]?.normal).toBe(1);
|
||||
expect(useCombatStore.getState().bossLootRewards[0]).toMatchObject({
|
||||
bossId: kresh.bossRuntimeId,
|
||||
bossName: kresh.bossName,
|
||||
@@ -52,7 +53,7 @@ describe("Manastorm corpse loot", () => {
|
||||
it("opens a cache into concrete loot scaled to the character level", () => {
|
||||
useCombatStore.getState().initializeCharacter({
|
||||
classId: "priest",
|
||||
level: 37,
|
||||
level: 80,
|
||||
xp: 0,
|
||||
inventory: [],
|
||||
});
|
||||
@@ -77,7 +78,7 @@ describe("Manastorm corpse loot", () => {
|
||||
expect(useManastormStore.getState().rewardCache).not.toContainEqual(cache);
|
||||
expect(useCombatStore.getState().inventory).toEqual([
|
||||
expect.objectContaining({
|
||||
itemLevel: 37,
|
||||
itemLevel: 85,
|
||||
acquiredAt: 12_345,
|
||||
}),
|
||||
]);
|
||||
|
||||
Reference in new issue
Block a user