Skip to content

Commit 86920f6

Browse files
author
LocalIdentity
committed
Adjust Bound by destiny variant names + Fix Spinehail mod
1 parent dea1b08 commit 86920f6

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/Data/Uniques/Special/Generated.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ for _, modId in ipairs(sortedMods) do
654654
})
655655
end
656656
for _, mod in ipairs(boundByDestinyMods) do
657-
local variantName = mod.mod.type:gsub("(%d+)(%a+)", "%2 %1:")..abbreviateModId(mod.Id):gsub(mod.mod.type .. ".*", ""):gsub("New", ""):gsub("[%u%d]", " %1"):gsub("_", ""):gsub("E S", "ES")
657+
local variantName = mod.mod.type:gsub("(%d+)(%a+)", "%2 %1:")..abbreviateModId(mod.Id):gsub(mod.mod.type .. ".*", ""):gsub("New", ""):gsub("[%u%d]", " %1"):gsub("_", ""):gsub("E S", "ES"):gsub("Velocity", "Speed"):gsub("Permyriad", "")
658658
table.insert(boundByDestiny, "Variant: " .. variantName)
659659
end
660660
for i, mod in ipairs(boundByDestinyMods) do

src/Modules/CalcDefence.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ local ipairs = ipairs
1010
local t_insert = table.insert
1111
local m_min = math.min
1212
local m_max = math.max
13+
local m_abs = math.abs
1314
local m_floor = math.floor
1415
local m_ceil = math.ceil
1516
local m_sqrt = math.sqrt
@@ -3110,7 +3111,7 @@ function calcs.buildDefenceEstimations(env, actor)
31103111
for partType, _ in pairs(passDamages) do
31113112
passRatio = m_max(passRatio, (passOverkill + output[partType.."TotalHitPool"]) / output[partType.."TotalHitPool"])
31123113
end
3113-
local stepSize = n > 1 and m_min(math.abs((passOverkill - previousOverkill) / previousOverkill), 2) or 1
3114+
local stepSize = n > 1 and m_min(m_abs((passOverkill - previousOverkill) / previousOverkill), 2) or 1
31143115
local stepAdjust = stepSize > 1 and -passOverkill / stepSize or n > 1 and -passOverkill * stepSize or 0
31153116
previousOverkill = passOverkill
31163117
passIncomingDamage = (passIncomingDamage + stepAdjust) / m_sqrt(passRatio)

src/Modules/CalcOffence.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ function calcs.offence(env, actor, activeSkill)
583583
end
584584
if skillModList:Flag(nil, "MinionCastSpeedAppliesToPlayer") then
585585
-- Minion Cast Speed conversion from Spinehail
586-
local multiplier = (skillModList:Max(skillCfg, "ImprovedMinionAttackSpeedAppliesToPlayer") or 100) / 100
586+
local multiplier = (skillModList:Max(skillCfg, "ImprovedMinionCastSpeedAppliesToPlayer") or 100) / 100
587587
for _, value in ipairs(skillModList:List(skillCfg, "MinionModifier")) do
588588
if value.mod.name == "Speed" and value.mod.type == "INC" and (value.mod.flags == 0 or band(value.mod.flags, ModFlag.Cast) ~= 0) then
589589
local modifiers = calcLib.getConvertedModTags(value.mod, multiplier, true)

0 commit comments

Comments
 (0)