Merge branch 'dev' of https://github.com/wynnbuilder/wynnbuilder.github.io into dev
This commit is contained in:
commit
df268125d0
1 changed files with 7 additions and 6 deletions
13
display.js
13
display.js
|
@ -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');
|
||||||
|
|
||||||
|
@ -685,7 +686,7 @@ function displayExpandedItem(item, parent_id){
|
||||||
|
|
||||||
if(item.get("tier") && item.get("tier") === "Crafted") {
|
if(item.get("tier") && item.get("tier") === "Crafted") {
|
||||||
let dura_elem = document.createElement("p");
|
let dura_elem = document.createElement("p");
|
||||||
dura_elem.classList.add("left");
|
dura_elem.classList.add("itemp");
|
||||||
let dura = [];
|
let dura = [];
|
||||||
let suffix = "";
|
let suffix = "";
|
||||||
if(nonConsumables.includes(item.get("type"))) {
|
if(nonConsumables.includes(item.get("type"))) {
|
||||||
|
@ -697,15 +698,15 @@ function displayExpandedItem(item, parent_id){
|
||||||
suffix = " sec."
|
suffix = " sec."
|
||||||
}
|
}
|
||||||
dura_elem.textContent += dura[0]+"-"+dura[1] + suffix;
|
dura_elem.textContent += dura[0]+"-"+dura[1] + suffix;
|
||||||
parent_div.append(dura_elem);
|
active_elem.append(dura_elem);
|
||||||
}
|
}
|
||||||
//Show item tier
|
//Show item tier
|
||||||
if (item.get("tier") && item.get("tier") !== " ") {
|
if (item.get("tier") && item.get("tier") !== " ") {
|
||||||
let item_desc_elem = document.createElement("p");
|
let item_desc_elem = document.createElement("p");
|
||||||
item_desc_elem.classList.add('left');
|
item_desc_elem.classList.add('itemp');
|
||||||
item_desc_elem.classList.add(item.get("tier"));
|
item_desc_elem.classList.add(item.get("tier"));
|
||||||
item_desc_elem.textContent = item.get("tier")+" "+item.get("type");
|
item_desc_elem.textContent = item.get("tier")+" "+item.get("type");
|
||||||
parent_div.append(item_desc_elem);
|
active_elem.append(item_desc_elem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function displayCraftStats(craft, parent_id) {
|
function displayCraftStats(craft, parent_id) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue