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",
"gXp", "gSpd",
"#ldiv",
"!elemental",
"majorIds",
"slots",
"!elemental",
"set",
"quest",
"restrict"];
"restrict"
];
// Clear the parent div.
setHTML(parent_id, "");
@ -561,6 +561,11 @@ function displayExpandedItem(item, parent_id){
powderSuffix.textContent = "]";
p_elem.appendChild(powderSuffix);
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 {
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