Skip to content

Commit

Permalink
sort?
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Feb 22, 2024
1 parent ea7136e commit 9be682e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/structures/SkyBlock/SkyblockInventoryItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}
Expand All @@ -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}
Expand Down

0 comments on commit 9be682e

Please sign in to comment.