From f6ef56164df47dcc3117fe82a71aa7606a7776ae Mon Sep 17 00:00:00 2001 From: kuangthree Date: Wed, 14 Feb 2024 17:46:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=A1=E7=89=8C=E5=8C=85=E5=B7=B2=E7=BB=8F?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=BA=86=E5=9B=BE=E7=89=87=E5=B0=B1=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E8=A2=AB=E8=A6=86=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/game/index.js | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/noname/game/index.js b/noname/game/index.js index 557879579..c43e63eb6 100644 --- a/noname/game/index.js +++ b/noname/game/index.js @@ -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);