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:
1 parent
708bf6b58c
commit
6b693cc3c6
2672 files changed
+35017
-35
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { escapeHtml } from './formatters.js';
|
||||
import { LUMI_IMG_CDN, renderItemIconsHtml } from './sprites.js';
|
||||
import { renderItemIconsHtml } from './sprites.js';
|
||||
|
||||
export function renderGuideView(game, state) {
|
||||
const { guide } = game;
|
||||
@@ -96,12 +96,13 @@ export function renderGuideView(game, state) {
|
||||
</section>
|
||||
|
||||
<section class="guide-section">
|
||||
<h2 class="guide-heading">Sprites & Item Icons (External Assets / Offline Optional)</h2>
|
||||
<h2 class="guide-heading">Sprites & Item Icons (Bundled Locally)</h2>
|
||||
<article class="guide-card">
|
||||
<p class="guide-card-body">
|
||||
Regular & Shiny Luminescent sprites and item icons load automatically from
|
||||
Regular & Shiny Luminescent sprites and item icons are bundled locally under
|
||||
<code>luminescent-platinum/assets/sprites/</code> courtesy of
|
||||
<a class="ext-link" href="https://github.com/TeamLumi/luminescent-team" target="_blank" rel="noopener noreferrer">TeamLumi/luminescent-team</a>
|
||||
(<code>${escapeHtml(LUMI_IMG_CDN)}</code>). For 100% offline sprites, copy <code>static/img/{pkm,shinypkm,items}</code> into <code>luminescent-platinum/assets/sprites/</code>.
|
||||
(and <a class="ext-link" href="https://github.com/PokeAPI/sprites" target="_blank" rel="noopener noreferrer">PokeAPI/sprites</a> for the Poké Ball fallback), with automatic CDN fallback if local files are absent.
|
||||
</p>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
@@ -47,7 +47,7 @@ const ITEM_PATTERNS = [
|
||||
{ regex: /ice rock/i, file: 'Ice%20Rock.webp', label: 'Ice Rock' },
|
||||
{ regex: /incense/i, file: 'Incense.webp', label: 'Incense' },
|
||||
{ regex: /honey/i, file: 'items/Item_Honey.webp', label: 'Honey' },
|
||||
{ regex: /pok[eé] ball/i, file: 'items/Item_Poke_Ball.webp', label: 'Poké Ball' },
|
||||
{ regex: /pok[eé] ball/i, file: 'items/poke-ball.png', label: 'Poké Ball' },
|
||||
];
|
||||
|
||||
export function getPokemonSpriteUrls(species, { shiny = false } = {}) {
|
||||
@@ -67,7 +67,11 @@ export function getPokemonSpriteUrls(species, { shiny = false } = {}) {
|
||||
}
|
||||
|
||||
export function getItemSpriteUrl(file) {
|
||||
return `${getSpriteBaseUrl()}/${file}`;
|
||||
const base = getSpriteBaseUrl();
|
||||
if (file === 'items/poke-ball.png' && base === LUMI_IMG_CDN) {
|
||||
return `${POKEAPI_FALLBACK_CDN}/${file}`;
|
||||
}
|
||||
return `${base}/${file}`;
|
||||
}
|
||||
|
||||
export function extractItemsFromText(text) {
|
||||
|
||||
Reference in new issue
Block a user