You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make the gloves be a damage source vs added damage
The gloves are meant to become the damage source instead of granting added damage. It was incorrectly adding the base unarmed damage to attackss
Now also correctly interacts with hollow palm
c["Has 8 to 12 Physical damage, +3 to +4 per Boss's Face Broken"]={{[1]={flags=16777216,keywordFlags=0,name="PhysicalMin",type="BASE",value=8},[2]={flags=16777216,keywordFlags=0,name="PhysicalMax",type="BASE",value=12},[3]={[1]={type="Multiplier",var="BossFaceBroken"},flags=16777216,keywordFlags=0,name="PhysicalMin",type="BASE",value=3},[4]={[1]={type="Multiplier",var="BossFaceBroken"},flags=16777216,keywordFlags=0,name="PhysicalMax",type="BASE",value=4}},nil}
5582
+
c["Has 8 to 12 Physical damage, +3 to +4 per Boss's Face Broken"]={{[1]={flags=0,keywordFlags=0,name="FacebreakerPhysicalMin",type="BASE",value=8},[2]={flags=0,keywordFlags=0,name="FacebreakerPhysicalMax",type="BASE",value=12},[3]={[1]={type="Multiplier",var="BossFaceBroken"},flags=0,keywordFlags=0,name="FacebreakerPhysicalMin",type="BASE",value=3},[4]={[1]={type="Multiplier",var="BossFaceBroken"},flags=0,keywordFlags=0,name="FacebreakerPhysicalMax",type="BASE",value=4}},nil}
5583
5583
c["Has no Attribute Requirements"]={{[1]={flags=0,keywordFlags=0,name="NoAttributeRequirements",type="FLAG",value=true}},nil}
5584
5584
c["Hazards have 15% chance to rearm after they are triggered"]={{[1]={[1]={skillType=203,type="SkillType"},flags=0,keywordFlags=0,name="HazardRearmChance",type="BASE",value=15}},nil}
5585
5585
c["Hazards have 5% chance to rearm after they are triggered"]={{[1]={[1]={skillType=203,type="SkillType"},flags=0,keywordFlags=0,name="HazardRearmChance",type="BASE",value=5}},nil}
c["Unaffected by Chill during Dodge Roll"]={nil,"Unaffected by Chill during Dodge Roll "}
6419
6419
c["Unaffected by Chill while Leeching Mana"]={{[1]={[1]={type="Condition",var="LeechingMana"},flags=0,keywordFlags=0,name="SelfChillEffect",type="MORE",value=-100}},nil}
6420
6420
c["Unaffected by Elemental Weakness"]={nil,"Unaffected by Elemental Weakness "}
6421
-
c["Unarmed Attacks that would use an Equipped One Hand Mace's damage use this Item's damage"]={{},nil}
6421
+
c["Unarmed Attacks that would use an Equipped One Hand Mace's damage use this Item's damage"]={{[1]={flags=0,keywordFlags=0,name="UseFacebreakerItemDamage",type="FLAG",value=true}},nil}
6422
6422
c["Undead Minions have 25% less maximum Life"]={{[1]={[1]={skillType=127,type="SkillType"},flags=0,keywordFlags=0,name="MinionModifier",type="LIST",value={mod={flags=0,keywordFlags=0,name="Life",type="MORE",value=-25}}}},nil}
6423
6423
c["Unique Tamed Beasts are Possessed by random Azmeri Spirits, changing every 20 seconds"]={nil,"Unique Tamed Beasts are Possessed by random Azmeri Spirits, changing every 20 seconds "}
6424
6424
c["Unique Tamed Beasts have 30% increased movement speed"]={nil,"Unique Tamed Beasts have 30% increased movement speed "}
Copy file name to clipboardExpand all lines: src/Modules/CalcActiveSkill.lua
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -826,7 +826,7 @@ function calcs.buildActiveSkillModList(env, activeSkill)
826
826
end
827
827
828
828
-- Hollow Palm Technique added phys for skills that would use Quarterstaff
829
-
ifactiveSkill.actor.modDB.conditions.HollowPalmand ((activeEffect.grantedEffect.weaponTypesandactiveEffect.grantedEffect.weaponTypes.Staff) orskillModList:Flag(activeSkill.skillCfg, "UseHollowPalmDamage")) then
829
+
ifactiveSkill.actor.modDB.conditions.HollowPalmandnot (skillModList:Flag(nil, "UseFacebreakerItemDamage") andactiveEffect.grantedEffect.weaponTypesandactiveEffect.grantedEffect.weaponTypes["One Hand Mace"]) and((activeEffect.grantedEffect.weaponTypesandactiveEffect.grantedEffect.weaponTypes.Staff) orskillModList:Flag(activeSkill.skillCfg, "UseHollowPalmDamage")) then
Copy file name to clipboardExpand all lines: src/Modules/CalcOffence.lua
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2385,6 +2385,12 @@ function calcs.offence(env, actor, activeSkill)
2385
2385
source.CritChance=skillData.CritChance
2386
2386
end
2387
2387
end
2388
+
ifsource.FacebreakerItemDamageandactiveSkill.activeEffect.grantedEffect.weaponTypesandactiveSkill.activeEffect.grantedEffect.weaponTypes["One Hand Mace"] then
Copy file name to clipboardExpand all lines: src/Modules/ModParser.lua
+6-7Lines changed: 6 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -5879,20 +5879,19 @@ local specialModList = {
5879
5879
mod("CritChance", "BASE", tonumber(critNum), nil, ModFlag.Attack, { type = "Condition", var = "HollowPalm" }, { type = "PerStat", stat = "EnergyShieldOnAllArmourItems", div = tonumber(esNum) }),
5880
5880
} end,
5881
5881
-- Facebreaker (and its Fire variant): the gloves grant base weapon damage that empty-handed One Hand Mace attacks use.
5882
-
-- The base damage is modelled as flat damage on Unarmed attacks; the empty-hand "use a One Hand Mace" part is handled in CalcSetup.
5882
+
-- The base damage is stored separately and copied onto the attack source when a compatible skill uses the item damage.
5883
5883
-- "Boss's Face Broken" is a stacking counter exposed through the Configuration tab (Multiplier:BossFaceBroken).
5884
5884
["has (%d+) to (%d+) (%a+) damage, %+(%d+) to %+(%d+) per boss's face broken"] = function(min, _, max, dmgType, perMin, perMax)
5885
5885
local dmg = dmgType:sub(1, 1):upper() .. dmgType:sub(2)
mod("Facebreaker"..dmg.."Min", "BASE", tonumber(perMin), { type = "Multiplier", var = "BossFaceBroken" }),
5890
+
mod("Facebreaker"..dmg.."Max", "BASE", tonumber(perMax), { type = "Multiplier", var = "BossFaceBroken" }),
5891
5891
}
5892
5892
end,
5893
5893
["can attack as though using a one handed mace while both of your hand slots are empty"] = { flag("CanAttackAsOneHandMaceUnarmed") },
5894
-
-- The item's damage (parsed above) is already applied to Unarmed attacks, so this line just needs to be recognised (no extra effect)
5895
-
["unarmed attacks that would use an equipped one hand mace's damage use this item's damage"] = { },
5894
+
["unarmed attacks that would use an equipped one hand mace's damage use this item's damage"] = { flag("UseFacebreakerItemDamage") },
5896
5895
["storm and plant spells: deal (%d+)%% more damage cost (%d+)%% less have (%d+)%% less duration"] = function(damageNum, _, costNum, durationNum) return { -- Wildsurge Incantation
0 commit comments