Skip to content

Commit 2726305

Browse files
danceLocalIdentity
andauthored
added support for Heavy Armour (#331) (#687)
Co-authored-by: LocalIdentity <31035929+LocalIdentity@users.noreply.github.com>
1 parent bb5f882 commit 2726305

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/Data/ModCache.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ c["100% of Elemental Damage Converted to Chaos Damage"]={{[1]={flags=0,keywordFl
889889
c["100% of Fire Damage Converted to Cold Damage"]={{[1]={flags=0,keywordFlags=0,name="FireDamageConvertToCold",type="BASE",value=100}},nil}
890890
c["100% of Fire Damage from Hits taken as Physical Damage"]={{[1]={flags=0,keywordFlags=0,name="FireDamageFromHitsTakenAsPhysical",type="BASE",value=100}},nil}
891891
c["100% of Lightning Damage Converted to Cold Damage"]={{[1]={flags=0,keywordFlags=0,name="LightningDamageConvertToCold",type="BASE",value=100}},nil}
892-
c["100% of Strength Requirements from Boots, Gloves and Helmets also added to Armour"]={{[1]={flags=0,keywordFlags=0,name="StrRequirement",type="BASE",value=100}}," s from Boots, Gloves and Helmets also added to Armour "}
892+
c["100% of Strength Requirements from Boots, Gloves and Helmets also added to Armour"]={{[1]={[1]={percent=100,stat="StrRequirementsOnBoots",type="PerStat"},flags=0,keywordFlags=0,name="Armour",type="BASE",value=1},[2]={[1]={percent=100,stat="StrRequirementsOnGloves",type="PerStat"},flags=0,keywordFlags=0,name="Armour",type="BASE",value=1},[3]={[1]={percent=100,stat="StrRequirementsOnHelmet",type="PerStat"},flags=0,keywordFlags=0,name="Armour",type="BASE",value=1}},nil}
893893
c["11% increased Chaos Damage"]={{[1]={flags=0,keywordFlags=0,name="ChaosDamage",type="INC",value=11}},nil}
894894
c["11% increased Rarity of Items found"]={{[1]={flags=0,keywordFlags=0,name="LootRarity",type="INC",value=11}},nil}
895895
c["12 Life Regeneration per second"]={{[1]={flags=0,keywordFlags=0,name="LifeRegen",type="BASE",value=12}},nil}

src/Modules/CalcPerform.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,6 +1432,7 @@ function calcs.perform(env, skipEHP)
14321432
else
14331433
req = m_floor(reqSource[attr] * reqMultItem)
14341434
end
1435+
output[attr.."RequirementsOn"..reqSource.sourceSlot] = req;
14351436
elseif reqSource.source == "Gem" then
14361437
req = m_floor(reqSource[attr] * reqMultGem)
14371438
end

src/Modules/ModParser.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,6 +2272,11 @@ local specialModList = {
22722272
mod("ArmourDefense", "MAX", math.min(math.floor(numChance / 100), 1.0) * 100, "Armour Mastery: Min Calc", { type = "Condition", var = "ArmourMax", neg = true }, { type = "Condition", var = "ArmourAvg", neg = true }, { type = "Multiplier", var = "BeenHitRecently", limit = cap / numChance }),
22732273
} end,
22742274
["you can wield two%-handed axes, maces and swords in one hand"] = { flag("GiantsBlood") },
2275+
["(%d+)%% of strength requirements from boots, gloves and helmets also added to armour"] = function(num) return {
2276+
mod("Armour", "BASE", 1, { type = "PerStat", stat = "StrRequirementsOnBoots", percent = num }),
2277+
mod("Armour", "BASE", 1, { type = "PerStat", stat = "StrRequirementsOnGloves", percent = num }),
2278+
mod("Armour", "BASE", 1, { type = "PerStat", stat = "StrRequirementsOnHelmet", percent = num }),
2279+
} end,
22752280
["iron grip"] = function() return {
22762281
mod("Damage", "INC", 1, nil, ModFlag.Spell, { type = "PerStat", stat = "Str", div = 2 } ),
22772282
flag("NoStrBonusToLife") }

0 commit comments

Comments
 (0)