function itemEmbed(item, items) {
    let costs = [];
    let desc = [];
    let att = [];

    if (item.mc) costs.push(`<:manacost:273535201337016320> ${item.mc}`);
    if (item.cd) costs.push(`<:cooldown:273535146320199680> ${item.cd}`);
    if (item.cost) costs.push(`<:gold:281572294030131200> ${item.cost}`);

    if (item.desc) desc.push(item.desc);
    if (item.notes) desc.push(item.notes);

    if (item.created) {
        let comp = item.components.map((component) => items.find((item) => item.name == component).dname);
        desc.push(`Built from: ${comp.join(", ")}`)
    }

    let attributes = item.attrib && item.attrib.map((attrib) => {
        if (attrib.footer) {
            return `**${attrib.header}${attrib.value}** ${attrib.footer}`;
        } else {
            return `**${attrib.header}** ${Array.isArray(attrib.value) ? attrib.value.join(" / ") : attrib.value}`;
        }
    });

    return {
        "author": {
            "name": item.dname,
            "url": `http://dota2.gamepedia.com/${item.dname.replace(/ /g, "_")}`,
            "icon_url": `http://cdn.dota2.com${item.img}`
        },
        "fields": [{
            "name": costs.join("   "),
            "value": attributes ? attributes.join("\n") : "Nothing special.",
            "inline": true
        }],
        "description": desc.join("\n\n"),
        "footer": {
            "text": item.lore
        }
    };
}

module.exports = itemEmbed;

@@ -401,241 +401,124 @@
     
-if (item.created) %7B%0A        let comp = item.components.map((component)
+let attributes
  =
-%3E
  item
-s.find((item) =%3E item.name == component).dname);%0A        desc.push(%60Built from: $%7Bcomp.join(%22, %22)%7D%60)%0A    %7D%0A%0A    let attributes = item.attrib && item.attrib
+.attrib && item.attrib%0A        .filter((attrib) =%3E !attrib.header.includes(%22TOOLTIP%22))%0A        
 .map
@@ -536,24 +536,28 @@
 %3E %7B%0A        
+   
+ 
 if (attrib.f
@@ -561,24 +561,28 @@
 b.footer) %7B%0A
+    
             
@@ -609,16 +609,73 @@
 eader%7D$%7B
+Array.isArray(attrib.value) ? attrib.value.join(%22 / %22) : 
 attrib.v
@@ -709,16 +709,20 @@
         
+    
 %7D else %7B
@@ -722,16 +722,20 @@
  else %7B%0A
+    
         
@@ -854,19 +854,559 @@
     
-%7D%0A
+    %7D%0A   
     
+ 
 %7D);%0A%0A
+    let fields = %5B%7B%0A        name: costs.length ? costs.join(%22   %22) : %22%5Cu200b%22,%0A        value: attributes ? attributes.join(%22%5Cn%22) : %22Nothing special.%22,%0A        inline: true%0A    %7D%5D;%0A%0A    if (item.created) %7B%0A        let comp = item.components.map((component) =%3E items.find((item) =%3E item.name == component));%0A        fields.push(%7B%0A            name: %22Components%22,%0A            value: comp.map((component) =%3E %60%3C:gold:281572294030131200%3E $%7Bcomponent.cost%7D - **$%7Bcomponent.dname%7D**%60).join(%22%5Cn%22),%0A            inline: true%0A        %7D);%0A    %7D%0A%0A
     
@@ -1629,175 +1629,14 @@
     
-%22
 fields
-%22: %5B%7B%0A            %22name%22: costs.join(%22   %22),%0A            %22value%22: attributes ? attributes.join(%22%5Cn%22) : %22Nothing special.%22,%0A            %22inline%22: true%0A        %7D%5D
 ,%0A  

tweak item display a bit