Update Healer Man server

This commit is contained in:
phenom committed 2026-09-20 18:08:43 -04:00
1 parent 3e30af4c98
commit 97ee0c13f9
25 files changed
+576 -179

No files matched your search

+7
View File
@@ -25,6 +25,12 @@ export const CONTENT_SCHEMA_VERSION = 1;
export const DEFAULT_MINIMUM_APP_VERSION = "0.1.0";
export const WOW_CAMPAIGN_DUNGEON_COUNT = 54;
export const BUNDLED_ANDROID_PACKS = Object.freeze([...contentPolicy.bootstrapPackIds]);
export const RANDOMIZED_BITE_SIZED_PACK_DEFINITION = Object.freeze({
id: "activity:randomized-bite-sized",
label: "Randomized Bite-Sized Base",
bundledOnAndroid: false,
dependencies: ["dungeon:stormwind-stockade"],
});
const RUNTIME_EXTENSIONS = new Set([
".avif", ".glb", ".js", ".json", ".ktx2", ".mp3", ".ogg", ".png",
@@ -435,6 +441,7 @@ export async function publishContent(options = {}) {
: [];
const packDefinitions = [
...campaignPackDefinitions,
...(campaignDefinitions ? [RANDOMIZED_BITE_SIZED_PACK_DEFINITION] : []),
...(options.packDefinitions ?? []),
];
if (campaignDefinitions) assertCampaignDungeonManifest(createContentManifest(files, { ...options, packDefinitions }), campaignDefinitions);
+10
View File
@@ -6,6 +6,7 @@ import test from "node:test";
import {
BUNDLED_ANDROID_PACKS,
PROJECT_ROOT,
RANDOMIZED_BITE_SIZED_PACK_DEFINITION,
assertCampaignDungeonManifest,
contentPackForPath,
createContentManifest,
@@ -14,6 +15,15 @@ import {
scanContentSources,
} from "./publish-content.mjs";
test("gives randomized bite-sized its base location dependency closure", () => {
assert.deepEqual(RANDOMIZED_BITE_SIZED_PACK_DEFINITION, {
id: "activity:randomized-bite-sized",
label: "Randomized Bite-Sized Base",
bundledOnAndroid: false,
dependencies: ["dungeon:stormwind-stockade"],
});
});
test("assigns stable player-facing packs from logical asset paths", () => {
assert.equal(contentPackForPath("assets/game/dungeons/wailing-caverns/visual.glb"), "dungeon:wailing-caverns");
assert.equal(contentPackForPath("assets/creatures/wailing-caverns/mutanus.glb"), "dungeon:wailing-caverns");