New modding system

This commit is contained in:
2026-09-26 17:33:07 -03:00
parent 86d5c39eab
commit 243ff52063
25 changed files with 1089 additions and 512 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ Deno.test("welcome lists what to download, and nothing happens until ready", asy
const [welcome] = take(2);
assertEquals(welcome.type, "welcome");
assertEquals(welcome.mods.map((m: { id: string }) => m.id), ["bworld"]);
assert(welcome.atlas.png && welcome.atlas.sha256);
assert(welcome.mods.every((m: { sha256: string; file: string }) => m.sha256 && m.file));
assert(!("players" in welcome) && !("changes" in welcome), "welcome shouldn't have world state");
// not in the world yet: others don't hear about bob, and bob can't act