- ${shop.itemDisplayName} |
- ${shop.price} |
- ${shop.type} | `;
+ ${getEOLabel(shop, "item")} |
+ ${getEOMetaValue(shop, "price", "currencyPrefix")}${getEOLabel(shop, "price")} |
+ ${getEOValue(shop, "type")} | `;
// If there are enchantments on the item, add them in.
// Otherwise insert an empty cell.
if (shop.hasOwnProperty('enchants')) {
- htmlSegment += ``;
+ htmlSegment += ` | `;
$.each(shop.enchants, function(index, enchant) {
if (index > 0) {
htmlSegment += ` `;
}
htmlSegment += `
- ${enchant.name} ${enchant.level}`;
+ ${getEOLabel(enchant, "name")} ${getEOValue(enchant, "level")}`;
});
htmlSegment += ` | `;
} else {
@@ -97,9 +144,9 @@ async function renderShops() {
// Add the rest of the columns for the row.
htmlSegment += `
- ${shop.ownerName} |
- ${shop.x} / ${shop.y} / ${shop.z} |
- ${shop.world} | `;
+ ${getEOLabel(shop, "owner")} |
+ ${getEOValue(shop, "x")} / ${getEOValue(shop, "y")} / ${getEOValue(shop, "z")} |
+ ${getEOValue(shop, "world")} | `;
// Lastly, append the