From 9be682ee634ba613ae02f7e5c26fbb700d301f67 Mon Sep 17 00:00:00 2001 From: Kath Date: Thu, 22 Feb 2024 21:21:00 +0800 Subject: [PATCH] sort? --- src/structures/SkyBlock/SkyblockInventoryItem.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/structures/SkyBlock/SkyblockInventoryItem.js b/src/structures/SkyBlock/SkyblockInventoryItem.js index e2da02ad..20c62a4c 100644 --- a/src/structures/SkyBlock/SkyblockInventoryItem.js +++ b/src/structures/SkyBlock/SkyblockInventoryItem.js @@ -77,7 +77,7 @@ class SkyblockInventoryItem { * The amount of dungeon stars the item has (each star equates to a 10% stat boost while in dungeons) * @type {number} */ - this.dungeonStars = data.tag.ExtraAttributes.upgrade_level ? data.tag.ExtraAttributes.upgrade_level : 0; + this.dungeonStars = data.tag.ExtraAttributes.upgrade_level ?? 0; /** * Dungeon gear score of the item (or null if not present) * @author linearaccelerator @@ -89,6 +89,11 @@ class SkyblockInventoryItem { * @type {string} */ this.uuid = data.tag.ExtraAttributes.uuid ? data.tag.ExtraAttributes.uuid : ''; + /** + * Is the item soulbound + * @type {boolean} + */ + this.soulbound = data.tag.ExtraAttributes.donated_museum === 1; /** * Amount of art of war books applied to the item * @type {number} @@ -104,11 +109,6 @@ class SkyblockInventoryItem { * @type {number} */ this.hotPotatoBooks = data.tag.ExtraAttributes.hot_potato_count ? data.tag.ExtraAttributes.hot_potato_count : 0; - /** - * Is the item soulbound - * @type {boolean} - */ - this.soulbound = data.tag.ExtraAttributes.donated_museum === 1; /** * Is the item recombobulated * @type {boolean}