Added support for Fortification stacks above 20 (#8634)
Currently only seen for champion in 3.26 * Supports previously general parsing now scaling by fortification stacks above 20 * Limited by max stacks
This commit is contained in:
@@ -613,6 +613,7 @@ local function doActorMisc(env, actor)
|
||||
local minStacks = m_min(modDB:Sum("BASE", nil, "MinimumFortification"), maxStacks)
|
||||
local stacks = modDB:Override(nil, "FortificationStacks") or (alliedFortify > 0 and alliedFortify) or (minStacks > 0 and minStacks) or maxStacks
|
||||
output.FortificationStacks = stacks
|
||||
output.FortificationStacksOver20 = m_min(m_max(0, stacks - 20), maxStacks - 20)
|
||||
if not modDB:Flag(nil,"Condition:NoFortificationMitigation") then
|
||||
local effectScale = 1 + modDB:Sum("INC", nil, "BuffEffectOnSelf") / 100
|
||||
local effect = m_floor(effectScale * stacks)
|
||||
|
||||
@@ -1389,6 +1389,7 @@ local modTagList = {
|
||||
["per (%d+)%% missing cold resistance, up to a maximum of (%d+)%%"] = function(num, _, limit) return { tag = { type = "PerStat", stat = "MissingColdResist", div = num, globalLimit = tonumber(limit), globalLimitKey = "ReplicaNebulisCold" } } end,
|
||||
["per endurance, frenzy or power charge"] = { tag = { type = "PerStat", stat = "TotalCharges" } },
|
||||
["per fortification"] = { tag = { type = "PerStat", stat = "FortificationStacks" } },
|
||||
["per fortification above 20"] = { tag = { type = "PerStat", stat = "FortificationStacksOver20" } },
|
||||
["per totem"] = { tag = { type = "PerStat", stat = "TotemsSummoned" } },
|
||||
["per summoned totem"] = { tag = { type = "PerStat", stat = "TotemsSummoned" } },
|
||||
["for each summoned totem"] = { tag = { type = "PerStat", stat = "TotemsSummoned" } },
|
||||
|
||||
Reference in New Issue
Block a user