@@ -22,7 +22,7 @@ local tradeCategoryNames = {
22
22
[" Quiver" ] = { " Quiver" },
23
23
[" Shield" ] = { " Shield" },
24
24
[" Focus" ] = { " Focus" },
25
- [" 1HWeapon" ] = { " One Handed Mace" , " Wand" , " Sceptre" },
25
+ [" 1HWeapon" ] = { " One Handed Mace" , " Wand" , " Sceptre" , " Flail " , " Spear " },
26
26
[" 2HWeapon" ] = { " Staff" , " Staff: Warstaff" , " Two Handed Mace" , " Crossbow" , " Bow" },
27
27
-- ["1HAxe"] = { "One Handed Axe" },
28
28
-- ["1HSword"] = { "One Handed Sword", "Thrusting One Handed Sword" },
@@ -48,8 +48,8 @@ local tradeCategoryNames = {
48
48
-- ["RadiusJewel"] = { "Jewel: Radius" },
49
49
-- not in the game yet.
50
50
-- ["TrapTool"] = { "TrapTool"}, Unsure if correct
51
- -- ["Flail"] = { "Flail" },
52
- -- ["Spear"] = { "Spear" }
51
+ [" Flail" ] = { " Flail" },
52
+ [" Spear" ] = { " Spear" }
53
53
}
54
54
55
55
-- Build lists of tags present on a given item category
@@ -414,7 +414,7 @@ function TradeQueryGeneratorClass:InitMods()
414
414
-- rune mods
415
415
for name , modLines in pairs (data .itemMods .Runes ) do
416
416
self :ProcessMod (modLines .armour , tradeQueryStatsParsed , regularItemMask , { [" Shield" ] = true , [" Chest" ] = true , [" Helmet" ] = true , [" Gloves" ] = true , [" Boots" ] = true , [" Focus" ] = true })
417
- self :ProcessMod (modLines .weapon , tradeQueryStatsParsed , regularItemMask , { [" 1HWeapon" ] = true , [" 2HWeapon" ] = true , [" 1HMace" ] = true , [" Claw" ] = true , [" Quarterstaff" ] = true , [" Bow" ] = true , [" 2HMace" ] = true , [" Crossbow" ] = true })
417
+ self :ProcessMod (modLines .weapon , tradeQueryStatsParsed , regularItemMask , { [" 1HWeapon" ] = true , [" 2HWeapon" ] = true , [" 1HMace" ] = true , [" Claw" ] = true , [" Quarterstaff" ] = true , [" Bow" ] = true , [" 2HMace" ] = true , [" Crossbow" ] = true , [ " Spear " ] = true , [ " Flail " ] = true })
418
418
end
419
419
420
420
local queryModsFile = io.open (queryModFilePath , ' w' )
@@ -559,7 +559,7 @@ function TradeQueryGeneratorClass:StartQuery(slot, options)
559
559
elseif existingItem .type == " Focus" then
560
560
itemCategoryQueryStr = " armour.focus"
561
561
itemCategory = " Focus"
562
- elseif existingItem .type == " Buckler" then -- not in game
562
+ elseif existingItem .type == " Buckler" then
563
563
itemCategoryQueryStr = " armour.buckler"
564
564
itemCategory = " Buckler"
565
565
elseif existingItem .type == " Quiver" then
@@ -592,10 +592,10 @@ function TradeQueryGeneratorClass:StartQuery(slot, options)
592
592
elseif existingItem .type == " One Handed Sword" then
593
593
itemCategoryQueryStr = " weapon.onesword"
594
594
itemCategory = " 1HSword"
595
- elseif existingItem .type == " Spear" then -- not in game
595
+ elseif existingItem .type == " Spear" then
596
596
itemCategoryQueryStr = " weapon.spear"
597
- itemCategory = " 1HSword "
598
- elseif existingItem .type == " Flail" then -- not in game
597
+ itemCategory = " Spear "
598
+ elseif existingItem .type == " Flail" then
599
599
itemCategoryQueryStr = " weapon.flail"
600
600
itemCategory = " weapon.flail"
601
601
elseif existingItem .type == " One Handed Axe" then
0 commit comments