Fix item searcher to filter for not equal to zero
This commit is contained in:
parent
b86cfc3267
commit
4a4ab93496
1 changed files with 9 additions and 8 deletions
17
js/items.js
17
js/items.js
|
@ -71,14 +71,14 @@ const translate_mappings = {
|
||||||
"Custom Skin": "skin",
|
"Custom Skin": "skin",
|
||||||
//"Item Category": "category",
|
//"Item Category": "category",
|
||||||
|
|
||||||
"1st Spell Cost %": "spPct1",
|
"1st Spell Cost %": "-spPct1",
|
||||||
"1st Spell Cost Raw": "spRaw1",
|
"1st Spell Cost Raw": "-spRaw1",
|
||||||
"2nd Spell Cost %": "spPct2",
|
"2nd Spell Cost %": "-spPct2",
|
||||||
"2nd Spell Cost Raw": "spRaw2",
|
"2nd Spell Cost Raw": "-spRaw2",
|
||||||
"3rd Spell Cost %": "spPct3",
|
"3rd Spell Cost %": "-spPct3",
|
||||||
"3rd Spell Cost Raw": "spRaw3",
|
"3rd Spell Cost Raw": "-spRaw3",
|
||||||
"4th Spell Cost %": "spPct4",
|
"4th Spell Cost %": "-spPct4",
|
||||||
"4th Spell Cost Raw": "spRaw4",
|
"4th Spell Cost Raw": "-spRaw4",
|
||||||
|
|
||||||
"Rainbow Spell Damage": "rainbowRaw",
|
"Rainbow Spell Damage": "rainbowRaw",
|
||||||
"Sprint": "sprint",
|
"Sprint": "sprint",
|
||||||
|
@ -168,6 +168,7 @@ function doItemSearch() {
|
||||||
let filter_dat = translate_mappings[raw_dat];
|
let filter_dat = translate_mappings[raw_dat];
|
||||||
if (filter_dat !== undefined) {
|
if (filter_dat !== undefined) {
|
||||||
queries.push("s:"+filter_dat);
|
queries.push("s:"+filter_dat);
|
||||||
|
queries.push("f:"+filter_dat+"!=0");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
filter_dat = special_mappings[raw_dat];
|
filter_dat = special_mappings[raw_dat];
|
||||||
|
|
Loading…
Add table
Reference in a new issue