2021-09-24 06:51:17 -04:00
|
|
|
import type {CardKey} from '../types.ts'
|
2021-09-23 23:34:33 -04:00
|
|
|
|
|
|
|
const cardPaths: Record<CardKey, string> = {
|
2021-09-24 06:51:17 -04:00
|
|
|
0: 'joker.png',
|
2021-09-24 22:51:26 -04:00
|
|
|
1: 'sp_14.png',
|
|
|
|
2: 'sp_2.png',
|
2021-09-24 06:51:17 -04:00
|
|
|
3: 'sp_3.png',
|
|
|
|
4: 'sp_4.png',
|
|
|
|
5: 'sp_5.png',
|
|
|
|
6: 'sp_6.png',
|
|
|
|
7: 'sp_7.png',
|
|
|
|
8: 'sp_8.png',
|
2021-09-23 23:34:33 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export function getCardSrc(cardKey: CardKey): string {
|
|
|
|
return `/assets/${cardPaths[cardKey]}`
|
|
|
|
}
|
2021-09-24 06:51:17 -04:00
|
|
|
|
|
|
|
export function getCardAlt(cardKey: CardKey): string {
|
|
|
|
return cardPaths[cardKey]
|
|
|
|
}
|