Skip to content

add support for Muster Support #1064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Data/Skills/sup_int.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3035,6 +3035,11 @@ skills["SupportMusterPlayer"] = {
label = "Muster",
incrementalEffectiveness = 0.054999999701977,
statDescriptionScope = "gem_stat_descriptions",
statMap = {
["support_varied_troops_damage_+%_final_per_different_persistent_ominion"] = {
mod("MinionModifier", "LIST", { mod = mod("Damage", "MORE", nil, 0, 0, { type = "Multiplier", actor = "parent", var = "PersistentMinionTypes" }) }),
},
},
baseFlags = {
},
constantStats = {
Expand Down
5 changes: 5 additions & 0 deletions src/Export/Skills/sup_int.txt
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,11 @@

#skill SupportMusterPlayer
#set SupportMusterPlayer
statMap = {
["support_varied_troops_damage_+%_final_per_different_persistent_ominion"] = {

Check warning on line 713 in src/Export/Skills/sup_int.txt

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (ominion)
mod("MinionModifier", "LIST", { mod = mod("Damage", "MORE", nil, 0, 0, { type = "Multiplier", actor = "parent", var = "PersistentMinionTypes" }) }),
},
},
#mods
#skillEnd

Expand Down
16 changes: 16 additions & 0 deletions src/Modules/CalcSetup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1775,5 +1775,21 @@ function calcs.initEnv(build, mode, override, specEnv)
env.modDB.multipliers.GreenSupportGems = (env.modDB.multipliers.GreenSupportGems or 0) + slotSupportGemSocketsCount.G
env.modDB.multipliers.BlueSupportGems = (env.modDB.multipliers.BlueSupportGems or 0) + slotSupportGemSocketsCount.B

do
local seen = { }
for _, activeSkill in ipairs(env.player.activeSkillList) do
local ge = activeSkill.grantedEffect or
(activeSkill.activeEffect and activeSkill.activeEffect.grantedEffect)
if ge
and ge.skillTypes[SkillType.Minion]
and ge.skillTypes[SkillType.Persistent] then
seen[ge.id] = true
end
end
local total = 0
for _ in pairs(seen) do total = total + 1 end
env.modDB.multipliers["PersistentMinionTypes"] = total
end

return env, cachedPlayerDB, cachedEnemyDB, cachedMinionDB
end
Loading