Release Healer Man 0.1.5

This commit is contained in:
phenom committed 2026-08-18 16:22:19 -04:00
1 parent f4c9cf356c
commit 55cfd43d66
62 files changed
+3030 -153

No files matched your search

+14
View File
@@ -124,6 +124,20 @@ describe("combat store", () => {
expect(useCombatStore.getState().setActionBinding("primary", "face-bottom", abilityId)).toBe(false);
});
it("requires an explicit resurrection action to restore a defeated player", () => {
const maxHealth = useCombatStore.getState().maxHealth;
useCombatStore.getState().damagePlayer(maxHealth * 10);
expect(useCombatStore.getState().health).toBe(0);
expect(useCombatStore.getState().healPlayer(maxHealth)).toBe(0);
expect(useCombatStore.getState().health).toBe(0);
const restored = useCombatStore.getState().revivePlayer(0.35);
expect(restored).toBe(Math.max(1, Math.round(maxHealth * 0.35)));
expect(useCombatStore.getState().health).toBe(restored);
expect(useCombatStore.getState().revivePlayer(1)).toBe(0);
});
it("starts with attribute-derived pools including racial and automatic class passives", () => {
const gnomeMage = deriveCharacterStats("mage", 1, EMPTY_ITEM_STATS, "gnome");
useCombatStore.getState().initializeCharacter({ classId: "mage", raceId: "gnome", level: 1 });