diff --git a/public/resources/ts/stats-defer.ts b/public/resources/ts/stats-defer.ts index 93e3967246..2c304a865f 100644 --- a/public/resources/ts/stats-defer.ts +++ b/public/resources/ts/stats-defer.ts @@ -153,6 +153,11 @@ export function isEnchanted(item: Item): boolean { return true; } + // enchanted golden apple + if (item.id === 322 && item.Damage === 1) { + return true; + } + //potions with actual effects (not water bottles) if (item.id === 373 && item.Damage !== 0) { return true; diff --git a/views/stats.ejs b/views/stats.ejs index 1877118fb3..f87a73a3d1 100644 --- a/views/stats.ejs +++ b/views/stats.ejs @@ -93,6 +93,11 @@ function isEnchanted(item) { return true; } + // enchanted golden apple + if (item.id === 322 && item.Damage === 1) { + return true; + } + // potions potions with actual effects (not water bottles) if (item.id === 373 && item.Damage !== 0) { return true; @@ -119,7 +124,7 @@ function itemIcon(item, classes) { %> icon-<%= item.id %>_<%= item.Damage %> "> -<% } +<% } function jerriefy(rank) { if (extra.isFoolsDay) { @@ -380,7 +385,7 @@ const metaDescription = getMetaDescription() <% for (let error in calculated.errors) { %> <% console.log(calculated.errors[error]) %> <%- calculated.errors[error] %> - +
<% } %>
@@ -438,7 +443,7 @@ const metaDescription = getMetaDescription() <% for (let profile_id in calculated.profiles) { const _profile = calculated.profiles[profile_id]; %>
  • - + <%= _profile.cute_name %> <% if (_profile.game_mode == 'ironman') { %> @@ -468,40 +473,40 @@ const metaDescription = getMetaDescription() Plancke - +
    - + <% if ('social' in calculated && Object.keys(calculated.social).length > 0) { %> - <% if ('DISCORD' in calculated.social) { %> - + <% if ('DISCORD' in calculated.social) { %> + <% } %> - <% if ('TWITTER' in calculated.social) { %> - + <% if ('TWITTER' in calculated.social) { %> + <% } %> - <% if ('YOUTUBE' in calculated.social) { %> - + <% if ('YOUTUBE' in calculated.social) { %> + <% } %> - <% if ('INSTAGRAM' in calculated.social) { %> - + <% if ('INSTAGRAM' in calculated.social) { %> + <% } %> - <% if ('TWITCH' in calculated.social) { %> - + <% if ('TWITCH' in calculated.social) { %> + <% } %> - <% if ('HYPIXEL' in calculated.social) { %> - + <% if ('HYPIXEL' in calculated.social) { %> + <% } %> @@ -572,8 +577,8 @@ const metaDescription = getMetaDescription() <% } %> <% if (calculated.profile.game_mode == 'ironman') { %> - <% if (notAvailable.length > 0) { %> -
    + <% if (notAvailable.length > 0) { %> +
    <% } %> This is an Ironman profile. The player cannot use the auction house, bazaar, or trade with other players. @@ -581,18 +586,18 @@ const metaDescription = getMetaDescription() <% if (calculated.profile.game_mode == 'bingo') { %> - <% if (notAvailable.length > 0) { %> -
    + <% if (notAvailable.length > 0) { %> +
    <% } %> - + This is a Bingo profile. The player cannot spend gems, use the auction house, bazaar or trade with other players. <% } %> <% if (calculated.profile.game_mode == 'island') { %> - <% if (notAvailable.length > 0) { %> + <% if (notAvailable.length > 0) { %>
    <% } %> - + This is a Stranded profile. The player cannot leave their skyblock island or trade with other players. <% } %>
    @@ -630,14 +635,14 @@ const metaDescription = getMetaDescription() <%- include('./sections/stats/items/inventory.ejs', { getRarityUpgradeClass, rarityOrder, isEnchanted }); %> <% } %> - + <%- include('./sections/stats/skills.ejs', { getRarityUpgradeClass, rarityOrder, isEnchanted }); %> <% if (calculated.dungeons !== undefined) { %> <%- include('./sections/stats/dungeons.ejs', { skillItems }); %> - <% } %> + <% } %> <% if (calculated.slayer !== undefined) { %> @@ -645,7 +650,7 @@ const metaDescription = getMetaDescription() <% } %> - <% if (calculated.minions.unlockedTiers > 0) { %> + <% if (calculated.minions.unlockedTiers > 0) { %> <%- include('./sections/stats/minions.ejs', { skillItems }); %> <% } %> @@ -659,7 +664,7 @@ const metaDescription = getMetaDescription() <% } %> - <% if (calculated.crimson_isle !== undefined) { %> + <% if (calculated.crimson_isle !== undefined) { %> <%- include('./sections/stats/crimson_isle.ejs', {}); %> <% } %> @@ -672,8 +677,8 @@ const metaDescription = getMetaDescription() <% if (calculated.profile.game_mode === "bingo" && calculated.bingo !== undefined) { %> <%- include('./sections/stats/bingo.ejs', {}); %> <% } %> - - + + <% if (calculated.misc !== undefined) { %> <%- include('./sections/stats/misc.ejs', { rarityOrder }); %> <% } %>