Add Legends: Arceus tracker and bundle offline sprites on dev

Add standalone Pokémon Legends: Arceus POC tracker (Hisui 242 Pokédex, Research Tasks & RL10 mode, Satchel MP & Save Mythicals toggles, Noble/story battles, saves/movesets), bundle local sprite packs across all three trackers into Git/Docker/Nginx with attribution credits, and update Hub landing page & unified server/tests.
This commit is contained in:
FaroeGames committed 2026-11-17 17:53:59 -07:00
1 parent 708bf6b58c
commit 6b693cc3c6
2672 files changed
+35017 -35

No files matched your search

+10 -1
View File
@@ -19,7 +19,7 @@ const MIME_TYPES = {
'.ico': 'image/x-icon',
};
const FOLDER_REDIRECTS = new Set(['/oras', '/luminescent-platinum']);
const FOLDER_REDIRECTS = new Set(['/oras', '/luminescent-platinum', '/legends-arceus']);
export function createPortalServer(rootDir = __dirname) {
const resolvedRoot = path.resolve(rootDir);
@@ -67,6 +67,15 @@ export function createPortalServer(rootDir = __dirname) {
return;
}
if (relPath === '/legends-arceus/api/assets-status') {
const dirStat = await fs
.stat(path.join(resolvedRoot, 'legends-arceus', 'assets', 'sprites', 'pokemon'))
.catch(() => null);
res.writeHead(200, { 'Content-Type': 'application/json; charset=utf-8', 'Cache-Control': 'no-cache' });
res.end(JSON.stringify({ hasLocalSprites: Boolean(dirStat?.isDirectory()) }));
return;
}
if (relPath.endsWith('/')) {
relPath = `${relPath}index.html`;
}