crafted skp not displaying bug fix

This commit is contained in:
ferricles 2022-05-16 13:02:09 -07:00
parent 6474e1bb2b
commit 0fa7c2e4bd

View file

@ -310,7 +310,7 @@ function displaysq2ExpandedItem(item, parent_id){
if (id === "lore") { if (id === "lore") {
p_elem.style = "font-style: italic"; p_elem.style = "font-style: italic";
} else if (skp_order.includes(id)) { //id = str, dex, int, def, or agi } else if (skp_order.includes(id)) { //id = str, dex, int, def, or agi
if ( item.get("tier") !== "Crafted" && parent_div.nodeName === "DIV") { if ( item.get("tier") !== "Crafted") {
row = document.createElement("div"); row = document.createElement("div");
row.classList.add("col"); row.classList.add("col");
@ -326,7 +326,7 @@ function displaysq2ExpandedItem(item, parent_id){
row.appendChild(title); row.appendChild(title);
row.appendChild(boost); row.appendChild(boost);
parent_div.appendChild(row); parent_div.appendChild(row);
} else if ( item.get("tier") === "Crafted" && parent_div.nodeName === "TABLE") { } else if ( item.get("tier") === "Crafted") {
let row = displaysq2RolledID(item, id, elemental_format); let row = displaysq2RolledID(item, id, elemental_format);
parent_div.appendChild(row); parent_div.appendChild(row);
} }