Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Commit

Permalink
Fixed problem with getting unusual effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicklason committed Jan 20, 2020
1 parent 758020e commit 162ce10
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/utils/item/getItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ module.exports = function () {
item.target = getTarget(this);
}

if (this.market_hash_name === 'Unusual A Head Full of Hot Air') {
console.log(item);
console.log(this);
}

// Adds missing properties
return fixItem(SKU.fromString(SKU.fromObject(item)));
};
Expand Down Expand Up @@ -128,7 +133,7 @@ function getEffect (item) {
return null;
}

const effects = item.descriptions.filter((description) => description.value[0] === '\u2605');
const effects = item.descriptions.filter((description) => description.value.startsWith('★ Unusual Effect: '));

if (effects.length !== 1) {
return null;
Expand Down

0 comments on commit 162ce10

Please sign in to comment.