Skip to content

Commit

Permalink
Use default item affix quality rather than 50% (PathOfBuildingCommuni…
Browse files Browse the repository at this point in the history
  • Loading branch information
Regisle authored and Dullson committed Dec 26, 2022
1 parent 7aa2eaf commit f9c0365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Classes/TradeQueryGenerator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ function TradeQueryGeneratorClass:GenerateModWeights(modsToTest)
goto continue
end

-- Test with a value halfway between the min and max available for this mod in this slot. Note that this can generate slightly different values for the same mod as implicit vs explicit.
local modValue = math.ceil((entry[self.calcContext.itemCategory].max - entry[self.calcContext.itemCategory].min) / 2 + entry[self.calcContext.itemCategory].min)
-- Test with a value halfway (or configured default Item Affix Quality) between the min and max available for this mod in this slot. Note that this can generate slightly different values for the same mod as implicit vs explicit.
local modValue = math.ceil((entry[self.calcContext.itemCategory].max - entry[self.calcContext.itemCategory].min) * ( main.defaultItemAffixQuality or 0.5 ) + entry[self.calcContext.itemCategory].min)
local modValueStr = (entry.sign and entry.sign or "") .. tostring(modValue)

-- Apply override text for special cases
Expand Down

0 comments on commit f9c0365

Please sign in to comment.