Implement private Tupile intelligence and Homeworld occupation evidence

This commit is contained in:
Quintine committed 2026-09-10 09:08:52 +10:00
1 parent 1db11a0187
commit 61689514a0
43 files changed
+3420 -188

No files matched your search

+2 -4
View File
@@ -109,10 +109,8 @@ async function persisted() {
}
const auths = await Promise.all(credentials.map((value) => store.rooms.authenticate(code, value)));
const initial = await store.rooms.readRoom(code);
let encoded = JSON.stringify(grummanCollectionFixture());
for (const [index, id] of ['m', 'a', 'g'].entries())
encoded = encoded.replaceAll(JSON.stringify(id), JSON.stringify(auths[index].playerId));
const g: Game = JSON.parse(encoded);
// Setup signs the final authenticated identities, including occupation history.
const g = grummanCollectionFixture({ seatIds: auths.map((auth) => auth.playerId) as [string, string, string] });
g.code = code;
g.host = auths[0].playerId;
g.version = initial.version;