Update class mechanics, stat rulesets, and CoA reference catalogs

This commit is contained in:
phenom committed 2026-10-04 12:56:30 -04:00
1 parent b16821e92e
commit 39458d5de6
221 files changed
+2584962 -568

No files matched your search

+19
View File
@@ -90,6 +90,25 @@ describe("discrete combat results", () => {
expect(result.finalDamage).toBe(100 - result.armorMitigatedAmount);
});
it("lets a source-marked bleed tick bypass armor without skipping other target reductions", () => {
const result = resolveCombatResult({
...physicalAttack({
attacker: { level: 80, hitPercent: 100 },
defender: { level: 80, armor: 100_000, damageReductionPercent: 20 },
rules: { ignoreArmor: true, canMiss: false, canCrit: false, canDodge: false, canParry: false, canBlock: false },
}),
roll: fixedRoll(0.5),
});
expect(result).toMatchObject({
outcome: "hit",
effectiveArmor: 0,
armorReductionPercent: 0,
armorMitigatedAmount: 0,
damageReductionAmount: 20,
finalDamage: 80,
});
});
it("fully resists binary spells using a separate deterministic resistance roll", () => {
const result = resolveCombatResult({
amount: 100,