Skip to content

Commit e76a150

Browse files
authored
Add support for various gem mods (#924)
1 parent 1829002 commit e76a150

File tree

8 files changed

+78
-0
lines changed

8 files changed

+78
-0
lines changed

src/Data/Skills/act_int.lua

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ skills["ArcPlayer"] = {
6969
["arc_damage_+%_final_for_each_remaining_chain"] = {
7070
mod("Damage", "MORE", nil, 0, 0, { type = "PerStat", stat = "ChainRemaining" }),
7171
},
72+
["quality_display_arc_is_gem"] = {
73+
-- Display only
74+
},
7275
},
7376
baseFlags = {
7477
spell = true,
@@ -427,6 +430,12 @@ skills["BallLightningPlayer"] = {
427430
incrementalEffectiveness = 0.14000000059605,
428431
damageIncrementalEffectiveness = 0.0054999999701977,
429432
statDescriptionScope = "ball_lightning",
433+
statMap = {
434+
["ball_lightning_base_hit_frequency_ms"] = {
435+
skill("hitTimeOverride", nil),
436+
div = 1000,
437+
},
438+
},
430439
baseFlags = {
431440
spell = true,
432441
area = true,
@@ -8836,6 +8845,15 @@ skills["GalvanicFieldPlayer"] = {
88368845
incrementalEffectiveness = 0.14000000059605,
88378846
damageIncrementalEffectiveness = 0.0082000000402331,
88388847
statDescriptionScope = "skill_stat_descriptions",
8848+
statMap = {
8849+
["galvanic_field_retargeting_delay_ms"] = {
8850+
skill("hitTimeOverride", nil),
8851+
div = 1000,
8852+
},
8853+
["base_chance_to_shock_%_from_skill"] = {
8854+
mod("EnemyShockChance", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Aura", effectName = "Galvanic Field" }),
8855+
},
8856+
},
88398857
baseFlags = {
88408858
area = true,
88418859
duration = true,

src/Data/Skills/sup_dex.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2499,6 +2499,14 @@ skills["SupportReachPlayer"] = {
24992499
label = "Reach",
25002500
incrementalEffectiveness = 0.054999999701977,
25012501
statDescriptionScope = "gem_stat_descriptions",
2502+
statMap = {
2503+
["support_reach_accuracy_within_2m_+%_final"] = {
2504+
mod("Accuracy", "MORE", nil, 0, 0, { type = "MultiplierThreshold", var = "enemyDistance", threshold = 20, upper = true } ),
2505+
},
2506+
["support_reach_area_of_effect_+%_final"] = {
2507+
mod("AreaOfEffect", "MORE", nil),
2508+
},
2509+
},
25022510
baseFlags = {
25032511
},
25042512
constantStats = {

src/Data/Skills/sup_int.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,14 @@ skills["SupportCommandment"] = {
945945
label = "Commandment",
946946
incrementalEffectiveness = 0.054999999701977,
947947
statDescriptionScope = "gem_stat_descriptions",
948+
statMap = {
949+
["support_minion_damage_with_non_command_skills_+%_final"] = {
950+
mod("MinionModifier", "LIST", { mod = mod("Damage", "MORE", nil, 0, 0, {type = "Condition", var = "CommandableSkill", neg = true}) }),
951+
},
952+
["minion_command_skill_cooldown_speed_+%"] = {
953+
mod("MinionModifier", "LIST", { mod = mod("CooldownRecovery", "INC", nil, 0, 0, {type = "Condition", var = "CommandableSkill"}) }),
954+
},
955+
},
948956
baseFlags = {
949957
},
950958
constantStats = {

src/Data/Skills/sup_str.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3203,6 +3203,11 @@ skills["SupportTremorsPlayer"] = {
32033203
label = "Tremors",
32043204
incrementalEffectiveness = 0.054999999701977,
32053205
statDescriptionScope = "gem_stat_descriptions",
3206+
statMap = {
3207+
["support_unstable_earth_damage_+%_final"] = {
3208+
mod("Damage", "MORE", nil),
3209+
},
3210+
},
32063211
baseFlags = {
32073212
},
32083213
constantStats = {

src/Export/Skills/act_int.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ statMap = {
1212
["arc_damage_+%_final_for_each_remaining_chain"] = {
1313
mod("Damage", "MORE", nil, 0, 0, { type = "PerStat", stat = "ChainRemaining" }),
1414
},
15+
["quality_display_arc_is_gem"] = {
16+
-- Display only
17+
},
1518
},
1619
#mods
1720
#skillEnd
@@ -40,6 +43,12 @@ statMap = {
4043
#skill BallLightningPlayer
4144
#set BallLightningPlayer
4245
#flags spell area projectile
46+
statMap = {
47+
["ball_lightning_base_hit_frequency_ms"] = {
48+
skill("hitTimeOverride", nil),
49+
div = 1000,
50+
},
51+
},
4352
#mods
4453
#skillEnd
4554

@@ -553,6 +562,15 @@ statMap = {
553562
#skill GalvanicFieldPlayer
554563
#set GalvanicFieldPlayer
555564
#flags area duration chaining
565+
statMap = {
566+
["galvanic_field_retargeting_delay_ms"] = {
567+
skill("hitTimeOverride", nil),
568+
div = 1000,
569+
},
570+
["base_chance_to_shock_%_from_skill"] = {
571+
mod("EnemyShockChance", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Aura", effectName = "Galvanic Field" }),
572+
},
573+
},
556574
#mods
557575
#skillEnd
558576

src/Export/Skills/sup_dex.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,14 @@ statMap = {
539539

540540
#skill SupportReachPlayer
541541
#set SupportReachPlayer
542+
statMap = {
543+
["support_reach_accuracy_within_2m_+%_final"] = {
544+
mod("Accuracy", "MORE", nil, 0, 0, { type = "MultiplierThreshold", var = "enemyDistance", threshold = 20, upper = true } ),
545+
},
546+
["support_reach_area_of_effect_+%_final"] = {
547+
mod("AreaOfEffect", "MORE", nil),
548+
},
549+
},
542550
#mods
543551
#skillEnd
544552

src/Export/Skills/sup_int.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,14 @@ statMap = {
189189

190190
#skill SupportCommandment
191191
#set SupportCommandment
192+
statMap = {
193+
["support_minion_damage_with_non_command_skills_+%_final"] = {
194+
mod("MinionModifier", "LIST", { mod = mod("Damage", "MORE", nil, 0, 0, {type = "Condition", var = "CommandableSkill", neg = true}) }),
195+
},
196+
["minion_command_skill_cooldown_speed_+%"] = {
197+
mod("MinionModifier", "LIST", { mod = mod("CooldownRecovery", "INC", nil, 0, 0, {type = "Condition", var = "CommandableSkill"}) }),
198+
},
199+
},
192200
#mods
193201
#skillEnd
194202

src/Export/Skills/sup_str.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,11 @@ statMap = {
768768

769769
#skill SupportTremorsPlayer
770770
#set SupportTremorsPlayer
771+
statMap = {
772+
["support_unstable_earth_damage_+%_final"] = {
773+
mod("Damage", "MORE", nil),
774+
},
775+
},
771776
#mods
772777
#skillEnd
773778

0 commit comments

Comments
 (0)