mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 03:20:52 +08:00
修改匹配规则当前可匹配全名
This commit is contained in:
parent
43243ee73c
commit
cd87101bc8
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user