Added support for Primordial Eminence's buff effect mod

This commit is contained in:
Openarl
2017-03-02 14:35:09 +10:00
parent 181ed0bf2b
commit 4029be7dae
5 changed files with 11 additions and 5 deletions

View File

@@ -1165,8 +1165,11 @@ local function performCalcs(env)
if activeSkill.buffModList and (not activeSkill.skillFlags.totem or activeSkill.skillData.allowTotemBuff) and (not activeSkill.skillData.offering or modDB:Sum("FLAG", nil, "OfferingsAffectPlayer")) then
activeSkill.buffSkill = true
local inc = modDB:Sum("INC", skillCfg, "BuffEffect")
if activeSkill.activeGem.data.golem and modDB:Sum("FLAG", skillCfg, "LiegeOfThePrimordial") and (activeSkill.activeGem.data.fire or activeSkill.activeGem.data.cold or activeSkill.activeGem.data.lightning) then
inc = inc + 100
if activeSkill.activeGem.data.golem then
inc = inc + modDB:Sum("INC", skillCfg, "GolemBuffEffect")
if modDB:Sum("FLAG", skillCfg, "LiegeOfThePrimordial") and (activeSkill.activeGem.data.fire or activeSkill.activeGem.data.cold or activeSkill.activeGem.data.lightning) then
inc = inc + 100
end
end
modDB:ScaleAddList(activeSkill.buffModList, 1 + inc / 100)
end

View File

@@ -133,6 +133,7 @@ local modNameList = {
["radius of curses"] = { "AreaOfEffect", keywordFlags = KeywordFlag.Curse },
["buff effect"] = "BuffEffect",
["effect of buffs on you"] = "BuffEffect",
["effect of buffs granted by your golems"] = "GolemBuffEffect",
["effect of the buff granted by your stone golems"] = { "BuffEffect", tag = { type = "SkillName", skillName = "Summon Stone Golem" } },
["effect of the buff granted by your lightning golems"] = { "BuffEffect", tag = { type = "SkillName", skillName = "Summon Lightning Golem" } },
["effect of the buff granted by your ice golems"] = { "BuffEffect", tag = { type = "SkillName", skillName = "Summon Ice Golem" } },