Display major IDs

This commit is contained in:
b 2021-01-30 06:09:32 -06:00
parent 7d25aa28e5
commit 0a136a0c03

View file

@ -497,12 +497,12 @@ function displayExpandedItem(item, parent_id){
"eSteal", "eSteal",
"gXp", "gSpd", "gXp", "gSpd",
"#ldiv", "#ldiv",
"!elemental", "majorIds",
"slots", "slots",
"!elemental",
"set", "set",
"quest", "quest",
"restrict"]; "restrict"
];
// Clear the parent div. // Clear the parent div.
setHTML(parent_id, ""); setHTML(parent_id, "");
@ -561,6 +561,11 @@ function displayExpandedItem(item, parent_id){
powderSuffix.textContent = "]"; powderSuffix.textContent = "]";
p_elem.appendChild(powderSuffix); p_elem.appendChild(powderSuffix);
active_elem.appendChild(p_elem); active_elem.appendChild(p_elem);
} else if (id === "majorIds") {
let p_elem = document.createElement("p");
p_elem.classList.add("itemp");
p_elem.textContent = "Major IDs: " + item.get(id).toString();
active_elem.appendChild(p_elem);
} else { } else {
let p_elem; let p_elem;
if ( !(item.get("tier") === "Crafted" && item.get("category") === "armor" && id === "hp") && (!skp_order.includes(id)) || (skp_order.includes(id) && item.get("tier") !== "Crafted" && active_elem.nodeName === "DIV") ) { //skp warp if ( !(item.get("tier") === "Crafted" && item.get("category") === "armor" && id === "hp") && (!skp_order.includes(id)) || (skp_order.includes(id) && item.get("tier") !== "Crafted" && active_elem.nodeName === "DIV") ) { //skp warp