From ee0d55cec9a2214e7532869204306cef2cce49f7 Mon Sep 17 00:00:00 2001 From: phantamanta44 Date: Mon, 19 Jul 2021 14:51:13 -0500 Subject: [PATCH] Fix incorrect type for numeric rarity in advanced atlas --- query_2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query_2.js b/query_2.js index 1c3b675..8c656cf 100644 --- a/query_2.js +++ b/query_2.js @@ -76,7 +76,7 @@ const itemQueryProps = (function() { prop(['cat', 'category'], 'string', (i, ie) => i.category); const tierIndices = { Normal: 0, Unique: 1, Set: 2, Rare: 3, Legendary: 4, Fabled: 5, Mythic: 6 }; prop(['rarityname', 'raritystr', 'tiername', 'tierstr'], 'string', (i, ie) => i.tier); - prop(['rarity', 'tier'], 'string', (i, ie) => tierIndices[i.tier]); + prop(['rarity', 'tier'], 'number', (i, ie) => tierIndices[i.tier]); prop(['level', 'lvl', 'combatlevel', 'combatlvl'], 'number', (i, ie) => i.lvl); prop(['strmin', 'strreq'], 'number', (i, ie) => i.strReq);