From 3953f7e88e82c955df2870931b9abaa1518cc12b Mon Sep 17 00:00:00 2001 From: ppoelzl <33464174+ppoelzl@users.noreply.github.com> Date: Fri, 20 Dec 2019 23:58:51 +0100 Subject: [PATCH 1/2] Add parsing capability for brand attachment range --- Modules/ModParser-3_0.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/ModParser-3_0.lua b/Modules/ModParser-3_0.lua index 1119fe3b4..28374939e 100644 --- a/Modules/ModParser-3_0.lua +++ b/Modules/ModParser-3_0.lua @@ -341,6 +341,7 @@ local modNameList = { ["to deal double damage"] = "DoubleDamageChance", ["activation frequency"] = "BrandActivationFrequency", ["brand activation frequency"] = "BrandActivationFrequency", + ["brand attachment range"] = "BrandAttachmentRange", -- Buffs ["onslaught effect"] = "OnslaughtEffect", ["fortify duration"] = "FortifyDuration", From 2d5cb0c28154689e5cfe1b088421d494e6e8afaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20P=C3=B6lzl?= <33464174+ppoelzl@users.noreply.github.com> Date: Sun, 22 Dec 2019 02:27:11 +0100 Subject: [PATCH 2/2] Add calcs tab view for Brand Attachment Range --- Modules/CalcOffence-3_0.lua | 3 +++ Modules/CalcSections-3_0.lua | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/Modules/CalcOffence-3_0.lua b/Modules/CalcOffence-3_0.lua index b5f355b73..e8e210d73 100644 --- a/Modules/CalcOffence-3_0.lua +++ b/Modules/CalcOffence-3_0.lua @@ -382,6 +382,9 @@ function calcs.offence(env, actor, activeSkill) breakdown.AreaOfEffectMod = breakdown.mod(skillCfg, "AreaOfEffect") end end + if activeSkill.skillTypes[SkillType.Brand] then + output.BrandAttachmentRange = calcLib.mod(skillModList, skillCfg, "BrandAttachmentRange") + end if skillFlags.trap then local baseSpeed = 1 / skillModList:Sum("BASE", skillCfg, "TrapThrowingTime") output.TrapThrowingSpeed = baseSpeed * calcLib.mod(skillModList, skillCfg, "TrapThrowingSpeed") * output.ActionSpeedMod diff --git a/Modules/CalcSections-3_0.lua b/Modules/CalcSections-3_0.lua index 3dc520813..9530f768b 100644 --- a/Modules/CalcSections-3_0.lua +++ b/Modules/CalcSections-3_0.lua @@ -479,6 +479,10 @@ return { { label = "Secondary Radius", haveOutput = "AreaOfEffectRadiusSecondary", { format = "{0:output:AreaOfEffectRadiusSecondary}", { breakdown = "AreaOfEffectRadiusSecondary" }, }, }, { label = "Tertiary Radius", haveOutput = "AreaOfEffectRadiusTertiary", { format = "{0:output:AreaOfEffectRadiusTertiary}", { breakdown = "AreaOfEffectRadiusTertiary" }, }, }, { label = "Weapon Range", haveOutput = "WeaponRange", { format = "{0:output:WeaponRange}", { breakdown = "WeaponRange" }, }, }, + { label = "Attachment Range", haveOutput = "BrandAttachmentRange", { format = "x {2:output:BrandAttachmentRange}", + { breakdown = "BrandAttachmentRange" }, + { modName = "BrandAttachmentRange", cfg = "skill"}, + }, }, { label = "Trap Throw Time", flag = "trap", { format = "{2:output:TrapThrowingTime}s", { breakdown = "TrapThrowingTime" }, { modName = "TrapThrowingSpeed", cfg = "skill" },