Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/Classes/ImportTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,30 @@ function ImportTabClass:ImportItemsAndSkills(charData)
gemId = "Metadata/Items/Gems/SkillGemSummonBeast"
end

-- This could be done better with the character melee skills data at some point.
if typeLine:match("Mace Strike") then
local weapon1Sel = self.build.itemsTab.activeItemSet["Weapon 1"].selItemId or 0
local weapon2Sel = self.build.itemsTab.activeItemSet["Weapon 2"].selItemId or 0
if weapon2Sel == 0 then
if self.build.itemsTab.items[weapon1Sel].base.type == "One Hand Mace" then
gemId = "Metadata/Items/Gems/SkillGemPlayerDefault1HMace"
elseif self.build.itemsTab.items[weapon1Sel].base.type == "Two Hand Mace" then
gemId = "Metadata/Items/Gems/SkillGemPlayerDefault2HMace"
end
else
if self.build.itemsTab.items[weapon2Sel].base.type == "One Hand Mace" or self.build.itemsTab.items[weapon2Sel].base.type == "Two Hand Mace" then
gemId = "Metadata/Items/Gems/SkillGemPlayerDefaultMaceMace" -- Dual wielding maces
elseif self.build.itemsTab.items[weapon1Sel].base.type == "One Hand Mace" then
gemId = "Metadata/Items/Gems/SkillGemPlayerDefault1HMace"
elseif self.build.itemsTab.items[weapon1Sel].base.type == "Two Hand Mace" then
gemId = "Metadata/Items/Gems/SkillGemPlayerDefault2HMace"
end
end
end
if typeLine:match("Spear Stab") and (self.build.itemsTab.activeItemSet["Weapon 2"].selItemId or 0) ~= 0 then
gemId = "Metadata/Items/Gems/SkillGemPlayerDefaultSpearOffHand"
end

if gemId then
local gemInstance = { level = 20, quality = 0, enabled = true, enableGlobal1 = true, enableGlobal2 = true, count = 1, gemId = gemId }
gemInstance.support = skillData.support
Expand Down
32 changes: 16 additions & 16 deletions src/Classes/TradeQueryGenerator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ local tradeCategoryNames = {
["Quiver"] = { "Quiver" },
["Shield"] = { "Shield", "Shield: Armour", "Shield: Armour/Energy Shield", "Shield: Armour/Evasion", "Shield: Evasion" },
["Focus"] = { "Focus" },
["1HWeapon"] = { "One Handed Mace", "Wand", "Sceptre", "Flail", "Spear" },
["2HWeapon"] = { "Staff", "Staff: Warstaff", "Two Handed Mace", "Crossbow", "Bow", "Talisman" },
-- ["1HAxe"] = { "One Handed Axe" },
-- ["1HSword"] = { "One Handed Sword", "Thrusting One Handed Sword" },
["1HMace"] = { "One Handed Mace" },
["1HWeapon"] = { "One Hand Mace", "Wand", "Sceptre", "Flail", "Spear" },
["2HWeapon"] = { "Staff", "Staff: Warstaff", "Two Hand Mace", "Crossbow", "Bow", "Talisman" },
-- ["1HAxe"] = { "One Hand Axe" },
-- ["1HSword"] = { "One Hand Sword", "Thrusting One Hand Sword" },
["1HMace"] = { "One Hand Mace" },
["Sceptre"] = { "Sceptre" },
-- ["Dagger"] = { "Dagger" },
["Wand"] = { "Wand" },
Expand All @@ -36,9 +36,9 @@ local tradeCategoryNames = {
["Quarterstaff"] = { "Staff: Warstaff" },
["Bow"] = { "Bow" },
["Crossbow"] = { "Crossbow"},
-- ["2HAxe"] = { "Two Handed Axe" },
-- ["2HSword"] = { "Two Handed Sword" },
["2HMace"] = { "Two Handed Mace" },
-- ["2HAxe"] = { "Two Hand Axe" },
-- ["2HSword"] = { "Two Hand Sword" },
["2HMace"] = { "Two Hand Mace" },
-- ["FishingRod"] = { "Fishing Rod" },
["BaseJewel"] = { "Jewel" },
["RadiusJewel"] = { "Jewel: Radius" },
Expand Down Expand Up @@ -642,19 +642,19 @@ function TradeQueryGeneratorClass:StartQuery(slot, options)
elseif existingItem.type == "Staff" then
itemCategoryQueryStr = "weapon.staff"
itemCategory = "Staff"
elseif existingItem.type == "Two Handed Sword" then
elseif existingItem.type == "Two Hand Sword" then
itemCategoryQueryStr = "weapon.twosword"
itemCategory = "2HSword"
elseif existingItem.type == "Two Handed Axe" then
elseif existingItem.type == "Two Hand Axe" then
itemCategoryQueryStr = "weapon.twoaxe"
itemCategory = "2HAxe"
elseif existingItem.type == "Two Handed Mace" then
elseif existingItem.type == "Two Hand Mace" then
itemCategoryQueryStr = "weapon.twomace"
itemCategory = "2HMace"
elseif existingItem.type == "Fishing Rod" then
itemCategoryQueryStr = "weapon.rod"
itemCategory = "FishingRod"
elseif existingItem.type == "One Handed Sword" then
elseif existingItem.type == "One Hand Sword" then
itemCategoryQueryStr = "weapon.onesword"
itemCategory = "1HSword"
elseif existingItem.type == "Spear" then
Expand All @@ -663,10 +663,10 @@ function TradeQueryGeneratorClass:StartQuery(slot, options)
elseif existingItem.type == "Flail" then
itemCategoryQueryStr = "weapon.flail"
itemCategory = "weapon.flail"
elseif existingItem.type == "One Handed Axe" then
elseif existingItem.type == "One Hand Axe" then
itemCategoryQueryStr = "weapon.oneaxe"
itemCategory = "1HAxe"
elseif existingItem.type == "One Handed Mace" then
elseif existingItem.type == "One Hand Mace" then
itemCategoryQueryStr = "weapon.onemace"
itemCategory = "1HMace"
elseif existingItem.type == "Sceptre" then
Expand All @@ -681,10 +681,10 @@ function TradeQueryGeneratorClass:StartQuery(slot, options)
elseif existingItem.type == "Claw" then
itemCategoryQueryStr = "weapon.claw"
itemCategory = "Claw"
elseif existingItem.type:find("Two Handed") ~= nil then
elseif existingItem.type:find("Two Hand") ~= nil then
itemCategoryQueryStr = "weapon.twomelee"
itemCategory = "2HWeapon"
elseif existingItem.type:find("One Handed") ~= nil then
elseif existingItem.type:find("One Hand") ~= nil then
itemCategoryQueryStr = "weapon.one"
itemCategory = "1HWeapon"
else
Expand Down
52 changes: 26 additions & 26 deletions src/Data/Bases/axe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
local itemBases = ...

itemBases["Dull Hatchet"] = {
type = "One Handed Axe",
type = "One Hand Axe",
quality = 20,
socketLimit = 3,
tags = { axe = true, default = true, ezomyte_basetype = true, one_hand_weapon = true, onehand = true, weapon = true, },
Expand All @@ -12,7 +12,7 @@ itemBases["Dull Hatchet"] = {
req = { },
}
itemBases["Hook Axe"] = {
type = "One Handed Axe",
type = "One Hand Axe",
quality = 20,
socketLimit = 3,
tags = { axe = true, default = true, ezomyte_basetype = true, one_hand_weapon = true, onehand = true, weapon = true, },
Expand All @@ -22,7 +22,7 @@ itemBases["Hook Axe"] = {
req = { str = 9, },
}
itemBases["Bearded Axe"] = {
type = "One Handed Axe",
type = "One Hand Axe",
quality = 20,
socketLimit = 3,
tags = { axe = true, default = true, ezomyte_basetype = true, one_hand_weapon = true, onehand = true, weapon = true, },
Expand All @@ -31,7 +31,7 @@ itemBases["Bearded Axe"] = {
req = { level = 10, str = 17, dex = 9, },
}
itemBases["Extended Cleaver"] = {
type = "One Handed Axe",
type = "One Hand Axe",
quality = 20,
socketLimit = 3,
tags = { axe = true, default = true, maraketh_basetype = true, one_hand_weapon = true, onehand = true, weapon = true, },
Expand All @@ -41,7 +41,7 @@ itemBases["Extended Cleaver"] = {
req = { level = 16, str = 25, dex = 12, },
}
itemBases["Bandit Hatchet"] = {
type = "One Handed Axe",
type = "One Hand Axe",
quality = 20,
socketLimit = 3,
tags = { axe = true, default = true, maraketh_basetype = true, one_hand_weapon = true, onehand = true, weapon = true, },
Expand All @@ -50,7 +50,7 @@ itemBases["Bandit Hatchet"] = {
req = { level = 20, str = 30, dex = 14, },
}
itemBases["Crescent Axe"] = {
type = "One Handed Axe",
type = "One Hand Axe",
quality = 20,
socketLimit = 3,
tags = { axe = true, default = true, maraketh_basetype = true, one_hand_weapon = true, onehand = true, weapon = true, },
Expand All @@ -59,7 +59,7 @@ itemBases["Crescent Axe"] = {
req = { level = 26, str = 38, dex = 17, },
}
itemBases["Carving Hatchet"] = {
type = "One Handed Axe",
type = "One Hand Axe",
quality = 20,
socketLimit = 3,
tags = { axe = true, default = true, one_hand_weapon = true, onehand = true, vaal_basetype = true, weapon = true, },
Expand All @@ -68,7 +68,7 @@ itemBases["Carving Hatchet"] = {
req = { level = 33, str = 47, dex = 20, },
}
itemBases["Sacrificial Axe"] = {
type = "One Handed Axe",
type = "One Hand Axe",
quality = 20,
socketLimit = 3,
tags = { axe = true, default = true, one_hand_weapon = true, onehand = true, vaal_basetype = true, weapon = true, },
Expand All @@ -78,7 +78,7 @@ itemBases["Sacrificial Axe"] = {
req = { level = 37, str = 52, dex = 22, },
}
itemBases["Boarding Hatchet"] = {
type = "One Handed Axe",
type = "One Hand Axe",
quality = 20,
socketLimit = 3,
tags = { axe = true, default = true, one_hand_weapon = true, onehand = true, weapon = true, },
Expand All @@ -87,7 +87,7 @@ itemBases["Boarding Hatchet"] = {
req = { level = 45, str = 63, dex = 26, },
}
itemBases["Fury Cleaver"] = {
type = "One Handed Axe",
type = "One Hand Axe",
quality = 20,
socketLimit = 3,
tags = { axe = true, default = true, one_hand_weapon = true, onehand = true, weapon = true, },
Expand All @@ -97,7 +97,7 @@ itemBases["Fury Cleaver"] = {
req = { level = 48, str = 67, dex = 27, },
}
itemBases["Battle Axe"] = {
type = "One Handed Axe",
type = "One Hand Axe",
quality = 20,
socketLimit = 3,
tags = { axe = true, default = true, one_hand_weapon = true, onehand = true, weapon = true, },
Expand All @@ -106,7 +106,7 @@ itemBases["Battle Axe"] = {
req = { level = 52, str = 72, dex = 29, },
}
itemBases["Profane Cleaver"] = {
type = "One Handed Axe",
type = "One Hand Axe",
quality = 20,
socketLimit = 3,
tags = { axe = true, default = true, one_hand_weapon = true, onehand = true, weapon = true, },
Expand All @@ -115,7 +115,7 @@ itemBases["Profane Cleaver"] = {
req = { level = 54, str = 75, dex = 30, },
}
itemBases["Dread Hatchet"] = {
type = "One Handed Axe",
type = "One Hand Axe",
quality = 20,
socketLimit = 3,
tags = { axe = true, default = true, one_hand_weapon = true, onehand = true, weapon = true, },
Expand All @@ -125,7 +125,7 @@ itemBases["Dread Hatchet"] = {
}

itemBases["Splitting Greataxe"] = {
type = "Two Handed Axe",
type = "Two Hand Axe",
quality = 20,
socketLimit = 4,
tags = { axe = true, default = true, ezomyte_basetype = true, two_hand_weapon = true, twohand = true, weapon = true, },
Expand All @@ -134,7 +134,7 @@ itemBases["Splitting Greataxe"] = {
req = { },
}
itemBases["Light Halberd"] = {
type = "Two Handed Axe",
type = "Two Hand Axe",
quality = 20,
socketLimit = 4,
tags = { axe = true, default = true, ezomyte_basetype = true, two_hand_weapon = true, twohand = true, weapon = true, },
Expand All @@ -143,7 +143,7 @@ itemBases["Light Halberd"] = {
req = { str = 9, },
}
itemBases["Executioner Greataxe"] = {
type = "Two Handed Axe",
type = "Two Hand Axe",
quality = 20,
socketLimit = 4,
tags = { axe = true, default = true, ezomyte_basetype = true, two_hand_weapon = true, twohand = true, weapon = true, },
Expand All @@ -153,7 +153,7 @@ itemBases["Executioner Greataxe"] = {
req = { level = 10, str = 17, dex = 9, },
}
itemBases["Arched Greataxe"] = {
type = "Two Handed Axe",
type = "Two Hand Axe",
quality = 20,
socketLimit = 4,
tags = { axe = true, default = true, maraketh_basetype = true, two_hand_weapon = true, twohand = true, weapon = true, },
Expand All @@ -162,7 +162,7 @@ itemBases["Arched Greataxe"] = {
req = { level = 16, str = 25, dex = 12, },
}
itemBases["Elegant Glaive"] = {
type = "Two Handed Axe",
type = "Two Hand Axe",
quality = 20,
socketLimit = 4,
tags = { axe = true, default = true, maraketh_basetype = true, two_hand_weapon = true, twohand = true, weapon = true, },
Expand All @@ -171,7 +171,7 @@ itemBases["Elegant Glaive"] = {
req = { level = 20, str = 30, dex = 14, },
}
itemBases["Savage Greataxe"] = {
type = "Two Handed Axe",
type = "Two Hand Axe",
quality = 20,
socketLimit = 4,
tags = { axe = true, default = true, maraketh_basetype = true, two_hand_weapon = true, twohand = true, weapon = true, },
Expand All @@ -181,7 +181,7 @@ itemBases["Savage Greataxe"] = {
req = { level = 27, str = 39, dex = 17, },
}
itemBases["Rending Halberd"] = {
type = "Two Handed Axe",
type = "Two Hand Axe",
quality = 20,
socketLimit = 4,
tags = { axe = true, default = true, two_hand_weapon = true, twohand = true, vaal_basetype = true, weapon = true, },
Expand All @@ -190,7 +190,7 @@ itemBases["Rending Halberd"] = {
req = { level = 33, str = 47, dex = 20, },
}
itemBases["Jagged Greataxe"] = {
type = "Two Handed Axe",
type = "Two Hand Axe",
quality = 20,
socketLimit = 4,
tags = { axe = true, default = true, two_hand_weapon = true, twohand = true, vaal_basetype = true, weapon = true, },
Expand All @@ -200,7 +200,7 @@ itemBases["Jagged Greataxe"] = {
req = { level = 40, str = 56, dex = 23, },
}
itemBases["Reaver Glaive"] = {
type = "Two Handed Axe",
type = "Two Hand Axe",
quality = 20,
socketLimit = 4,
tags = { axe = true, default = true, two_hand_weapon = true, twohand = true, weapon = true, },
Expand All @@ -209,7 +209,7 @@ itemBases["Reaver Glaive"] = {
req = { level = 45, str = 63, dex = 26, },
}
itemBases["Ember Greataxe"] = {
type = "Two Handed Axe",
type = "Two Hand Axe",
quality = 20,
socketLimit = 4,
tags = { axe = true, default = true, two_hand_weapon = true, twohand = true, weapon = true, },
Expand All @@ -218,7 +218,7 @@ itemBases["Ember Greataxe"] = {
req = { level = 50, str = 70, dex = 28, },
}
itemBases["Ceremonial Halberd"] = {
type = "Two Handed Axe",
type = "Two Hand Axe",
quality = 20,
socketLimit = 4,
tags = { axe = true, default = true, two_hand_weapon = true, twohand = true, weapon = true, },
Expand All @@ -228,7 +228,7 @@ itemBases["Ceremonial Halberd"] = {
req = { level = 52, str = 72, dex = 29, },
}
itemBases["Monument Greataxe"] = {
type = "Two Handed Axe",
type = "Two Hand Axe",
quality = 20,
socketLimit = 4,
tags = { axe = true, default = true, two_hand_weapon = true, twohand = true, weapon = true, },
Expand All @@ -237,7 +237,7 @@ itemBases["Monument Greataxe"] = {
req = { level = 57, str = 79, dex = 32, },
}
itemBases["Vile Greataxe"] = {
type = "Two Handed Axe",
type = "Two Hand Axe",
quality = 20,
socketLimit = 4,
tags = { axe = true, default = true, two_hand_weapon = true, twohand = true, weapon = true, },
Expand Down
Loading