移除一个绕圈子判断
This commit is contained in:
parent
6e9bd21f26
commit
f4f7ce66fc
|
@ -142,17 +142,14 @@ Reflect.defineProperty(HTMLDivElement.prototype, "setBackground", {
|
|||
gzbool = false;
|
||||
const mode = get.mode();
|
||||
if (type == "character") {
|
||||
nameinfo = get.character(name);
|
||||
if (lib.characterPack[`mode_${mode}`] && lib.characterPack[`mode_${mode}`][name]) {
|
||||
if (mode == "guozhan") {
|
||||
nameinfo = lib.character[name];
|
||||
if (name.startsWith("gz_shibing")) name = name.slice(3, 11);
|
||||
else {
|
||||
if (
|
||||
lib.config.mode_config.guozhan.guozhanSkin &&
|
||||
lib.character[name] &&
|
||||
lib.character[name].hasSkinInGuozhan
|
||||
)
|
||||
if (lib.config.mode_config.guozhan.guozhanSkin && nameinfo && nameinfo.hasSkinInGuozhan){
|
||||
gzbool = true;
|
||||
}
|
||||
name = name.slice(3);
|
||||
}
|
||||
} else modeimage = mode;
|
||||
|
@ -161,8 +158,6 @@ Reflect.defineProperty(HTMLDivElement.prototype, "setBackground", {
|
|||
name = name.split("::");
|
||||
modeimage = name[0];
|
||||
name = name[1];
|
||||
} else {
|
||||
nameinfo = get.character(name);
|
||||
}
|
||||
}
|
||||
let imgPrefixUrl;
|
||||
|
|
Loading…
Reference in New Issue