实时对局选你的对手
加入
0e1d7fa
8 行 · 594 Bytes 原始文件 永久链接 历史
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;