This commit is contained in:
2026-01-27 01:03:52 +03:00
parent a597cb9de7
commit c59b51c69e
10 changed files with 35 additions and 0 deletions

View File

@ -853,6 +853,31 @@
lightsaber: 'saberjedi', force: 'saberjedi', blaster: 'tie', hyperspace: 'xwing', fear: 'sith', hope: 'galrep',
};
function getCardArt(meta) {
// Проверяем наличие кастомных иконок в папке extraicons
const extraIconMap = {
'ezra': 'ezra-bridger.png',
'ezra_bridger': 'ezra-bridger.png',
'father': 'the-father.png',
'the_father': 'the-father.png',
'ahsoka': 'ashoka-tano.png',
'ashoka_tano': 'ashoka-tano.png',
'cal': 'CalCestis.png',
'cal_kestis': 'CalCestis.png',
'nihilus': 'darthnihilus.png',
'darth_nihilus': 'darthnihilus.png',
'plagueis': 'dartplagues.png',
'darth_plagueis': 'dartplagues.png',
'plo': 'plokoon.png',
'plo_koon': 'plokoon.png',
'revan': 'revan.png'
};
const extraIcon = extraIconMap[meta.art];
if (extraIcon) {
return '<img src="extraicons/' + extraIcon + '" class="card-art-image" alt="' + (meta.name || '') + '" />';
}
// Используем стандартные SWG иконки
var swg = swgMap[meta.art];
if (swg) return '<i class="swg swg-lg swg-' + swg + ' card-art-swg" aria-hidden="true"></i>';
return '<span class="card-art-fallback">✦</span>';