Fix Summon Spider / Spectral Wolf count not scaling with Dark Monarch (#8819)

The configs limited the mods by hardcoding the active count value instead of grabbing it from the stat

Co-authored-by: LocalIdentity <localidentity2@gmail.com>
This commit is contained in:
LocalIdentity
2025-07-14 15:30:28 +10:00
committed by GitHub
parent e5230c5c23
commit 8f4a295fde
2 changed files with 8 additions and 6 deletions

View File

@@ -297,8 +297,8 @@ function ModStoreClass:EvalMod(mod, cfg, globalLimits)
local mult = m_floor(base / (tag.div or 1) + 0.0001)
local limitTotal
local limitNegTotal
if tag.limit or tag.limitVar then
local limit = tag.limit or limitTarget:GetMultiplier(tag.limitVar, cfg)
if tag.limit or tag.limitVar or tag.limitStat then
local limit = tag.limit or tag.limitVar and limitTarget:GetMultiplier(tag.limitVar, cfg) or tag.limitStat and limitTarget:GetStat(tag.limitStat, cfg)
if tag.limitTotal then
limitTotal = limit
elseif tag.limitNegTotal then

View File

@@ -529,8 +529,9 @@ return {
modList:NewMod("SkillData", "LIST", { key = "enable", value = false }, "Config", { type = "SkillId", skillId = "ABTTAzmeriShepherdSpellDamage" })
end },
{ label = "Raise Spiders:", ifSkill = "Raise Spiders" },
{ var = "raiseSpidersSpiderCount", type = "count", label = "# of Spiders:", ifSkill = "Raise Spiders", apply = function(val, modList, enemyModList)
modList:NewMod("Multiplier:RaisedSpider", "BASE", m_min(val, 20), "Config")
{ var = "raiseSpidersSpiderCount", type = "count", label = "# of Spiders:", ifSkill = "Raise Spiders", tooltip = "Sets the number of active Spiders.\nThe base maximum number of Spiders is 20.", apply = function(val, modList, enemyModList)
modList:NewMod("Multiplier:RaisedSpiderConfig", "BASE", val, "Config")
modList:NewMod("Multiplier:RaisedSpider", "BASE", 1, "Config", { type = "Multiplier", var = "RaisedSpiderConfig", limitStat = "ActiveSpiderLimit" })
end },
{ label = "Raise Zombie:", ifSkill = "Raise Zombie", includeTransfigured = true, ifCond = "SummonedZombieInPast8Sec" },
{ var = "conditionSummonedZombieInPast8Sec", type = "check", label = "Summoned Zombie in past 8 Seconds?", ifCond = "SummonedZombieInPast8Sec", ifSkill = "Raise Zombie", includeTransfigured = true, apply = function(val, modList, enemyModList)
@@ -557,8 +558,9 @@ return {
modList:NewMod("Multiplier:SnipeStage", "BASE", val, "Config")
end },
{ label = "Spectral Wolf:", ifSkill = "Summon Spectral Wolf" },
{ var = "configSpectralWolfCount", type = "count", label = "# of Active Spectral Wolves:", ifSkill = "Summon Spectral Wolf", tooltip = "Sets the number of active Spectral Wolves.\nThe maximum number of Spectral Wolves is 10.", apply = function(val, modList, enemyModList)
modList:NewMod("Multiplier:SpectralWolfCount", "BASE", m_min(val, 10), "Config")
{ var = "configSpectralWolfCount", type = "count", label = "# of Active Spectral Wolves:", ifSkill = "Summon Spectral Wolf", tooltip = "Sets the number of active Spectral Wolves.\nThe base maximum number of Spectral Wolves is 10.", apply = function(val, modList, enemyModList)
modList:NewMod("Multiplier:SpectralWolfConfig", "BASE", val, "Config")
modList:NewMod("Multiplier:SpectralWolfCount", "BASE", 1, "Config", { type = "Multiplier", var = "SpectralWolfConfig", limitStat = "ActiveWolfLimit" })
end },
{ label = "Stance Skills:", ifSkill = { "Blood and Sand", "Flesh and Stone", "Lacerate", "Bladestorm", "Perforate", "Perforate of Duality" } },
{ var = "bloodSandStance", type = "list", label = "Stance:", ifSkill = { "Blood and Sand", "Flesh and Stone", "Lacerate", "Bladestorm", "Perforate", "Perforate of Duality" }, list = {{val="BLOOD",label="Blood Stance"},{val="SAND",label="Sand Stance"}}, apply = function(val, modList, enemyModList)