forked from phenom/healer-man
Update class mechanics, stat rulesets, and CoA reference catalogs
This commit is contained in:
1 parent
b16821e92e
commit
39458d5de6
221 files changed
+2584962
-568
No files matched your search
@@ -57,6 +57,28 @@ describe("boss item stats", () => {
|
||||
expect(normalizeItemStats(undefined, fallback)).toEqual(itemStatsFor(fallback));
|
||||
});
|
||||
|
||||
it("persists explicit RoM-native gear separately from unchanged WotLK stats", () => {
|
||||
const source = {
|
||||
itemId: 999001,
|
||||
quality: "rare" as const,
|
||||
inventorySlot: "head",
|
||||
armorType: null,
|
||||
weaponType: null,
|
||||
itemLevel: 20,
|
||||
sourceItemLevel: 20,
|
||||
sourceStats: { strength: 8, spellPower: 40 },
|
||||
romNative: { strength: 3, magicalDamage: 17, healPowerRateFactor: 1.15 },
|
||||
};
|
||||
const item = itemStatsFor(source);
|
||||
expect(item).toMatchObject({ strength: 8, spellPower: 40 });
|
||||
expect(item.romNative).toEqual(source.romNative);
|
||||
expect(normalizeItemStats(item, source)).toMatchObject({
|
||||
strength: 8,
|
||||
spellPower: 40,
|
||||
romNative: source.romNative,
|
||||
});
|
||||
});
|
||||
|
||||
it("turns stamina into health and armor into reduced incoming damage", () => {
|
||||
expect(healthFromStamina(7)).toBe(70);
|
||||
expect(damageAfterArmor(100, 0, 20)).toBe(100);
|
||||
|
||||
Reference in new issue
Block a user