Perbaiki banner cut-in ultimate karakter berbasis data yang menampilkan 'undefined' (selector #ultimate-cutin)
This commit is contained in:
parent
13b47140f9
commit
b2e8d434f6
2
game.js
2
game.js
|
|
@ -1063,7 +1063,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function cfCutin(key, owner) {
|
function cfCutin(key, owner) {
|
||||||
const el = document.querySelector('.cutin'); if (!el) return; const isMode = key.endsWith('~mode'), f = CF[key.replace('~mode', '')];
|
const el = document.querySelector('#ultimate-cutin'); if (!el) return; const isMode = key.endsWith('~mode'), f = CF[key.replace('~mode', '')];
|
||||||
if (!f) { el.style.background = ''; el.style.borderColor = ''; el.querySelector('.cutin-kicker').style.color = ''; const e0 = el.querySelector('.cutin-caption em'); if (e0) e0.style.color = ''; return; }
|
if (!f) { el.style.background = ''; el.style.borderColor = ''; el.querySelector('.cutin-kicker').style.color = ''; const e0 = el.querySelector('.cutin-caption em'); if (e0) e0.style.color = ''; return; }
|
||||||
const c = (isMode ? f.mode?.cutin : f.cutin) || {}, nm = isMode ? f.mode.names[3] : f.names[3];
|
const c = (isMode ? f.mode?.cutin : f.cutin) || {}, nm = isMode ? f.mode.names[3] : f.names[3];
|
||||||
el.style.background = `linear-gradient(100deg,${c.a || '#222'},${c.b || '#555'} 58%,${c.a || '#222'})`; el.style.borderColor = (isMode && f.mode.aura) || f.color || '#fff';
|
el.style.background = `linear-gradient(100deg,${c.a || '#222'},${c.b || '#555'} 58%,${c.a || '#222'})`; el.style.borderColor = (isMode && f.mode.aura) || f.color || '#fff';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue