Skip to content

Commit

Permalink
code change
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Feb 22, 2024
1 parent 9be682e commit 0494afd
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 @@ -45,12 +45,12 @@ class SkyblockInventoryItem {
* Item enchantments
* @type {object}
*/
this.enchantments = data.tag.ExtraAttributes.enchantments ? data.tag.ExtraAttributes.enchantments : null;
this.enchantments = data.tag.ExtraAttributes.enchantments ?? null;
/**
* Armor reforge
* @type {string}
*/
this.reforge = data.tag.ExtraAttributes.modifier ? data.tag.ExtraAttributes.modifier : null;
this.reforge = data.tag.ExtraAttributes.modifier ?? null;
/**
* Equipment gemstones (if any)
* @type {SkyblockItemGemstone}
Expand Down Expand Up @@ -88,7 +88,7 @@ class SkyblockInventoryItem {
* UUID of the item
* @type {string}
*/
this.uuid = data.tag.ExtraAttributes.uuid ? data.tag.ExtraAttributes.uuid : '';
this.uuid = data.tag.ExtraAttributes.uuid ?? '';
/**
* Is the item soulbound
* @type {boolean}
Expand All @@ -98,17 +98,17 @@ class SkyblockInventoryItem {
* Amount of art of war books applied to the item
* @type {number}
*/
this.artOfWar = data.tag.ExtraAttributes.art_of_war_count ? data.tag.ExtraAttributes.art_of_war_count : 0;
this.artOfWar = data.tag.ExtraAttributes.art_of_war_count ?? 0;
/**
* Rune
* @type {object}
*/
this.rune = data.tag.ExtraAttributes.runes ? data.tag.ExtraAttributes.runes : null;
this.rune = data.tag.ExtraAttributes.runes ?? null;
/**
* The amount of applied potato books
* @type {number}
*/
this.hotPotatoBooks = data.tag.ExtraAttributes.hot_potato_count ? data.tag.ExtraAttributes.hot_potato_count : 0;
this.hotPotatoBooks = data.tag.ExtraAttributes.hot_potato_count ?? 0;
/**
* Is the item recombobulated
* @type {boolean}
Expand Down

0 comments on commit 0494afd

Please sign in to comment.