From efac3f183e8f0d790baafa5cd77ba2a9986c7fbe Mon Sep 17 00:00:00 2001 From: b Date: Fri, 5 Feb 2021 13:28:42 -0600 Subject: [PATCH] Reversed id ordering --- credits.txt | 1 + query.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/credits.txt b/credits.txt index f32f2a1..a5c6663 100644 --- a/credits.txt +++ b/credits.txt @@ -7,5 +7,6 @@ The game, of course Additional Contributors: - Phanta (WynnAtlas custom expression parser / item search) - QuantumNep (Layout code/layout ideas) + - nbcss (Crafter figuring-out-the-gamifying) - dr_carlos (Hiding UI elements properly, fade animations, proper error handling) - Atlas Inc discord (feedback, ideas, etc) diff --git a/query.js b/query.js index 6bb322a..133ee22 100644 --- a/query.js +++ b/query.js @@ -48,9 +48,9 @@ class IdQuery { } console.log("QUERY: ID, NONROLL"); } - else if (id in reversedIDs) { + else if (reversedIDs.includes(id)) { this.compare = function(a, b) { - return b.get("maxRolls").get(id) - a.get("maxRolls").get(id); + return a.get("maxRolls").get(id) - b.get("maxRolls").get(id); }; this.filter = function(a) { return a.get("maxRolls").get(this.id);