fix for double skillpoint display on non-crafteds

This commit is contained in:
ferricles 2021-01-19 16:28:05 -08:00
parent 2febdcbf83
commit 74c78a8c39

View file

@ -501,9 +501,9 @@ function displayExpandedItem(item, parent_id){
active_elem.appendChild(p_elem); active_elem.appendChild(p_elem);
} else { } else {
let p_elem; let p_elem;
if (!(skp_order.includes(id) && item.get("tier") === "Crafted")) { if( (!skp_order.includes(id)) || (skp_order.includes(id) && item.get("tier") !== "Crafted" && active_elem.nodeName === "DIV") ) { //skp
p_elem = displayFixedID(active_elem, id, item.get(id), elemental_format); p_elem = displayFixedID(active_elem, id, item.get(id), elemental_format);
} }
if (id === "displayName") { if (id === "displayName") {
p_elem.classList.add("title"); p_elem.classList.add("title");
if (item.get("tier") !== " ") { if (item.get("tier") !== " ") {
@ -548,6 +548,7 @@ function displayExpandedItem(item, parent_id){
row.appendChild(boost); row.appendChild(boost);
p_elem.appendChild(row); p_elem.appendChild(row);
} else if ( item.get("tier") === "Crafted" && active_elem.nodeName === "TABLE") { } else if ( item.get("tier") === "Crafted" && active_elem.nodeName === "TABLE") {
console.log("bruh momment");
let row = document.createElement('tr'); let row = document.createElement('tr');
let min_elem = document.createElement('td'); let min_elem = document.createElement('td');