Skip to content

Commit 6f8f02e

Browse files
author
David Medgyesy
committed
Parse the minimum Chill from hits as ChillMinimum
"Chills from your Hits always reduce Action Speed by at least X%" was parsed as ChillBase, a source of Chill, instead of a floor like the matching Shock modifier. Several such modifiers now add up as the Shock ones do.
1 parent bfee69d commit 6f8f02e

3 files changed

Lines changed: 23 additions & 4 deletions

File tree

‎spec/System/TestAilments_spec.lua‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,23 @@ describe("TestAilments", function()
116116

117117
assert.are.equals(19, build.calcsTab.mainOutput.CurrentShock)
118118
end)
119+
120+
it("parses the hit chill floor as ChillMinimum, like the shock floor", function()
121+
local line = "Chills from your Hits always reduce Action Speed by at least 10%"
122+
local mods = modLib.parseMod(line)
123+
assert.are.equals("ChillMinimum", mods[1].name)
124+
assert.are.equals(10, mods[1].value)
125+
126+
build.skillsTab:PasteSocketGroup("Slot: Weapon 1\nFreezing Pulse 20/0 1\n")
127+
build.configTab.input.customMods = line
128+
rebuild()
129+
130+
assert.are.equals(10, build.calcsTab.mainOutput.CurrentChill)
131+
132+
-- Floors from several sources add up, as they do for Shock
133+
build.configTab.input.customMods = line .. "\nChills from your Hits always reduce Action Speed by at least 6%"
134+
rebuild()
135+
136+
assert.are.equals(16, build.calcsTab.mainOutput.CurrentChill)
137+
end)
119138
end)

‎src/Data/ModCache.lua‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15087,9 +15087,9 @@ c["Chill Enemy for 1 second when Hit, reducing their Action Speed by 30%"]={nil,
1508715087
c["Chill Enemy for 1 second when Hit, reducing their Action Speed by 30% Blind Chilled Enemies on Hit"]={nil,"Chill Enemy for 1 second when Hit, reducing their Action Speed by 30% Blind Chilled Enemies on Hit "}
1508815088
c["Chill Enemy for 4 seconds when Hit, reducing their Action Speed by 30%"]={nil,"Chill Enemy for 4 seconds when Hit, reducing their Action Speed by 30% "}
1508915089
c["Chill Enemy for 5 seconds when Hit, reducing their Action Speed by 30%"]={nil,"Chill Enemy for 5 seconds when Hit, reducing their Action Speed by 30% "}
15090-
c["Chills from your Hits always reduce Action Speed by at least 10%"]={{[1]={flags=0,keywordFlags=0,name="ChillBase",type="BASE",value=10}},nil}
15091-
c["Chills from your Hits always reduce Action Speed by at least 4%"]={{[1]={flags=0,keywordFlags=0,name="ChillBase",type="BASE",value=4}},nil}
15092-
c["Chills from your Hits always reduce Action Speed by at least 6%"]={{[1]={flags=0,keywordFlags=0,name="ChillBase",type="BASE",value=6}},nil}
15090+
c["Chills from your Hits always reduce Action Speed by at least 10%"]={{[1]={flags=0,keywordFlags=0,name="ChillMinimum",type="BASE",value=10}},nil}
15091+
c["Chills from your Hits always reduce Action Speed by at least 4%"]={{[1]={flags=0,keywordFlags=0,name="ChillMinimum",type="BASE",value=4}},nil}
15092+
c["Chills from your Hits always reduce Action Speed by at least 6%"]={{[1]={flags=0,keywordFlags=0,name="ChillMinimum",type="BASE",value=6}},nil}
1509315093
c["Clarity has no Reservation"]={{[1]={[1]={skillId="Clarity",type="SkillId"},[2]={neg=true,skillType=108,type="SkillType"},flags=0,keywordFlags=0,name="SkillData",type="LIST",value={key="manaReservationFlat",value=0}},[2]={[1]={skillId="Clarity",type="SkillId"},[2]={neg=true,skillType=108,type="SkillType"},flags=0,keywordFlags=0,name="SkillData",type="LIST",value={key="lifeReservationFlat",value=0}},[3]={[1]={skillId="Clarity",type="SkillId"},[2]={neg=true,skillType=108,type="SkillType"},flags=0,keywordFlags=0,name="SkillData",type="LIST",value={key="manaReservationPercent",value=0}},[4]={[1]={skillId="Clarity",type="SkillId"},[2]={neg=true,skillType=108,type="SkillType"},flags=0,keywordFlags=0,name="SkillData",type="LIST",value={key="lifeReservationPercent",value=0}}},nil}
1509415094
c["Claw Attacks deal 12% increased Damage with Hits and Ailments"]={{[1]={flags=262144,keywordFlags=786432,name="Damage",type="INC",value=12}},nil}
1509515095
c["Claw Attacks deal 15% increased Damage with Ailments"]={{[1]={flags=264192,keywordFlags=0,name="Damage",type="INC",value=15}},nil}

‎src/Modules/ModParser.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2820,7 +2820,7 @@ local specialModList = {
28202820
},
28212821
["(%d+)%% increased golem damage per summoned golem"] = function(num) return { mod("MinionModifier", "LIST", { mod = mod("Damage", "INC", num) }, { type = "SkillType", skillType = SkillType.Golem }, { type = "PerStat", stat = "ActiveGolemLimit" }) } end,
28222822
["shocks from your hits always increase damage taken by at least (%d+)%%"] = function(num) return { mod("ShockMinimum", "BASE", num) } end,
2823-
["chills from your hits always reduce action speed by at least (%d+)%%"] = function(num) return { mod("ChillBase", "BASE", num) } end,
2823+
["chills from your hits always reduce action speed by at least (%d+)%%"] = function(num) return { mod("ChillMinimum", "BASE", num) } end,
28242824
["(%d+)%% more damage with ignites you inflict with hits for which the highest damage type is fire"] = function(num) return {
28252825
mod("Damage", "MORE", num, nil, 0, KeywordFlag.Ignite, { type = "Condition", var = "FireIsHighestDamageType" }) ,
28262826
flag("ChecksHighestDamage"),

0 commit comments

Comments
 (0)