Release Healer Man 0.1.45

This commit is contained in:
phenom committed 2026-09-15 14:43:15 -04:00
1 parent 756ee4f64a
commit f82daf1c13
242 files changed
+1440 -101

No files matched your search

+38 -1
View File
@@ -1,5 +1,12 @@
import { describe, expect, it } from "vitest";
import { normalizeEnemyAttack, type EnemyAttackDefinition } from "./enemyAttacks";
import {
ENEMY_SLOW_MOVEMENT_MULTIPLIER,
enemyControlMovementMultiplier,
enemyControlPreventsActions,
enemyControlPreventsMovement,
normalizeEnemyAttack,
type EnemyAttackDefinition,
} from "./enemyAttacks";
function attack(overrides: Partial<EnemyAttackDefinition>): EnemyAttackDefinition {
return {
@@ -52,5 +59,35 @@ describe("enemy attack telegraphs", () => {
expect(normalizeEnemyAttack(attack({
effect: { kind: "heal", multiplier: 1 },
})).telegraph).toBeUndefined();
expect(normalizeEnemyAttack(attack({
effect: {
kind: "composite",
effects: [{ kind: "summon", creatureEntry: 1, count: 1 }],
},
})).telegraph).toBeUndefined();
expect(normalizeEnemyAttack(attack({
effect: {
kind: "composite",
effects: [
{ kind: "damage", multiplier: 1 },
{ kind: "summon", creatureEntry: 1, count: 1 },
],
},
})).telegraph).toMatchObject({ shape: "circle" });
});
});
describe("enemy control movement", () => {
it("keeps slowed actors active while reducing movement", () => {
expect(enemyControlPreventsActions("slow")).toBe(false);
expect(enemyControlPreventsMovement("slow")).toBe(false);
expect(enemyControlMovementMultiplier("slow")).toBe(ENEMY_SLOW_MOVEMENT_MULTIPLIER);
});
it("keeps roots movement-only while preserving hard-control action locks", () => {
expect(enemyControlPreventsActions("root")).toBe(false);
expect(enemyControlPreventsMovement("root")).toBe(true);
expect(enemyControlMovementMultiplier("root")).toBe(1);
expect(enemyControlPreventsActions("stun")).toBe(true);
});
});