From 4029be7daee0a5b30cdfa58af92c7afd116cfa01 Mon Sep 17 00:00:00 2001 From: Openarl Date: Thu, 2 Mar 2017 14:35:09 +1000 Subject: [PATCH] Added support for Primordial Eminence's buff effect mod --- Modules/Calcs.lua | 7 +++++-- Modules/ModParser.lua | 1 + README.md | 1 + changelog.txt | 1 + manifest.xml | 6 +++--- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Modules/Calcs.lua b/Modules/Calcs.lua index 7f403724..f0484aa2 100644 --- a/Modules/Calcs.lua +++ b/Modules/Calcs.lua @@ -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 diff --git a/Modules/ModParser.lua b/Modules/ModParser.lua index ef527e3c..aaa34c53 100644 --- a/Modules/ModParser.lua +++ b/Modules/ModParser.lua @@ -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" } }, diff --git a/README.md b/README.md index 1b7a198b..86ad534a 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ This update implements the AoE changes for 2.6: * The area of effect of many skills will be incorrect until all the data is made available in the patch Other changes: * Added support for the "Arrows that Pierce cause Bleeding" stat on Slivertongue + * Added support for the increased Golem Buff Effect stat on Primordial Eminence * Corrected the implicits added when crafting Wands and Sceptres * The (possibly incorrect) pathing in the Storm Weaver cluster should now render correctly * Fixed an error that would occur when loading certain builds diff --git a/changelog.txt b/changelog.txt index f1afb679..42da0f72 100644 --- a/changelog.txt +++ b/changelog.txt @@ -7,6 +7,7 @@ This update implements the AoE changes for 2.6: * The area of effect of many skills will be incorrect until all the data is made available in the patch Other changes: * Added support for the "Arrows that Pierce cause Bleeding" stat on Slivertongue + * Added support for the increased Golem Buff Effect stat on Primordial Eminence * Corrected the implicits added when crafting Wands and Sceptres * The (possibly incorrect) pathing in the Storm Weaver cluster should now render correctly * Fixed an error that would occur when loading certain builds diff --git a/manifest.xml b/manifest.xml index 41a213fe..6cf51dc7 100644 --- a/manifest.xml +++ b/manifest.xml @@ -7,7 +7,7 @@ - + @@ -44,13 +44,13 @@ - + - +