Skip to content
Open
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
2 changes: 1 addition & 1 deletion src/Classes/ItemsTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3715,7 +3715,7 @@ function ItemsTabClass:AddItemTooltip(tooltip, item, slot, dbMode)
if item.rarity == "MAGIC" then
effectInc = effectInc + modDB:Sum("INC", { actor = "player" }, "MagicTinctureEffect")
end
local effectMod = (1 + (tinctureData.effectInc + effectInc) / 100) * (1 + (item.quality or 0) / 100)
local effectMod = item.crafted and (1 + (tinctureData.effectInc + effectInc) / 100) * (1 + (item.quality or 0) / 100) or (1 + effectInc / 100)
if effectMod ~= 1 then
t_insert(stats, s_format("^8Tincture effect modifier: ^7%+d%%", effectMod * 100 - 100))
end
Expand Down
4 changes: 2 additions & 2 deletions src/Modules/CalcPerform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1562,13 +1562,13 @@ function calcs.perform(env, skipEHP)
local tinctureBuffsPerBase = {}

local function calcTinctureMods(item, baseName, buffModList, modList)
local tinctureEffectInc = effectInc + item.tinctureData.effectInc
local tinctureEffectInc = effectInc + (item.crafted and item.tinctureData.effectInc or 0)
if item.rarity == "MAGIC" then
tinctureEffectInc = tinctureEffectInc + effectIncMagic
end
-- Compute tincture effect multiplier.
-- Tincture effect multiplier is rounded to 2 decimal places before applying it.
local effectMod = math.floor((1 + (tinctureEffectInc) / 100) * (1 + (item.quality or 0) / 100) * 100) / 100
local effectMod = math.floor((1 + (tinctureEffectInc) / 100) * (1 + (item.crafted and item.quality or 0) / 100) * 100) / 100

-- same deal as flasks, go look at the comment there
if buffModList[1] then
Expand Down