Added support for various unique stats

This commit is contained in:
Openarl
2019-03-10 00:53:52 +13:00
parent 84aae38616
commit c1faf9bf18
8 changed files with 28 additions and 18 deletions

View File

@@ -234,7 +234,7 @@ function ModStoreClass:EvalMod(mod, cfg)
mult = target:GetMultiplier(tag.var, cfg)
end
local threshold = tag.threshold or target:GetMultiplier(tag.thresholdVar, cfg)
if (tag.upper and mult > tag.threshold) or (not tag.upper and mult < tag.threshold) then
if (tag.upper and mult > threshold) or (not tag.upper and mult < threshold) then
return
end
elseif tag.type == "PerStat" then