2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-23 11:40:51 +08:00

修改匹配规则当前可匹配全名

This commit is contained in:
leiyilu 2022-06-21 10:13:29 +08:00
parent 43243ee73c
commit cd87101bc8

View File

@ -69,7 +69,7 @@ export async function init(isUpdate = false) {
weapon.set(val, i); 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) { for (let val of weaponFile) {
let name = val.replace(".png", ""); let name = val.replace(".png", "");
weapon.set(name, name); weapon.set(name, name);
@ -114,7 +114,7 @@ export async function RelicsInfo(e) {
const info_img = function(e, list, name) { const info_img = function(e, list, name) {
for (let i in list) { for (let i in list) {
for (let val of list[i]) { for (let val of list[i]) {
if (val == name) { if (val == name||i==name) {
return i; return i;
} }
} }