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
@@ -69,7 +69,7 @@ body {
.cards-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
gap: 20px;
}
@@ -109,6 +109,14 @@ body {
border-color: rgba(56, 189, 248, 0.55);
}
.card-pla {
border-top: 3px solid #eab308;
}
.card-pla:hover {
border-color: rgba(234, 179, 8, 0.55);
}
.card-top {
display: flex;
justify-content: space-between;
@@ -149,6 +157,12 @@ body {
color: #7dd3fc;
}
.badge-hisui {
background: rgba(234, 179, 8, 0.16);
border: 1px solid rgba(234, 179, 8, 0.45);
color: #fde047;
}
.platform-badge {
background: var(--bg-elevated);
border: 1px solid var(--border);
@@ -234,6 +248,10 @@ body {
background: linear-gradient(135deg, #0284c7, #0369a1);
}
.btn-pla {
background: linear-gradient(135deg, #d97706, #b45309);
}
.hub-footer {
margin-top: 28px;
padding: 14px 18px;
+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') {