Skip to content

Commit 783274c

Browse files
committed
Implement actual mod parsing for full wording
1 parent 9fdeaea commit 783274c

3 files changed

Lines changed: 6 additions & 18 deletions

File tree

src/Data/ModCache.lua

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4079,7 +4079,7 @@ c["Can Attack as though using a Quarterstaff while both of your hand slots are e
40794079
c["Can Attack as though using a Quarterstaff while both of your hand slots are empty Unarmed Attacks that would use your Quarterstaff's damage gain:"]={nil,"Can Attack as though using a Quarterstaff while both of your hand slots are empty Unarmed Attacks that would use your Quarterstaff's damage gain: "}
40804080
c["Can Attack as though using a Quarterstaff while both of your hand slots are empty Unarmed Attacks that would use your Quarterstaff's damage gain: • Physical damage based on their Skill Level"]={nil,"Can Attack as though using a Quarterstaff while both of your hand slots are empty Unarmed Attacks that would use your Quarterstaff's damage gain: • Physical damage based on their Skill Level "}
40814081
c["Can Attack as though using a Quarterstaff while both of your hand slots are empty Unarmed Attacks that would use your Quarterstaff's damage gain: • Physical damage based on their Skill Level • 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items"]={nil,"Can Attack as though using a Quarterstaff while both of your hand slots are empty Unarmed Attacks that would use your Quarterstaff's damage gain: • Physical damage based on their Skill Level • 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items "}
4082-
c["Can Attack as though using a Quarterstaff while both of your hand slots are empty Unarmed Attacks that would use your Quarterstaff's damage gain: • Physical damage based on their Skill Level • 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items • +0.1% to Critical Hit Chance per 10 Item Energy Shield on Equipped Armour Items"]={nil,"Can Attack as though using a Quarterstaff while both of your hand slots are empty Unarmed Attacks that would use your Quarterstaff's damage gain: • Physical damage based on their Skill Level • 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items • +0.1% to Critical Hit Chance per 10 Item Energy Shield on Equipped Armour Items "}
4082+
c["Can Attack as though using a Quarterstaff while both of your hand slots are empty Unarmed Attacks that would use your Quarterstaff's damage gain: • Physical damage based on their Skill Level • 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items • +0.1% to Critical Hit Chance per 10 Item Energy Shield on Equipped Armour Items"]={{[1]={[1]={type="Condition",var="HollowPalm"},[2]={div=25,stat="EvasionOnAllArmourItems",type="PerStat"},flags=1,keywordFlags=0,name="Speed",type="MORE",value=1},[2]={[1]={type="Condition",var="HollowPalm"},[2]={div="10",stat="EnergyShieldOnAllArmourItems",type="PerStat"},flags=1,keywordFlags=0,name="CritChance",type="BASE",value=0.1}},nil}
40834083
c["Can Block damage from all Hits"]={nil,"Can Block damage from all Hits "}
40844084
c["Can Block damage from all Hits Cannot use Shield Skills"]={nil,"Can Block damage from all Hits Cannot use Shield Skills "}
40854085
c["Can Evade all Hits if you have not been Hit Recently"]={nil,"Can Evade all Hits if you have not been Hit Recently "}
@@ -5344,10 +5344,6 @@ c["Triggered Spells deal 40% increased Spell Damage"]={{[1]={[1]={skillType=37,t
53445344
c["Triple Attribute requirements of Martial Weapons"]={{[1]={flags=0,keywordFlags=0,name="GlobalWeaponAttributeRequirements",type="MORE",value=200}},nil}
53455345
c["Unaffected by Chill during Dodge Roll"]={nil,"Unaffected by Chill during Dodge Roll "}
53465346
c["Unaffected by Chill while Leeching Mana"]={{[1]={[1]={type="Condition",var="LeechingMana"},flags=0,keywordFlags=0,name="SelfChillEffect",type="MORE",value=-100}},nil}
5347-
c["Unarmed Attacks that would use your Quarterstaff's damage gain:"]={nil,"Unarmed Attacks that would use your Quarterstaff's damage gain: "}
5348-
c["Unarmed Attacks that would use your Quarterstaff's damage gain: • Physical damage based on their Skill Level"]={nil,"Unarmed Attacks that would use your Quarterstaff's damage gain: • Physical damage based on their Skill Level "}
5349-
c["Unarmed Attacks that would use your Quarterstaff's damage gain: • Physical damage based on their Skill Level • 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items"]={nil,"Unarmed Attacks that would use your Quarterstaff's damage gain: • Physical damage based on their Skill Level • 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items "}
5350-
c["Unarmed Attacks that would use your Quarterstaff's damage gain: • Physical damage based on their Skill Level • 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items • +0.1% to Critical Hit Chance per 10 Item Energy Shield on Equipped Armour Items"]={nil,"Unarmed Attacks that would use your Quarterstaff's damage gain: • Physical damage based on their Skill Level • 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items • +0.1% to Critical Hit Chance per 10 Item Energy Shield on Equipped Armour Items "}
53515347
c["Undead Minions have 20% reduced Reservation"]={{[1]={[1]={skillType=127,type="SkillType"},flags=0,keywordFlags=0,name="Reserved",type="INC",value=-20}},nil}
53525348
c["Unlimited number of Summoned Totems"]={nil,"Unlimited number of Summoned Totems "}
53535349
c["Unlimited number of Summoned Totems Totems reserve 75 Spirit each"]={nil,"Unlimited number of Summoned Totems Totems reserve 75 Spirit each "}
@@ -5488,12 +5484,6 @@ c["your Ailments on them"]={nil,"your Ailments on them "}
54885484
c["your Ailments on them 30% reduced Duration of Ignite, Shock and Chill on Enemies"]={nil,"your Ailments on them 30% reduced Duration of Ignite, Shock and Chill on Enemies "}
54895485
c["your Ailments on them your Ailments on them"]={nil,"your Ailments on them your Ailments on them "}
54905486
c["your maximum Life as Physical damage per second"]={nil,"your maximum Life as Physical damage per second "}
5491-
c["• +0.1% to Critical Hit Chance per 10 Item Energy Shield on Equipped Armour Items"]={nil,"• +0.1% to Critical Hit Chance per 10 Item Energy Shield on Equipped Armour Items "}
5492-
c["• 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items"]={nil,"• 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items "}
5493-
c["• 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items • +0.1% to Critical Hit Chance per 10 Item Energy Shield on Equipped Armour Items"]={nil,"• 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items • +0.1% to Critical Hit Chance per 10 Item Energy Shield on Equipped Armour Items "}
5494-
c["• Physical damage based on their Skill Level"]={nil,"• Physical damage based on their Skill Level "}
5495-
c["• Physical damage based on their Skill Level • 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items"]={nil,"• Physical damage based on their Skill Level • 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items "}
5496-
c["• Physical damage based on their Skill Level • 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items • +0.1% to Critical Hit Chance per 10 Item Energy Shield on Equipped Armour Items"]={nil,"• Physical damage based on their Skill Level • 1% more Attack Speed per 25 Item Evasion Rating on Equipped Armour Items • +0.1% to Critical Hit Chance per 10 Item Energy Shield on Equipped Armour Items "}
54975487
c["•Blue: Skills have 30% less cost"]={nil,"•Blue: Skills have 30% less cost "}
54985488
c["•Blue: Skills have 30% less cost •Green: 40% less Movement Speed Penalty from using Skills while Moving"]={nil,"•Blue: Skills have 30% less cost •Green: 40% less Movement Speed Penalty from using Skills while Moving "}
54995489
c["•Green: 40% less Movement Speed Penalty from using Skills while Moving"]={nil,"•Green: 40% less Movement Speed Penalty from using Skills while Moving "}

src/Modules/CalcActiveSkill.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,6 @@ function calcs.buildActiveSkillModList(env, activeSkill)
691691
activeEffect.srcInstance.skillStageCount = nil
692692
end
693693

694-
-- TODO If the table stats are present on each gem, this can be handled via SkillStatMap instead
695694
-- Hollow Palm Technique added phys for skills that would use Quarterstaff
696695
if activeSkill.actor.modDB.conditions.HollowPalm and activeEffect.grantedEffect.weaponTypes and activeEffect.grantedEffect.weaponTypes.Staff then
697696
local gemLevel = activeEffect.level

src/Modules/ModParser.lua

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5332,12 +5332,11 @@ local specialModList = {
53325332
flag("Condition:OnConsecratedGround", { type = "Condition", var = "StrHighestAttribute" }, { type = "Condition", var = "Stationary" }),
53335333
},
53345334
["you count as dual wielding while you are unencumbered"] = { flag("Condition:DualWielding", { type = "Condition", var = "Unencumbered" }) },
5335-
-- New Hollow Palm Technique
5336-
-- TODO Update with actual wording and mods
5337-
["can attack as though using a quarterstaff while both of your hands are empty"] = {
5338-
-- PLACEHOLDER for additionally required mods
5339-
},
5340-
5335+
["can attack as though using a quarterstaff while both of your hand slots are empty unarmed attacks that would use your quarterstaff's damage gain: • physical damage based on their skill level • (%d+)%% more attack speed per (%d+) item evasion rating on equipped armour items • %+(%d+%.?%d*)%% to critical hit chance per (%d+) item energy shield on equipped armour items"] = function(asNum, _, evNum, critNum, esNum) return
5336+
{ -- New Hollow Palm Technique
5337+
mod("Speed", "MORE", tonumber(asNum), nil, ModFlag.Attack, { type = "Condition", var = "HollowPalm" }, { type = "PerStat", stat = "EvasionOnAllArmourItems", div = tonumber(evNum) }),
5338+
mod("CritChance", "BASE", tonumber(critNum), nil, ModFlag.Attack, { type = "Condition", var = "HollowPalm" }, { type = "PerStat", stat = "EnergyShieldOnAllArmourItems", div = (esNum) }),
5339+
} end,
53415340
["dual wielding does not inherently grant chance to block attack damage"] = { flag("Condition:NoInherentBlock") },
53425341
["inherent attack speed bonus from dual wielding is doubled while wielding two claws"] = {
53435342
flag("Condition:DoubledInherentDualWieldingSpeed", { type = "Condition", var = "DualWieldingClaws" })

0 commit comments

Comments
 (0)