Play liveChoose your opponent
Join
1b3bc26
8 lines · 594 Bytes Raw Permalink History
1// In place of the upstream's image lookups (its resource packs): the art pack's portraits and card art. The card back is
2// null: the upstream draws it in an <object>, which the frame's CSP blocks; its SVG fallback is restyled instead.
3import { portrait, cardArt } from './art';
4
5export const getCharacterImage = (name: string): string | null => portrait(name);
6export const getCardImage = (card: { name: string }): string | null => cardArt(card.name);
7export const getEquipCardImage = (name: string): string | null => cardArt(name);
8export const getCardBackImage = (): string | null => null;