Release Healer Man 0.1.6

This commit is contained in:
phenom committed 2026-08-20 14:05:50 -04:00
1 parent 55cfd43d66
commit b12fb84859
96 files changed
+10874 -609

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
import { beforeEach, describe, expect, it } from "vitest";
import { onlineGroupAiPartySize, useOnlineGroupStore } from "./onlineGroupStore";
describe("online group AI fill sizing", () => {
beforeEach(() => useOnlineGroupStore.getState().reset());
it("reserves one simulated slot for every grouped human other than the local player", () => {
useOnlineGroupStore.setState({
snapshot: {
invitations: [],
group: {
id: "group-test",
leaderAccountId: "one",
activity: null,
activityRevision: 0,
createdAt: 1,
updatedAt: 1,
members: [
{ accountId: "one", username: "One", character: null, role: null, joinedAt: 1 },
{ accountId: "two", username: "Two", character: null, role: null, joinedAt: 2 },
{ accountId: "three", username: "Three", character: null, role: null, joinedAt: 3 },
],
},
},
});
expect(onlineGroupAiPartySize(5)).toBe(3);
expect(onlineGroupAiPartySize(3)).toBe(1);
});
it("keeps ordinary solo activity sizes unchanged", () => {
expect(onlineGroupAiPartySize(5)).toBe(5);
expect(onlineGroupAiPartySize(1)).toBe(1);
});
});