Reversed id ordering
This commit is contained in:
parent
cc67ba5f98
commit
efac3f183e
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
4
query.js
4
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);
|
||||
|
|
Loading…
Reference in a new issue