Skip to content

Commit 097f889

Browse files
committed
Add partial support for Attrition skill gem
1 parent c5a270b commit 097f889

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

src/Data/Skills/act_str.lua

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,19 @@ skills["AttritionPlayer"] = {
762762
label = "Attrition",
763763
incrementalEffectiveness = 0.054999999701977,
764764
statDescriptionScope = "attrition",
765+
statMap = {
766+
["skill_attrition_presence_max_seconds"] = {
767+
mod("Multiplier:AttritionMaxDamage", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Buff"}),
768+
},
769+
["skill_attrition_hit_damage_+%_final_vs_rare_or_unique_enemy_per_second_ever_in_presence_up_to_max"] = {
770+
mod("Damage", "MORE", nil, 0, KeywordFlag.Hit, { type = "GlobalEffect", effectType = "Buff"}, { type = "Multiplier", var = "EnemyPresenceSeconds", actor = "enemy", limitVar = "AttritionMaxDamage", div = 2, limitTotal = true }, { type = "ActorCondition", actor = "enemy", var = "RareOrUnique" })
771+
},
772+
["skill_attrition_culling_strike_at_x_or_more_stacks"] = {
773+
mod("Multiplier:AttritionCullSeconds", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Buff"}),
774+
mod("CullPercent", "MAX", 10, 0, 0, { type = "GlobalEffect", effectType = "Buff"}, { type = "MultiplierThreshold", var = "EnemyPresenceSeconds", actor = "enemy", thresholdVar = "AttritionCullSeconds"}, { type = "ActorCondition", actor = "enemy", var = "RareOrUnique" }),
775+
value = 10,
776+
},
777+
},
765778
baseFlags = {
766779
},
767780
constantStats = {

src/Export/Skills/act_str.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,19 @@ local skills, mod, flag, skill = ...
4141
#skill AttritionPlayer
4242
#set AttritionPlayer
4343
#flags
44+
statMap = {
45+
["skill_attrition_presence_max_seconds"] = {
46+
mod("Multiplier:AttritionMaxDamage", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Buff"}),
47+
},
48+
["skill_attrition_hit_damage_+%_final_vs_rare_or_unique_enemy_per_second_ever_in_presence_up_to_max"] = {
49+
mod("Damage", "MORE", nil, 0, KeywordFlag.Hit, { type = "GlobalEffect", effectType = "Buff"}, { type = "Multiplier", var = "EnemyPresenceSeconds", actor = "enemy", limitVar = "AttritionMaxDamage", div = 2, limitTotal = true }, { type = "ActorCondition", actor = "enemy", var = "RareOrUnique" })
50+
},
51+
["skill_attrition_culling_strike_at_x_or_more_stacks"] = {
52+
mod("Multiplier:AttritionCullSeconds", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Buff"}),
53+
mod("CullPercent", "MAX", 10, 0, 0, { type = "GlobalEffect", effectType = "Buff"}, { type = "MultiplierThreshold", var = "EnemyPresenceSeconds", actor = "enemy", thresholdVar = "AttritionCullSeconds"}, { type = "ActorCondition", actor = "enemy", var = "RareOrUnique" }),
54+
value = 10,
55+
},
56+
},
4457
#mods
4558
#skillEnd
4659

0 commit comments

Comments
 (0)