Skip to content
Draft
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
6 changes: 5 additions & 1 deletion src/Classes/ItemsTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ local socketDropList = {
{ label = colorCodes.SCION.."W", color = "W" }
}

local baseSlots = { "Weapon 1", "Weapon 2", "Helmet", "Body Armour", "Gloves", "Boots", "Amulet", "Ring 1", "Ring 2", "Ring 3", "Belt", "Flask 1", "Flask 2", "Flask 3", "Flask 4", "Flask 5", "Graft 1", "Graft 2" }
local baseSlots = { "Weapon 1", "Weapon 2", "Helmet", "Body Armour", "Gloves", "Boots", "Amulet", "Ring 1", "Ring 2", "Ring 3", "Belt", "Graft 1", "Graft 2", "Flask 1", "Flask 2", "Flask 3", "Flask 4", "Flask 5" }

local influenceInfo = itemLib.influenceInfo.all

Expand Down Expand Up @@ -142,6 +142,10 @@ local ItemsTabClass = newClass("ItemsTab", "UndoHandler", "ControlHost", "Contro
end
swapSlot.abyssalSocketList[i] = abyssal
end
elseif slotName == "Graft 1" or slotName == "Graft 2" then
slot.shown = function()
return self.build.spec.treeVersion:find("3_27")
end
elseif slotName == "Ring 3" then
slot.shown = function()
return self.build.calcsTab.mainEnv.modDB:Flag(nil, "AdditionalRingSlot")
Expand Down
5 changes: 5 additions & 0 deletions src/Modules/CalcSetup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,11 @@ function calcs.initEnv(build, mode, override, specEnv)
local jewelLimits = {}
for _, slot in pairs(build.itemsTab.orderedSlots) do
local slotName = slot.slotName
if slotName == "Graft 1" or slotName == "Graft 2" then
if not build.spec.treeVersion:find("3_27") then
goto continue
end
end
local item
if slotName == override.repSlotName then
item = override.repItem
Expand Down