Skip to content

Commit 551ba83

Browse files
committed
Fix rune weight generation and regenerate QueryMods.lua
1 parent f92e797 commit 551ba83

2 files changed

Lines changed: 192 additions & 2 deletions

File tree

src/Classes/TradeQueryGenerator.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ function TradeQueryGeneratorClass:InitMods()
489489
local matchedCategory = nil
490490
for category, categoryOptions in pairs(tradeCategoryNames) do
491491
for i, opt in pairs(categoryOptions) do
492-
if opt:lower():match(slotType) then
492+
if opt:lower():match("^"..slotType) then
493493
matchedCategory = category
494494
break
495495
end

src/Data/QueryMods.lua

Lines changed: 191 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7651,6 +7651,55 @@ return {
76517651
["type"] = "enchant",
76527652
},
76537653
},
7654+
["1509134228"] = {
7655+
["1HMace"] = {
7656+
["max"] = 25,
7657+
["min"] = 15,
7658+
},
7659+
["1HWeapon"] = {
7660+
["max"] = 25,
7661+
["min"] = 15,
7662+
},
7663+
["2HMace"] = {
7664+
["max"] = 25,
7665+
["min"] = 15,
7666+
},
7667+
["2HWeapon"] = {
7668+
["max"] = 25,
7669+
["min"] = 15,
7670+
},
7671+
["Bow"] = {
7672+
["max"] = 25,
7673+
["min"] = 15,
7674+
},
7675+
["Crossbow"] = {
7676+
["max"] = 25,
7677+
["min"] = 15,
7678+
},
7679+
["Flail"] = {
7680+
["max"] = 25,
7681+
["min"] = 15,
7682+
},
7683+
["Quarterstaff"] = {
7684+
["max"] = 25,
7685+
["min"] = 15,
7686+
},
7687+
["Spear"] = {
7688+
["max"] = 25,
7689+
["min"] = 15,
7690+
},
7691+
["Talisman"] = {
7692+
["max"] = 25,
7693+
["min"] = 15,
7694+
},
7695+
["specialCaseData"] = {
7696+
},
7697+
["tradeMod"] = {
7698+
["id"] = "enchant.stat_1509134228",
7699+
["text"] = "#% increased Physical Damage",
7700+
["type"] = "enchant",
7701+
},
7702+
},
76547703
["1515657623"] = {
76557704
["Belt"] = {
76567705
["max"] = 1,
@@ -7866,6 +7915,23 @@ return {
78667915
["type"] = "enchant",
78677916
},
78687917
},
7918+
["1967051901"] = {
7919+
["2HWeapon"] = {
7920+
["max"] = 1,
7921+
["min"] = 1,
7922+
},
7923+
["Crossbow"] = {
7924+
["max"] = 1,
7925+
["min"] = 1,
7926+
},
7927+
["specialCaseData"] = {
7928+
},
7929+
["tradeMod"] = {
7930+
["id"] = "enchant.stat_1967051901",
7931+
["text"] = "Loads an additional bolt",
7932+
["type"] = "enchant",
7933+
},
7934+
},
78697935
["1978899297"] = {
78707936
["Amulet"] = {
78717937
["max"] = 1,
@@ -10817,6 +10883,55 @@ return {
1081710883
["type"] = "explicit",
1081810884
},
1081910885
},
10886+
["1509134228"] = {
10887+
["1HMace"] = {
10888+
["max"] = 179,
10889+
["min"] = 15,
10890+
},
10891+
["1HWeapon"] = {
10892+
["max"] = 179,
10893+
["min"] = 15,
10894+
},
10895+
["2HMace"] = {
10896+
["max"] = 179,
10897+
["min"] = 15,
10898+
},
10899+
["2HWeapon"] = {
10900+
["max"] = 179,
10901+
["min"] = 15,
10902+
},
10903+
["Bow"] = {
10904+
["max"] = 179,
10905+
["min"] = 15,
10906+
},
10907+
["Crossbow"] = {
10908+
["max"] = 179,
10909+
["min"] = 15,
10910+
},
10911+
["Flail"] = {
10912+
["max"] = 179,
10913+
["min"] = 15,
10914+
},
10915+
["Quarterstaff"] = {
10916+
["max"] = 179,
10917+
["min"] = 15,
10918+
},
10919+
["Spear"] = {
10920+
["max"] = 179,
10921+
["min"] = 15,
10922+
},
10923+
["Talisman"] = {
10924+
["max"] = 179,
10925+
["min"] = 15,
10926+
},
10927+
["specialCaseData"] = {
10928+
},
10929+
["tradeMod"] = {
10930+
["id"] = "explicit.stat_1509134228",
10931+
["text"] = "#% increased Physical Damage",
10932+
["type"] = "explicit",
10933+
},
10934+
},
1082010935
["1514844108"] = {
1082110936
["specialCaseData"] = {
1082210937
},
@@ -11758,6 +11873,23 @@ return {
1175811873
["type"] = "explicit",
1175911874
},
1176011875
},
11876+
["1967051901"] = {
11877+
["2HWeapon"] = {
11878+
["max"] = 1,
11879+
["min"] = 1,
11880+
},
11881+
["Crossbow"] = {
11882+
["max"] = 1,
11883+
["min"] = 1,
11884+
},
11885+
["specialCaseData"] = {
11886+
},
11887+
["tradeMod"] = {
11888+
["id"] = "explicit.stat_1967051901",
11889+
["text"] = "Loads an additional bolt",
11890+
["type"] = "explicit",
11891+
},
11892+
},
1176111893
["1978899297"] = {
1176211894
["Shield"] = {
1176311895
["max"] = 2,
@@ -15892,6 +16024,16 @@ return {
1589216024
["type"] = "explicit",
1589316025
},
1589416026
},
16027+
["388617051"] = {
16028+
["invertOnNegative"] = true,
16029+
["specialCaseData"] = {
16030+
},
16031+
["tradeMod"] = {
16032+
["id"] = "explicit.stat_388617051",
16033+
["text"] = "#% increased Charges per use",
16034+
["type"] = "explicit",
16035+
},
16036+
},
1589516037
["3891355829"] = {
1589616038
["AnyJewel"] = {
1589716039
["max"] = 1,
@@ -18633,6 +18775,23 @@ return {
1863318775
["type"] = "implicit",
1863418776
},
1863518777
},
18778+
["1967051901"] = {
18779+
["2HWeapon"] = {
18780+
["max"] = 1,
18781+
["min"] = 1,
18782+
},
18783+
["Crossbow"] = {
18784+
["max"] = 1,
18785+
["min"] = 1,
18786+
},
18787+
["specialCaseData"] = {
18788+
},
18789+
["tradeMod"] = {
18790+
["id"] = "implicit.stat_1967051901",
18791+
["text"] = "Loads an additional bolt",
18792+
["type"] = "implicit",
18793+
},
18794+
},
1863618795
["1978899297"] = {
1863718796
["Chest"] = {
1863818797
["max"] = 1,
@@ -18677,6 +18836,19 @@ return {
1867718836
["type"] = "implicit",
1867818837
},
1867918838
},
18839+
["2055966527"] = {
18840+
["Quiver"] = {
18841+
["max"] = 30,
18842+
["min"] = 20,
18843+
},
18844+
["specialCaseData"] = {
18845+
},
18846+
["tradeMod"] = {
18847+
["id"] = "implicit.stat_2055966527",
18848+
["text"] = "Attacks have #% chance to cause Bleeding",
18849+
["type"] = "implicit",
18850+
},
18851+
},
1868018852
["2194114101"] = {
1868118853
["Quiver"] = {
1868218854
["max"] = 30,
@@ -19142,6 +19314,20 @@ return {
1914219314
["type"] = "implicit",
1914319315
},
1914419316
},
19317+
["3489782002"] = {
19318+
["Amulet"] = {
19319+
["max"] = 30,
19320+
["min"] = 20,
19321+
},
19322+
["specialCaseData"] = {
19323+
},
19324+
["tradeMod"] = {
19325+
["id"] = "implicit.stat_3489782002",
19326+
["text"] = "# to maximum Energy Shield",
19327+
["type"] = "implicit",
19328+
},
19329+
["usePositiveSign"] = true,
19330+
},
1914519331
["3544800472"] = {
1914619332
["Chest"] = {
1914719333
["max"] = 40,
@@ -20997,7 +21183,7 @@ return {
2099721183
},
2099821184
},
2099921185
["2481353198"] = {
21000-
["Chest"] = {
21186+
["Shield"] = {
2100121187
["max"] = 10,
2100221188
["min"] = 10,
2100321189
},
@@ -22486,6 +22672,10 @@ return {
2248622672
["max"] = 20,
2248722673
["min"] = 20,
2248822674
},
22675+
["Shield"] = {
22676+
["max"] = 20,
22677+
["min"] = 20,
22678+
},
2248922679
["specialCaseData"] = {
2249022680
},
2249122681
["tradeMod"] = {

0 commit comments

Comments
 (0)