forked from phenom/healer-man
Release Healer Man 0.1.22
This commit is contained in:
1 parent
f6f2375145
commit
7f6001723a
144 files changed
+54107
-690
No files matched your search
@@ -1,5 +1,8 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { activeEncounterSpawnGroupSpawns } from "./dungeonEncounterSpawns";
|
||||
import {
|
||||
activeEncounterSpawnGroupSpawns,
|
||||
suppressCompletedDungeonPopulation,
|
||||
} from "./dungeonEncounterSpawns";
|
||||
|
||||
const spawn = (id: string, spawnMask: number) => ({
|
||||
id,
|
||||
@@ -20,4 +23,24 @@ describe("encounter spawn groups", () => {
|
||||
{ id: "wave-a", spawns: [spawn("one", 1), spawn("two", 2)] },
|
||||
], ["wave-a"], 2).map((entry) => entry.id)).toEqual(["two"]);
|
||||
});
|
||||
|
||||
it("suppresses completed static and roaming boss runtime ids on checkpoint reload", () => {
|
||||
const result = suppressCompletedDungeonPopulation(
|
||||
[spawn("static-boss", 1), spawn("trash", 1)],
|
||||
[{
|
||||
id: "boss-patrol",
|
||||
name: "Boss Patrol",
|
||||
speed: 1,
|
||||
formationSource: "database-solo",
|
||||
waypoints: [[0, 0, 0], [1, 0, 0]],
|
||||
members: [
|
||||
{ id: "boss", entityId: "test-mob", role: "leader", formationOffset: [0, 0, 0] },
|
||||
{ id: "escort", entityId: "test-mob", role: "follower", formationOffset: [1, 0, 0] },
|
||||
],
|
||||
}],
|
||||
["static-boss", "boss-patrol:boss"],
|
||||
);
|
||||
expect(result.staticSpawns.map((entry) => entry.id)).toEqual(["trash"]);
|
||||
expect(result.roamingPacks[0].members.map((member) => member.id)).toEqual(["escort"]);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user