Merge pull request #948 from universe-st/PR-cardimagefix2
卡牌包已经设置了图片就不会被覆盖
This commit is contained in:
commit
b945f66988
|
@ -4468,20 +4468,22 @@ export class Game extends Uninstantable {
|
||||||
if (pack[i][j].audio == true) {
|
if (pack[i][j].audio == true) {
|
||||||
pack[i][j].audio = 'ext:' + extname;
|
pack[i][j].audio = 'ext:' + extname;
|
||||||
}
|
}
|
||||||
if (pack[i][j].fullskin) {
|
if(!pack[i][j].image){
|
||||||
if (_status.evaluatingExtension) {
|
if (pack[i][j].fullskin) {
|
||||||
pack[i][j].image = 'db:extension-' + extname + ':' + j + '.png';
|
if (_status.evaluatingExtension) {
|
||||||
|
pack[i][j].image = 'db:extension-' + extname + ':' + j + '.png';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
pack[i][j].image = 'ext:' + extname + '/' + j + '.png';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else if (pack[i][j].fullimage) {
|
||||||
pack[i][j].image = 'ext:' + extname + '/' + j + '.png';
|
if (_status.evaluatingExtension) {
|
||||||
}
|
pack[i][j].image = 'db:extension-' + extname + ':' + j + '.jpg';
|
||||||
}
|
}
|
||||||
else if (pack[i][j].fullimage) {
|
else {
|
||||||
if (_status.evaluatingExtension) {
|
pack[i][j].image = 'ext:' + extname + '/' + j + '.jpg';
|
||||||
pack[i][j].image = 'db:extension-' + extname + ':' + j + '.jpg';
|
}
|
||||||
}
|
|
||||||
else {
|
|
||||||
pack[i][j].image = 'ext:' + extname + '/' + j + '.jpg';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lib.cardPack[packname].push(j);
|
lib.cardPack[packname].push(j);
|
||||||
|
|
Loading…
Reference in New Issue