Skip to content

Commit

Permalink
Updated skyblock item filter (slothpixel#658)
Browse files Browse the repository at this point in the history
* Added starred items and items with the Thick modifier to the processSkyblock filter

* Changed star and thick filter to startsWith and endsWith

* Whoops, typo

* moved filter to removeFormatting, added filter for wood singularity, fixed upgraded rarity filter

* moved previous change

* moved one of the replacements to the filter as it is an upgraded tier symbol
  • Loading branch information
MattTheCuber authored and ChristianDobbie committed Jan 10, 2022
1 parent 287fdd0 commit 9d72754
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion processors/processSkyBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ async function checkItems(members = {}) {
if (![null, undefined].includes(item.attributes.modifier)
|| id.startsWith('MAP:')
|| item.name === '§fnull'
|| item.name.includes('⚚')
|| !/[!-~]/.test(item.name) || !/[!-~]/.test(item.type)
|| !item.name.match(/[a-z]/i)
|| item.attributes.wood_singularity_count
|| item.attributes.rarity_upgrades) return [];
return [{
id,
name: removeFormatting(item.name).replace(/⚚|✦|✪/g, '').trim(),
name: removeFormatting(item.name).replace(/✦|✪/g, '').trim(),
tier: item.rarity,
category: item.type || 'misc',
damage: item.damage || null,
Expand Down

0 comments on commit 9d72754

Please sign in to comment.