Merge pull request #948 from universe-st/PR-cardimagefix2

卡牌包已经设置了图片就不会被覆盖
This commit is contained in:
Spmario233 2024-02-14 18:52:47 +08:00 committed by GitHub
commit b945f66988
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 15 additions and 13 deletions

View File

@ -4468,20 +4468,22 @@ export class Game extends Uninstantable {
if (pack[i][j].audio == true) {
pack[i][j].audio = 'ext:' + extname;
}
if (pack[i][j].fullskin) {
if (_status.evaluatingExtension) {
pack[i][j].image = 'db:extension-' + extname + ':' + j + '.png';
if(!pack[i][j].image){
if (pack[i][j].fullskin) {
if (_status.evaluatingExtension) {
pack[i][j].image = 'db:extension-' + extname + ':' + j + '.png';
}
else {
pack[i][j].image = 'ext:' + extname + '/' + j + '.png';
}
}
else {
pack[i][j].image = 'ext:' + extname + '/' + j + '.png';
}
}
else if (pack[i][j].fullimage) {
if (_status.evaluatingExtension) {
pack[i][j].image = 'db:extension-' + extname + ':' + j + '.jpg';
}
else {
pack[i][j].image = 'ext:' + extname + '/' + j + '.jpg';
else if (pack[i][j].fullimage) {
if (_status.evaluatingExtension) {
pack[i][j].image = 'db:extension-' + extname + ':' + j + '.jpg';
}
else {
pack[i][j].image = 'ext:' + extname + '/' + j + '.jpg';
}
}
}
lib.cardPack[packname].push(j);