Skip to content

Commit 9d1e121

Browse files
LocalIdentityLocalIdentity
andauthored
Add support for many Compantion mods on the tree (#1350)
Adds support for the "while your Companion is in your Presence` mods Adds support for the Companion Damage to Player damage conversion Changed the SkillType check to use CreatesCompanion as those are the skills with the minions on them. This only removes Tame Beast from what I could tell Adds a new type of config check to look for SkillTypes Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 4b9e81e commit 9d1e121

6 files changed

Lines changed: 53 additions & 24 deletions

File tree

src/Classes/ConfigTab.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,17 @@ local ConfigTabClass = newClass("ConfigTab", "UndoHandler", "ControlHost", "Cont
495495
end))
496496
end
497497
end
498+
if varData.ifSkillType then
499+
t_insert(shownFuncs, listOrSingleIfOption(varData.ifSkillType, function(ifOption)
500+
for _, activeSkill in ipairs(self.build.calcsTab.mainEnv.player.activeSkillList) do
501+
-- only checking flags of skill in main env. rework may be required
502+
if activeSkill.skillTypes[ifOption] then
503+
return true
504+
end
505+
end
506+
return false
507+
end))
508+
end
498509
if varData.ifSkillFlag then
499510
t_insert(shownFuncs, listOrSingleIfOption(varData.ifSkillFlag, function(ifOption)
500511
for _, activeSkill in ipairs(self.build.calcsTab.mainEnv.player.activeSkillList) do

0 commit comments

Comments
 (0)