Merge pull request #170 from lieren2023/lieren2023-patch-9
选项-显示新增显示扩展武将图片,设为默认开启
This commit is contained in:
commit
dd4b01049d
10
game/game.js
10
game/game.js
|
@ -3625,6 +3625,12 @@
|
|||
name:'显示分享扩展',
|
||||
init:true,
|
||||
unfrequent:true,
|
||||
},
|
||||
show_extensionimage:{
|
||||
name:'显示扩展武将图片',
|
||||
intro:'关闭扩展武将包仍加载扩展武将图片',
|
||||
init:true,
|
||||
unfrequent:true,
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -7099,6 +7105,10 @@
|
|||
else if(lib.character[name]){
|
||||
nameinfo=lib.character[name];
|
||||
}
|
||||
else if(lib.config.show_extensionimage){
|
||||
var pack=Object.keys(lib.characterPack).find(pack => Object.keys(lib.characterPack[pack]).contains(name));
|
||||
if(pack) nameinfo=lib.characterPack[pack][name];
|
||||
}
|
||||
else if(name.indexOf('::')!=-1){
|
||||
name=name.split('::');
|
||||
modeimage=name[0];
|
||||
|
|
Loading…
Reference in New Issue