From 7fb302129a55f467cf26292bddeff8034d2fb8c7 Mon Sep 17 00:00:00 2001 From: brightrim Date: Sun, 2 Feb 2025 13:00:12 +0100 Subject: [PATCH] made the const impact same as in fighting for uniformity on artifical health bar --- magic/arcane/magicDamage.lua | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/magic/arcane/magicDamage.lua b/magic/arcane/magicDamage.lua index a4c83887d..a90bdafbe 100644 --- a/magic/arcane/magicDamage.lua +++ b/magic/arcane/magicDamage.lua @@ -236,17 +236,10 @@ local function constitutionImpact(target, damage) local constitution = target:increaseAttrib("constitution", 0) - local statBonus = common.GetAttributeBonusHigh(constitution) + -- Same math as in fighting for uniformity on how much const impacts the health bar + -- That's 466% increase at 3 const and 54.444444% decrease at 30 const - --Fighting uses Globals.Damage * 14 / Defender.constitution, for reference - - local maximumDamage = 4 -- Up to 400% increase to the damage - - local MaxDecrease = 4.5 -- Up to 50% decrease to the damage - - local increase = 1 + (maximumDamage - statBonus*MaxDecrease) -- at max values this would be 1 + (4 - 1*4.5) aka 1 + -0.5 aka 0.5 - - return damage*increase + return damage * 14 / constitution end