Reversed id ordering

This commit is contained in:
b 2021-02-05 13:28:42 -06:00
parent cc67ba5f98
commit efac3f183e
2 changed files with 3 additions and 2 deletions

View file

@ -7,5 +7,6 @@ The game, of course
Additional Contributors: Additional Contributors:
- Phanta (WynnAtlas custom expression parser / item search) - Phanta (WynnAtlas custom expression parser / item search)
- QuantumNep (Layout code/layout ideas) - QuantumNep (Layout code/layout ideas)
- nbcss (Crafter figuring-out-the-gamifying)
- dr_carlos (Hiding UI elements properly, fade animations, proper error handling) - dr_carlos (Hiding UI elements properly, fade animations, proper error handling)
- Atlas Inc discord (feedback, ideas, etc) - Atlas Inc discord (feedback, ideas, etc)

View file

@ -48,9 +48,9 @@ class IdQuery {
} }
console.log("QUERY: ID, NONROLL"); console.log("QUERY: ID, NONROLL");
} }
else if (id in reversedIDs) { else if (reversedIDs.includes(id)) {
this.compare = function(a, b) { 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) { this.filter = function(a) {
return a.get("maxRolls").get(this.id); return a.get("maxRolls").get(this.id);