Skip to content

Commit ac2ad61

Browse files
committed
Runic Infusion support
1 parent 43eb6e2 commit ac2ad61

4 files changed

Lines changed: 23 additions & 3 deletions

File tree

src/Data/Skills/other.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14675,6 +14675,15 @@ skills["SupportRunicInfusionPlayer"] = {
1467514675
label = "Runic Infusion",
1467614676
incrementalEffectiveness = 0.054999999701977,
1467714677
statDescriptionScope = "gem_stat_descriptions",
14678+
statMap = {
14679+
["base_ward_cost_+_%_of_maximum_ward"] = {
14680+
mod("WardCostNoMult", "BASE", nil, 0, 0, { type = "PercentStat", stat = "Ward", percent = 1 }),
14681+
},
14682+
["added_physical_damage_%_ward_cost"] = {
14683+
mod("PhysicalMin", "BASE", nil, 0, 0, { type = "PercentStat", stat = "WardCost", percent = 1 }),
14684+
mod("PhysicalMax", "BASE", nil, 0, 0, { type = "PercentStat", stat = "WardCost", percent = 1 }),
14685+
},
14686+
},
1467814687
baseFlags = {
1467914688
},
1468014689
constantStats = {

src/Export/Skills/other.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,16 @@ statMap = {
997997

998998
#skill SupportRunicInfusionPlayer
999999
#set SupportRunicInfusionPlayer
1000+
#flags
1001+
statMap = {
1002+
["base_ward_cost_+_%_of_maximum_ward"] = {
1003+
mod("WardCostNoMult", "BASE", nil, 0, 0, { type = "PercentStat", stat = "Ward", percent = 1 }),
1004+
},
1005+
["added_physical_damage_%_ward_cost"] = {
1006+
mod("PhysicalMin", "BASE", nil, 0, 0, { type = "PercentStat", stat = "WardCost", percent = 1 }),
1007+
mod("PhysicalMax", "BASE", nil, 0, 0, { type = "PercentStat", stat = "WardCost", percent = 1 }),
1008+
},
1009+
},
10001010
#mods
10011011
#skillEnd
10021012

src/Modules/CalcActiveSkill.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ function calcs.buildActiveSkillModList(env, activeSkill)
654654
end
655655

656656
-- The damage fixup stat applies x% less base Attack Damage and x% more base Attack Speed as confirmed by Openarl Jan 4th 2024
657-
-- Implemented in this manner as the stat exists on the minion not the skills
657+
-- Implemented in this manner as the stat exists on the minion not the skills
658658
if activeSkill.actor and activeSkill.actor.minionData then
659659
if activeSkill.actor.minionData.damageFixup then
660660
skillModList:NewMod("Damage", "MORE", -100 * activeSkill.actor.minionData.damageFixup, "Damage Fixup", ModFlag.Attack)

src/Modules/CalcOffence.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,16 +2035,17 @@ function calcs.offence(env, actor, activeSkill)
20352035

20362036
-- Calculate costs (may be slightly off due to rounding differences)
20372037
local costs = {
2038-
order = { "Mana","Life","ES","Ward","Soul","Rage","ManaPercent","LifePercent","ManaPerMinute","LifePerMinute","ManaPercentPerMinute","LifePercentPerMinute","ESPerMinute","ESPercentPerMinute" },
2038+
order = { "Mana","Life","ES","Ward","Soul","Rage","ManaPercent","LifePercent","WardPercent","ManaPerMinute","LifePerMinute","ManaPercentPerMinute","LifePercentPerMinute","ESPerMinute","ESPercentPerMinute" },
20392039

20402040
["Mana"] = { type = "Mana", upfront = true, percent = false, text = "mana", baseCost = 0, baseCostRaw = 0, totalCost = 0, baseCostNoMult = 0, finalBaseCost = 0 },
20412041
["Life"] = { type = "Life", upfront = true, percent = false, text = "life", baseCost = 0, totalCost = 0, baseCostNoMult = 0, finalBaseCost = 0 },
20422042
["ES"] = { type = "ES", upfront = true, percent = false, text = "ES", baseCost = 0, totalCost = 0, baseCostNoMult = 0, finalBaseCost = 0 },
2043-
["Ward"] = { type = "Ward", upfront = true, percent = false, unaffectedByGenericCostMults = true, text = "ward", baseCost = 0, totalCost = 0, baseCostNoMult = 0, finalBaseCost = 0 },
2043+
["Ward"] = { type = "Ward", upfront = true, percent = false, text = "ward", baseCost = 0, totalCost = 0, baseCostNoMult = 0, finalBaseCost = 0 },
20442044
["Soul"] = { type = "Soul", upfront = true, percent = false, unaffectedByGenericCostMults = true, text = "soul", baseCost = 0, totalCost = 0, baseCostNoMult = 0, finalBaseCost = 0 },
20452045
["Rage"] = { type = "Rage", upfront = true, percent = false, text = "rage", baseCost = 0, totalCost = 0, baseCostNoMult = 0, finalBaseCost = 0 },
20462046
["ManaPercent"] = { type = "Mana", upfront = true, percent = true, text = "mana", baseCost = 0, totalCost = 0, baseCostNoMult = 0, finalBaseCost = 0 },
20472047
["LifePercent"] = { type = "Life", upfront = true, percent = true, text = "life", baseCost = 0, totalCost = 0, baseCostNoMult = 0, finalBaseCost = 0 },
2048+
["WardPercent"] = { type = "Ward", upfront = true, percent = true, text = "ward", baseCost = 0, totalCost = 0, baseCostNoMult = 0, finalBaseCost = 0 },
20482049
["ManaPerMinute"] = { type = "Mana", upfront = false, percent = false, text = "mana/s", baseCost = 0, totalCost = 0, baseCostNoMult = 0, finalBaseCost = 0 },
20492050
["LifePerMinute"] = { type = "Life", upfront = false, percent = false, text = "life/s", baseCost = 0, totalCost = 0, baseCostNoMult = 0, finalBaseCost = 0 },
20502051
["ManaPercentPerMinute"] = { type = "Mana", upfront = false, percent = true, text = "mana/s", baseCost = 0, totalCost = 0, baseCostNoMult = 0, finalBaseCost = 0 },

0 commit comments

Comments
 (0)