Skip to content

Commit 166001c

Browse files
committed
Fix sorting for trade site stats and regenerate it
1 parent ca1fdd6 commit 166001c

3 files changed

Lines changed: 499 additions & 82 deletions

File tree

src/Classes/TradeQueryGenerator.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,9 @@ function TradeQueryGeneratorClass:InitMods()
399399

400400
for catIdx, _ in ipairs(body.result) do
401401
table.sort(body.result[catIdx].entries, function(a, b)
402+
if a.text == b.text then
403+
return a.id < b.id
404+
end
402405
return a.text < b.text
403406
end)
404407
end

src/Data/QueryMods.lua

Lines changed: 51 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27696,18 +27696,10 @@ return {
2769627696
["max"] = 300,
2769727697
["min"] = 100,
2769827698
},
27699-
["2HWeapon"] = {
27700-
["max"] = 50,
27701-
["min"] = 30,
27702-
},
2770327699
["Amulet"] = {
2770427700
["max"] = 40,
2770527701
["min"] = 30,
2770627702
},
27707-
["Quarterstaff"] = {
27708-
["max"] = 50,
27709-
["min"] = 30,
27710-
},
2771127703
["Wand"] = {
2771227704
["max"] = 300,
2771327705
["min"] = 300,
@@ -27767,20 +27759,6 @@ return {
2776727759
["type"] = "implicit",
2776827760
},
2776927761
},
27770-
["3489782002"] = {
27771-
["Amulet"] = {
27772-
["max"] = 30,
27773-
["min"] = 20,
27774-
},
27775-
["specialCaseData"] = {
27776-
},
27777-
["tradeMod"] = {
27778-
["id"] = "implicit.stat_3489782002",
27779-
["text"] = "# to maximum Energy Shield",
27780-
["type"] = "implicit",
27781-
},
27782-
["usePositiveSign"] = true,
27783-
},
2778427762
["3544800472"] = {
2778527763
["Chest"] = {
2778627764
["max"] = 40,
@@ -28248,10 +28226,18 @@ return {
2824828226
},
2824928227
},
2825028228
["774059442"] = {
28229+
["2HWeapon"] = {
28230+
["max"] = 50,
28231+
["min"] = 30,
28232+
},
2825128233
["Chest"] = {
2825228234
["max"] = 1000,
2825328235
["min"] = 750,
2825428236
},
28237+
["Quarterstaff"] = {
28238+
["max"] = 50,
28239+
["min"] = 30,
28240+
},
2825528241
["specialCaseData"] = {
2825628242
},
2825728243
["tradeMod"] = {
@@ -29900,6 +29886,23 @@ return {
2990029886
["type"] = "augment",
2990129887
},
2990229888
},
29889+
["1936645603"] = {
29890+
["2HWeapon"] = {
29891+
["max"] = 30,
29892+
["min"] = 30,
29893+
},
29894+
["Staff"] = {
29895+
["max"] = 30,
29896+
["min"] = 30,
29897+
},
29898+
["specialCaseData"] = {
29899+
},
29900+
["tradeMod"] = {
29901+
["id"] = "rune.stat_1936645603",
29902+
["text"] = "Gain #% of Physical Damage as Extra Fire Damage",
29903+
["type"] = "augment",
29904+
},
29905+
},
2990329906
["1937310173"] = {
2990429907
["Chest"] = {
2990529908
["max"] = 50,
@@ -30996,6 +30999,19 @@ return {
3099630999
["type"] = "augment",
3099731000
},
3099831001
},
31002+
["258955603"] = {
31003+
["Helmet"] = {
31004+
["max"] = 20,
31005+
["min"] = 20,
31006+
},
31007+
["specialCaseData"] = {
31008+
},
31009+
["tradeMod"] = {
31010+
["id"] = "rune.stat_258955603",
31011+
["text"] = "Alternating every 5 seconds:Take #% more Damage from HitsTake #% more Damage over time",
31012+
["type"] = "augment",
31013+
},
31014+
},
3099931015
["2608793552"] = {
3100031016
["1HMace"] = {
3100131017
["max"] = 15,
@@ -32971,6 +32987,19 @@ return {
3297132987
["type"] = "augment",
3297232988
},
3297332989
},
32990+
["352044736"] = {
32991+
["Helmet"] = {
32992+
["max"] = 1,
32993+
["min"] = 1,
32994+
},
32995+
["specialCaseData"] = {
32996+
},
32997+
["tradeMod"] = {
32998+
["id"] = "rune.stat_352044736",
32999+
["text"] = "Every Rage also grants #% increased Stun Threshold",
33000+
["type"] = "augment",
33001+
},
33002+
},
3297433003
["3523867985"] = {
3297533004
["Boots"] = {
3297633005
["max"] = 20,

0 commit comments

Comments
 (0)