From cd87101bc8576ab78e33338334d5c3d25ced5932 Mon Sep 17 00:00:00 2001 From: leiyilu <1509167646@qq.com> Date: Tue, 21 Jun 2022 10:13:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8C=B9=E9=85=8D=E8=A7=84?= =?UTF-8?q?=E5=88=99=E5=BD=93=E5=89=8D=E5=8F=AF=E5=8C=B9=E9=85=8D=E5=85=A8?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/xiaoyao_image.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/xiaoyao_image.js b/apps/xiaoyao_image.js index e8f9161..29a1353 100644 --- a/apps/xiaoyao_image.js +++ b/apps/xiaoyao_image.js @@ -69,7 +69,7 @@ export async function init(isUpdate = false) { weapon.set(val, i); } } - weaponFile = fs.readdirSync("./resources/weaponInfo_xiaoyao"); + weaponFile = fs.readdirSync("./plugins/xiaoyao-cvs-plugin/resources/xiaoyao-plus/wuqi_tujian"); for (let val of weaponFile) { let name = val.replace(".png", ""); weapon.set(name, name); @@ -114,7 +114,7 @@ export async function RelicsInfo(e) { const info_img = function(e, list, name) { for (let i in list) { for (let val of list[i]) { - if (val == name) { + if (val == name||i==name) { return i; } }