Skip to content

Commit 945ad48

Browse files
authored
FEAT: add a warning when more than 1 aspect is active (#8523)
1 parent 891bf70 commit 945ad48

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/Modules/Build.lua

+11
Original file line numberDiff line numberDiff line change
@@ -1578,6 +1578,17 @@ function buildMode:AddDisplayStatList(statList, actor)
15781578
if actor.output.VixenModeNoVixenGlovesWarn then
15791579
InsertIfNew(self.controls.warnings.lines, "Vixen's calculation mode for Doom Blast is selected but you do not have Vixen's Entrapment Embroidered Gloves equipped")
15801580
end
1581+
1582+
do
1583+
local aspectCount = 0
1584+
aspectCount = aspectCount + (actor.output.CrabBarriersMax > 0 and actor.output.CrabBarriers > 0 and 1 or 0)
1585+
aspectCount = aspectCount + (aspectCount < 2 and actor.modDB:Flag(nil, "Condition:AspectOfTheSpiderActive") and 1 or 0)
1586+
aspectCount = aspectCount + (aspectCount < 2 and (actor.modDB:Flag(nil, "Condition:CatsAgilityActive") or actor.modDB:Flag(nil, "Condition:CatsStealthActive")) and 1 or 0)
1587+
aspectCount = aspectCount + (aspectCount < 2 and (actor.modDB:Flag(nil, "Condition:AviansFlightActive") or actor.modDB:Flag(nil, "Condition:AviansMightActive")) and 1 or 0)
1588+
if aspectCount > 1 then
1589+
InsertIfNew(self.controls.warnings.lines, "You have more than one Aspect skill active")
1590+
end
1591+
end
15811592
end
15821593

15831594
function buildMode:InsertItemWarnings()

src/Modules/ConfigOptions.lua

+3
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,9 @@ return {
268268
{ label = "Aspect of the Spider:", ifSkill = "Aspect of the Spider" },
269269
{ var = "aspectOfTheSpiderWebStacks", type = "count", label = "# of Spider's Web Stacks:", ifSkill = "Aspect of the Spider", apply = function(val, modList, enemyModList)
270270
modList:NewMod("ExtraSkillMod", "LIST", { mod = modLib.createMod("Multiplier:SpiderWebApplyStack", "BASE", val) }, "Config", { type = "SkillName", skillName = "Aspect of the Spider" })
271+
if val > 0 then
272+
modList:NewMod("Condition:AspectOfTheSpiderActive", "FLAG", true, "Config")
273+
end
271274
end },
272275
{ label = "Banner Skills:", ifSkill = { "Dread Banner", "War Banner", "Defiance Banner" } },
273276
{ var = "bannerPlanted", type = "check", label = "Is Banner Planted?", ifSkill = { "Dread Banner", "War Banner", "Defiance Banner" }, apply = function(val, modList, enemyModList)

0 commit comments

Comments
 (0)