new deck style

This commit is contained in:
Gavin McDonald
2025-05-09 14:32:38 -04:00
parent a15b80c23e
commit 4448bc9c57
6 changed files with 5 additions and 3 deletions

View File

@@ -4,5 +4,5 @@ import { Settings, TarokkaGameCard } from '@/types';
export default function getURL(card: TarokkaGameCard, settings: Settings) {
const styleConfig = cardStyles[settings.cardStyle];
const fileBase = settings.cardStyle === 'standard' ? standardMap[card.id] : card.id;
return `${styleConfig.baseURL}${fileBase}${styleConfig.extension}`;
return `${styleConfig.baseURL}${fileBase}${card.extension || styleConfig.extension}`;
}