Release Healer Man 0.1.54
This commit is contained in:
1 parent
d6976e6ef6
commit
2dbb0acfc1
26 files changed
+1893
-912
No files matched your search
@@ -150,6 +150,26 @@ describe("Ascension-synchronized classic talent trees", () => {
|
||||
expect(allocateTalentPoint(maxed, "priest", rankNode.id, 80).reason).toBe("max-rank");
|
||||
});
|
||||
|
||||
it("clamps stale stock prerequisite ranks to the patched talent maximum", () => {
|
||||
for (const node of TALENT_NODES.filter((candidate) => candidate.system === "classic")) {
|
||||
for (const prerequisite of node.prerequisites) {
|
||||
expect(talentNodeById(prerequisite.talentId), `${node.name} prerequisite`).toBeDefined();
|
||||
expect(
|
||||
prerequisite.requiredRank,
|
||||
`${node.name} requires ${prerequisite.talentId}`,
|
||||
).toBeLessThanOrEqual(talentNodeById(prerequisite.talentId)?.maxRank ?? 0);
|
||||
}
|
||||
}
|
||||
expect(talentNodeById("talent-1917")?.prerequisites).toContainEqual({
|
||||
talentId: "talent-1791",
|
||||
requiredRank: 1,
|
||||
});
|
||||
expect(talentNodeById("talent-1791")?.prerequisites).toContainEqual({
|
||||
talentId: "talent-1789",
|
||||
requiredRank: 3,
|
||||
});
|
||||
});
|
||||
|
||||
it("deterministically trims invalid, legacy, and over-budget persisted allocations", () => {
|
||||
const arcane = firstNode("mage-arcane");
|
||||
const fire = firstNode("mage-fire");
|
||||
|
||||
Reference in new issue
Block a user