Skip to content

Commit

Permalink
Add support for Offering skills AoE and Duration mods (#598)
Browse files Browse the repository at this point in the history
* Offering skills AOE and Duration from tree

* removed old poe1 code
  • Loading branch information
Blitz54 authored Jan 27, 2025
1 parent 00391a8 commit 526c782
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/Data/ModCache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2778,9 +2778,9 @@ c["Moving while Bleeding doesn't cause you to take extra damage"]={nil,"Moving w
c["Never deal Critical Hits"]={{[1]={flags=0,keywordFlags=0,name="NeverCrit",type="FLAG",value=true},[2]={flags=0,keywordFlags=0,name="Condition:NeverCrit",type="FLAG",value=true}},nil}
c["No Movement Speed Penalty while Shield is Raised"]={nil,"No Movement Speed Penalty while Shield is Raised "}
c["No Physical Damage"]={{[1]={flags=0,keywordFlags=0,name="WeaponData",type="LIST",value={key="PhysicalMin"}},[2]={flags=0,keywordFlags=0,name="WeaponData",type="LIST",value={key="PhysicalMax"}},[3]={flags=0,keywordFlags=0,name="WeaponData",type="LIST",value={key="PhysicalDPS"}}},nil}
c["Offering Skills have 20% increased Area of Effect"]={nil,"Offering Skills have 20% increased Area of Effect "}
c["Offering Skills have 30% increased Duration"]={{[1]={[1]={skillNameList={[1]="Bone Offering",[2]="Flesh Offering",[3]="Spirit Offering",[4]="Blood Offering"},type="SkillName"},flags=0,keywordFlags=0,name="Duration",type="INC",value=30}},nil}
c["Offering Skills have 30% reduced Duration"]={{[1]={[1]={skillNameList={[1]="Bone Offering",[2]="Flesh Offering",[3]="Spirit Offering",[4]="Blood Offering"},type="SkillName"},flags=0,keywordFlags=0,name="Duration",type="INC",value=-30}},nil}
c["Offering Skills have 20% increased Area of Effect"]={{[1]={[1]={skillType=165,type="SkillType"},flags=0,keywordFlags=0,name="AreaOfEffect",type="INC",value=20}},nil}
c["Offering Skills have 30% increased Duration"]={{[1]={[1]={skillType=165,type="SkillType"},flags=0,keywordFlags=0,name="Duration",type="INC",value=30}},nil}
c["Offering Skills have 30% reduced Duration"]={{[1]={[1]={skillType=165,type="SkillType"},flags=0,keywordFlags=0,name="Duration",type="INC",value=-30}},nil}
c["Offerings have 15% increased Maximum Life"]={nil,"Offerings have 15% increased Maximum Life "}
c["Offerings have 30% increased Maximum Life"]={nil,"Offerings have 30% increased Maximum Life "}
c["Offerings have 30% increased Maximum Life Recover 3% of Life when you create an Offering"]={nil,"Offerings have 30% increased Maximum Life Recover 3% of Life when you create an Offering "}
Expand Down
7 changes: 1 addition & 6 deletions src/Modules/ModParser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1133,6 +1133,7 @@ local preFlagList = {
["^attack skills [hd][ae][va][el] "] = { keywordFlags = KeywordFlag.Attack },
["^spells [hd][ae][va][el] a? ?"] = { flags = ModFlag.Spell },
["^spell skills [hd][ae][va][el] "] = { keywordFlags = KeywordFlag.Spell },
["^offering skills [hd][ae][va][el] "] = { tag = { type = "SkillType", skillType = SkillType.Offering } },
["^projectile attack skills [hd][ae][va][el] "] = { tag = { type = "SkillType", skillType = SkillType.RangedAttack } },
["^projectiles from attacks [hd][ae][va][el] "] = { tag = { type = "SkillType", skillType = SkillType.RangedAttack } },
["^arrows [hd][ae][va][el] "] = { keywordFlags = KeywordFlag.Bow },
Expand Down Expand Up @@ -4955,12 +4956,6 @@ local specialModList = {
["transfiguration of body"] = { flag("TransfigurationOfBody") },
["transfiguration of mind"] = { flag("TransfigurationOfMind") },
["transfiguration of soul"] = { flag("TransfigurationOfSoul") },
["offering skills have (%d+)%% increased duration"] = function(num) return {
mod("Duration", "INC", num, { type = "SkillName", skillNameList = { "Bone Offering", "Flesh Offering", "Spirit Offering", "Blood Offering" } }),
} end,
["offering skills have (%d+)%% reduced duration"] = function(num) return {
mod("Duration", "INC", -num, { type = "SkillName", skillNameList = { "Bone Offering", "Flesh Offering", "Spirit Offering", "Blood Offering" } }),
} end,
["enemies have %-(%d+)%% to total physical damage reduction against your hits"] = function(num) return {
mod("EnemyPhysicalDamageReduction", "BASE", -num),
} end,
Expand Down

0 comments on commit 526c782

Please sign in to comment.