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

+19 -1
View File
@@ -4,7 +4,7 @@ function readSaveSummary(storage, prefix, defaultGameId, gameLabels) {
const rawMeta = storage.getItem(`${prefix}app-meta`);
const meta = rawMeta ? JSON.parse(rawMeta) : null;
const gameId = meta?.activeGameId || defaultGameId;
const gameMeta = meta?.gameProfiles?.[gameId];
const gameMeta = meta?.gameProfiles?.[gameId] || meta?.profilesByGame?.[gameId];
const profileId = gameMeta?.activeProfileId || 'default';
const profileName =
gameMeta?.profiles?.find((p) => p.id === profileId)?.name || 'Default';
@@ -14,12 +14,16 @@ function readSaveSummary(storage, prefix, defaultGameId, gameLabels) {
if (!rawSave) return null;
const parsed = JSON.parse(rawSave);
const caughtCount = Array.isArray(parsed?.caught) ? parsed.caught.length : 0;
const rl10Count = Array.isArray(parsed?.rl10) ? parsed.rl10.length : null;
const progressMode = parsed?.progressMode || 'caught';
const gameLabel = gameLabels[gameId] || gameId;
return {
gameLabel,
profileName,
profileCount,
caughtCount,
rl10Count,
progressMode,
};
} catch {
return null;
@@ -53,6 +57,20 @@ export function renderSavePills(doc = globalThis.document, storage = globalThis.
lumiEl.textContent = 'Ready for a new run';
}
}
const plaEl = doc?.getElementById('pla-save-badge');
if (plaEl) {
const info = readSaveSummary(storage, 'pla-poc-tracker:v1:', 'legends-arceus', {
'legends-arceus': 'Legends: Arceus',
});
if (info) {
const rl10Text = Number.isInteger(info.rl10Count) ? ` · ${info.rl10Count} RL10` : '';
plaEl.textContent = `Saved (${info.profileName}): ${info.caughtCount} caught${rl10Text}`;
plaEl.classList.add('has-save');
} else {
plaEl.textContent = 'Ready for a new run';
}
}
}
if (typeof globalThis.document !== 'undefined') {