Skip to content

Commit

Permalink
Goddess Unleashed Wording Update, Support enemies x by you have, blee…
Browse files Browse the repository at this point in the history
…ed/poison on self, used mana in last 10 seconds and distanceRamp updates (PathOfBuildingCommunity#5655)

* Update various things

The Goddess Unleashed Wording Update
Add support for enemies ***** by you have
Add support for poison / bleed parsing on self
Add parsing support for "if you've used a mana flask in the past 10 seconds"

* Fix forgetting to update to mana flask
  • Loading branch information
QuickStick123 authored and Dullson committed Dec 6, 2023
1 parent 078f93d commit 9ab79a7
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Data/Uniques/sword.lua
Original file line number Diff line number Diff line change
@@ -116,7 +116,7 @@ Adds (3-6) to (33-66) Physical Damage
Gain (66-99)% of Sword Physical Damage as Extra Fire Damage
Gain Her Blessing for 3 seconds when you Ignite an Enemy
33% chance to Blind nearby Enemies when gaining Her Blessing
Cannot be Frozen, Chilled or Ignited with Her Blessing
100% chance to Avoid being Ignited, Chilled or Frozen with Her Blessing
20% increased Attack and Movement Speed with Her Blessing
]],[[
Grelwood Shank
4 changes: 2 additions & 2 deletions src/Modules/CalcOffence.lua
Original file line number Diff line number Diff line change
@@ -758,10 +758,10 @@ function calcs.offence(env, actor, activeSkill)
end
if skillFlags.projectile then
if skillModList:Flag(nil, "PointBlank") then
skillModList:NewMod("Damage", "MORE", 30, "Point Blank", bor(ModFlag.Attack, ModFlag.Projectile), { type = "DistanceRamp", ramp = {{10,1},{35,0},{150,-1}} })
skillModList:NewMod("Damage", "MORE", 30, "Point Blank", bor(ModFlag.Attack, ModFlag.Projectile), { type = "DistanceRamp", ramp = {{10,1},{35,0},{120,-1}} })
end
if skillModList:Flag(nil, "FarShot") then
skillModList:NewMod("Damage", "MORE", 100, "Far Shot", bor(ModFlag.Attack, ModFlag.Projectile), { type = "DistanceRamp", ramp = {{10, -0.2}, {35, 0}, {70, 0.6}} })
skillModList:NewMod("Damage", "MORE", 100, "Far Shot", bor(ModFlag.Attack, ModFlag.Projectile), { type = "DistanceRamp", ramp = {{10, -0.2}, {25, 0}, {70, 0.6}} })
end
if skillModList:Flag(skillCfg, "NoAdditionalProjectiles") then
output.ProjectileCount = 1
6 changes: 6 additions & 0 deletions src/Modules/ModParser.lua
Original file line number Diff line number Diff line change
@@ -650,13 +650,15 @@ local modNameList = {
["to cause poison"] = "PoisonChance",
["to poison on hit"] = "PoisonChance",
["poison duration"] = { "EnemyPoisonDuration" },
["poison duration on you"] = "SelfPoisonDuration",
["duration of poisons you inflict"] = { "EnemyPoisonDuration" },
["to cause bleeding"] = "BleedChance",
["to cause bleeding on hit"] = "BleedChance",
["to inflict bleeding"] = "BleedChance",
["to inflict bleeding on hit"] = "BleedChance",
["bleed duration"] = { "EnemyBleedDuration" },
["bleeding duration"] = { "EnemyBleedDuration" },
["bleed duration on you"] = "SelfBleedDuration",
-- Misc modifiers
["movement speed"] = "MovementSpeed",
["attack, cast and movement speed"] = { "Speed", "MovementSpeed" },
@@ -1013,6 +1015,9 @@ local preFlagList = {
["^enemies (%a+) by "] = function(cond)
return { tag = { type = "Condition", var = cond:gsub("^%a", string.upper) }, applyToEnemy = true }
end,
["^enemies (%a+) by you have "] = function(cond)
return { tag = { type = "Condition", var = cond:gsub("^%a", string.upper) }, applyToEnemy = true }
end,
["^hits against enemies (%a+) by you have "] = function(cond)
return { tag = { type = "ActorCondition", actor = "enemy", var = cond:gsub("^%a", string.upper) } }
end,
@@ -1353,6 +1358,7 @@ local modTagList = {
["during effect of any mana flask"] = { tag = { type = "Condition", var = "UsingManaFlask" } },
["during effect of any life flask"] = { tag = { type = "Condition", var = "UsingLifeFlask" } },
["if you've used a life flask in the past 10 seconds"] = { tag = { type = "Condition", var = "UsingLifeFlask" } },
["if you've used a mana flask in the past 10 seconds"] = { tag = { type = "Condition", var = "UsingManaFlask" } },
["during effect of any life or mana flask"] = { tag = { type = "Condition", varList = { "UsingManaFlask", "UsingLifeFlask" } } },
["while on consecrated ground"] = { tag = { type = "Condition", var = "OnConsecratedGround" } },
["on burning ground"] = { tag = { type = "Condition", var = "OnBurningGround" } },

0 comments on commit 9ab79a7

Please sign in to comment.