Add files via upload

This commit is contained in:
lieren2023 2023-07-23 09:40:53 +08:00 committed by GitHub
parent fa12b11328
commit 8dfdcc2bda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -3625,6 +3625,12 @@
name:'显示分享扩展',
init:true,
unfrequent:true,
},
show_extensionimage:{
name:'显示扩展武将图片',
intro:'关闭扩展武将包仍加载扩展武将图片',
init:true,
unfrequent:true,
}
}
},
@ -7099,6 +7105,12 @@
else if(lib.character[name]){
nameinfo=lib.character[name];
}
else if(lib.config.show_extensionimage){
if(Object.keys(lib.characterPack).some(pack => Object.keys(lib.characterPack[pack]).contains(name))){
var pack=Object.keys(lib.characterPack).find(pack => Object.keys(lib.characterPack[pack]).contains(name));
nameinfo=lib.characterPack[pack][name];
}
}
else if(name.indexOf('::')!=-1){
name=name.split('::');
modeimage=name[0];