-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
act_int.txt
4146 lines (3916 loc) · 141 KB
/
act_int.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- Path of Building
--
-- Active Intelligence skill gems
-- Skill data (c) Grinding Gear Games
--
local skills, mod, flag, skill = ...
#skill Arc
#flags spell chaining
statMap = {
["arc_damage_+%_final_for_each_remaining_chain"] = {
mod("Damage", "MORE", nil, 0, bit.bor(KeywordFlag.Hit, KeywordFlag.Ailment), { type = "PerStat", stat = "ChainRemaining" }),
},
},
#mods
#skill ArcAltX
#flags spell chaining
#mods
#skill ArcAltY
#flags spell chaining
statMap = {
["arc_damage_+%_final_for_each_remaining_chain"] = {
mod("Damage", "MORE", nil, 0, bit.bor(KeywordFlag.Hit, KeywordFlag.Ailment), { type = "PerStat", stat = "ChainRemaining" }),
},
},
#mods
#skill VaalArc
#flags spell chaining
statMap = {
["arc_damage_+%_final_for_each_remaining_chain"] = {
mod("Damage", "MORE", nil, 0, bit.bor(KeywordFlag.Hit, KeywordFlag.Ailment), { type = "PerStat", stat = "ChainRemaining" }),
},
},
#baseMod flag("Condition:CanBeLucky", { type = "GlobalEffect", effectType = "Buff" })
#mods
#skill ArcaneCloak
#flags spell duration
statMap = {
["arcane_cloak_damage_absorbed_%"] = {
mod("GuardAbsorbRate", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Guard", unscalable = true }),
},
["arcane_cloak_consume_%_of_mana"] = {
mod("Multiplier:ArcaneCloakConsumedMana", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Guard", unscalable = true }),
div = 100,
},
["arcane_cloak_gain_%_of_consumed_mana_as_lightning_damage"] = {
mod("LightningMin", "BASE", nil, 0, 0, { type = "PercentStat", stat = "ManaUnreserved", percentVar = "ArcaneCloakConsumedMana" }, { type = "GlobalEffect", effectType = "Buff" }),
mod("LightningMax", "BASE", nil, 0, 0, { type = "PercentStat", stat = "ManaUnreserved", percentVar = "ArcaneCloakConsumedMana" }, { type = "GlobalEffect", effectType = "Buff" }),
},
},
#baseMod mod("GuardAbsorbLimit", "BASE", 100, 0, 0, { type = "PercentStat", stat = "ManaUnreserved", percentVar = "ArcaneCloakConsumedMana" }, { type = "GlobalEffect", effectType = "Guard", unscalable = true })
#baseMod mod("Multiplier:ManaSpentRecently", "BASE", 100, 0, 0, { type = "PercentStat", stat = "ManaUnreserved", percentVar = "ArcaneCloakConsumedMana" }, { type = "Condition", var = "ArcaneCloakUsedRecently"}, { type = "GlobalEffect", effectType = "Buff", unscalable = true})
#mods
#skill Automation
#flags spell
statMap = {
["automation_behaviour"] = {
-- Display only
},
},
#mods
#skill SupportAutomation
#mods
#skill BrandSupport
#flags spell duration brand
preDamageFunc = function(activeSkill, output)
activeSkill.skillData.hitTimeOverride = activeSkill.skillData.repeatFrequency / (1 + activeSkill.skillModList:Sum("INC", activeSkill.skillCfg, "Speed", "BrandActivationFrequency") / 100) / activeSkill.skillModList:More(activeSkill.skillCfg, "BrandActivationFrequency")
end,
#mods
#skill SupportBrandSupport
statMap = {
["support_brand_damage_+%_final"] = {
mod("TriggeredDamage", "MORE", nil),
},
["support_brand_area_of_effect_+%_final"] = {
mod("AreaOfEffect", "MORE", nil),
},
["trigger_brand_support_hit_damage_+%_final_vs_branded_enemy"] = {
mod("TriggeredDamage", "MORE", nil, 0, 0, { type = "Condition", var = "TargetingBrandedEnemy"}),
},
},
#baseMod skill("triggeredByBrand", true)
#mods
#skill CreepingFrost
#flags spell area projectile duration
#baseMod skill("dotIsArea", true)
#baseMod skill("radiusLabel", "Projectile Impact:")
#baseMod skill("radiusSecondaryLabel", "DoT Area:")
#mods
#skill ArmageddonBrand
#flags spell area duration brand
preDamageFunc = function(activeSkill, output)
activeSkill.skillData.hitTimeOverride = activeSkill.skillData.repeatFrequency / (1 + activeSkill.skillModList:Sum("INC", activeSkill.skillCfg, "Speed", "BrandActivationFrequency") / 100) / activeSkill.skillModList:More(activeSkill.skillCfg, "BrandActivationFrequency")
end,
statMap = {
["base_skill_show_average_damage_instead_of_dps"] = {
},
},
#baseMod skill("radiusSecondary", 8)
#mods
#skill ArmageddonBrandAltX
#flags spell area duration brand
statMap = {
["base_skill_show_average_damage_instead_of_dps"] = {
},
},
#mods
#skill ArmageddonBrandAltY
#flags spell area duration brand
preDamageFunc = function(activeSkill, output)
activeSkill.skillData.hitTimeOverride = activeSkill.skillData.repeatFrequency / (1 + activeSkill.skillModList:Sum("INC", activeSkill.skillCfg, "Speed", "BrandActivationFrequency") / 100) / activeSkill.skillModList:More(activeSkill.skillCfg, "BrandActivationFrequency")
end,
statMap = {
["base_skill_show_average_damage_instead_of_dps"] = {
},
},
#mods
#skill AssassinsMark
#flags spell curse duration mark
statMap = {
["enemy_additional_critical_strike_multiplier_against_self"] = {
mod("SelfCritMultiplier", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Curse" }),
},
["enemy_additional_critical_strike_chance_against_self"] = {
mod("SelfCritChance", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Curse" }),
div = 100,
},
["life_granted_when_killed"] = {
mod("SelfLifeOnKill", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Curse" }),
},
["mana_granted_when_killed"] = {
mod("SelfManaOnKill", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Curse" }),
},
},
#baseMod skill("debuff", true)
#mods
#skill BallLightning
#flags spell projectile
parts = {
{
name = "One Bolt",
},
{
name = "All Bolts in Range",
}
},
preDamageFunc = function(activeSkill, output, breakdown)
local skillCfg = activeSkill.skillCfg
local skillData = activeSkill.skillData
local skillFlags = activeSkill.skillFlags
local skillModList = activeSkill.skillModList
local t_insert = table.insert
local s_format = string.format
local dpsMultiplier = 0
if activeSkill.skillPart == 1 then
-- Compute DPS changes as if we get exactly 1 strike per ball.
dpsMultiplier = 1
elseif activeSkill.skillPart == 2 then
-- Compute DPS changes accounting for all strikes in range.
-- What's the bolt strike proc rate? Note that the interval is not
-- considered to be a cooldown, so it is unaffected by CDR mods.
local secsPerStrike = skillData.strikeInterval
-- How many total bolt strikes proc per ball, ignoring whether the
-- enemy is in range? We assume that the first strike is at the end
-- of the first interval, based on Kitava self-poison testing (no
-- recorded examples of getting 14 self poison stacks with multiple
-- people testing).
local durationSecs = skillData.duration
local maxStrikes = math.floor(durationSecs / secsPerStrike)
-- How fast does the ball travel?
local baseBallDistPerSec = skillData.projectileSpeed
local incSpeedMult, moreSpeedMult = calcLib.mods(skillModList, skillCfg, "ProjectileSpeed")
local netSpeedMult = incSpeedMult * moreSpeedMult
local ballDistPerSec = baseBallDistPerSec * netSpeedMult
local ballDistPerStrike = ballDistPerSec * secsPerStrike
-- How many times does the ball proc a bolt strike while it is in
-- range of the enemy?
local enemyRadius = 0 -- for now, we will be conservative and assume no enemy radius
local baseStrikeRadius = output.AreaOfEffectRadius
local strikeRadius = baseStrikeRadius
local castDist = 0
if skillCfg.skillDist then
-- Advanced users can specify exactly the standoff distance
-- they'll use against single-target bosses.
castDist = skillCfg.skillDist
elseif skillFlags.triggered then
-- Cyclone is the most common trigger skill, and players who
-- aren't min-maxing their playstyle will tend to just
-- cyclone back and forth across the boss instead of
-- hovering at the optimal range. For simplicity, let's
-- assume they tend to be an average of 1 normal bolt strike
-- radius away as they do this.
castDist = math.floor(baseStrikeRadius / 2)
else
-- Be nice and assume hand-casters are at the optimal
-- distance for normal bolt strikes.
castDist = baseStrikeRadius
end
local firstStrikeIdxThatHits =
math.max(1, -- 1 not 0 here: strike seems to happen at the end of the interval, not start
math.ceil((castDist - strikeRadius) / ballDistPerStrike))
local lastStrikeIdxThatHits = math.floor(math.min(data.misc.ProjectileDistanceCap, castDist + strikeRadius) / ballDistPerStrike)
local numStrikes = math.max(0, math.min(maxStrikes, lastStrikeIdxThatHits + 1 - firstStrikeIdxThatHits))
lastStrikeIdxThatHits = firstStrikeIdxThatHits + numStrikes - 1
dpsMultiplier = numStrikes
if breakdown then
local breakdownHits = {}
t_insert(breakdownHits, s_format("^8Balls travel at^7 %.2f^8 units/sec.", ballDistPerSec))
t_insert(breakdownHits, s_format("^8Lightning bolts strike all nearby enemies every^7 %.2f^8 seconds (^7%.2f^8 strikes/sec).", secsPerStrike, 1 / secsPerStrike))
t_insert(breakdownHits, s_format("^8Balls travel^7 %.2f^8 units between each bolt strike.", ballDistPerStrike))
t_insert(breakdownHits, s_format("^8Assumes balls are cast^7 %d^8 units from the enemy.", castDist))
t_insert(breakdownHits, s_format("^8Balls can strike enemies up to^7 %d^8 units away from themselves.", strikeRadius))
t_insert(breakdownHits, s_format("^8The first strike is at^7 %.2f^8 seconds after it is cast, when the ball is^7 %d^8 units from the cast point.", firstStrikeIdxThatHits * secsPerStrike, firstStrikeIdxThatHits * ballDistPerStrike))
t_insert(breakdownHits, s_format("^8The last strike is at^7 %.2f^8 seconds after it is cast, when the ball is^7 %d^8 units from the cast point.", lastStrikeIdxThatHits * secsPerStrike, lastStrikeIdxThatHits * ballDistPerStrike))
output.NormalHitsPerCast = numStrikes
breakdown.NormalHitsPerCast = breakdownHits
end
end
if dpsMultiplier ~= 1 then
skillData.dpsMultiplier = (skillData.dpsMultiplier or 1) * dpsMultiplier
output.SkillDPSMultiplier = (output.SkillDPSMultiplier or 1) * dpsMultiplier
end
end,
statMap = {
["ball_lightning_projectile_speed_and_hit_frequency_+%_final"] = {
mod("ProjectileSpeed", "MORE", nil)
},
},
#baseMod skill("strikeInterval", 0.15)
#baseMod skill("projectileSpeed", 40)
#baseMod skill("duration", 2)
#baseMod flag("CannotSplit")
#mods
#skill BallLightningAltX
#flags spell projectile
preDamageFunc = function(activeSkill, output, breakdown)
local s_format = string.format
local dpsMultiplier = 1
if activeSkill.skillPart == 2 or activeSkill.skillPart == 3 then
local skillData = activeSkill.skillData
local secsPerStrike = skillData.strikeInterval
local durationSecs = skillData.duration
local numStrikes = math.floor(durationSecs / secsPerStrike)
dpsMultiplier = numStrikes
if dpsMultiplier ~= 1 then
skillData.dpsMultiplier = (skillData.dpsMultiplier or 1) * dpsMultiplier
output.SkillDPSMultiplier = (output.SkillDPSMultiplier or 1) * dpsMultiplier
end
output.NormalHitsPerCast = numStrikes
if breakdown then
breakdown.NormalHitsPerCast = {
s_format("^8Lightning bolts strike all nearby enemies every^7 %.2f^8 seconds (^7%.2f^8 strikes/sec).", secsPerStrike, 1 / secsPerStrike),
s_format("^8Balls lasts for ^7%d^8 seconds for a total of ^7%d^8 strikes.", durationSecs, numStrikes),
}
end
end
end,
parts = {
{
name = "One Bolt",
},
{
name = "Half Bolts Hitting",
},
{
name = "All Bolts Hitting",
},
},
statMap = {
["ball_lightning_projectile_speed_and_hit_frequency_+%_final"] = {
mod("ProjectileSpeed", "MORE", nil)
},
},
#baseMod skill("strikeInterval", 0.3, { type = "SkillPart", skillPart = 2 })
#baseMod skill("strikeInterval", 0.15, { type = "SkillPart", skillPart = 3 })
#baseMod skill("projectileSpeed", 40)
#baseMod skill("duration", 2)
#baseMod flag("CannotSplit")
#mods
#skill BallLightningAltY
#flags spell
preDamageFunc = function(activeSkill, output, breakdown)
local s_format = string.format
local skillData = activeSkill.skillData
local secsPerStrike = skillData.strikeInterval
local durationSecs = skillData.duration
local numStrikes = math.floor(durationSecs / secsPerStrike)
skillData.dpsMultiplier = (skillData.dpsMultiplier or 1) * numStrikes
output.NormalHitsPerCast = numStrikes
output.SkillDPSMultiplier = (output.SkillDPSMultiplier or 1) * numStrikes
if breakdown then
breakdown.NormalHitsPerCast = {
s_format("^8Lightning bolts strike all nearby enemies every^7 %.2f^8 seconds (^7%.2f^8 strikes/sec).", secsPerStrike, 1 / secsPerStrike),
s_format("^8Balls lasts for ^7%d^8 seconds for a total of ^7%d^8 strikes.", durationSecs, numStrikes),
}
end
end,
#baseMod skill("strikeInterval", 0.15)
#baseMod skill("duration", 2)
#mods
#skill Bane
#flags spell duration area
preSkillTypeFunc = function(activeSkill, output)
local curseCount = 0
for _, skill in ipairs(activeSkill.actor.activeSkillList) do
if skill.socketGroup == activeSkill.socketGroup and skill.skillModList:GetCondition("AppliedByBane") then
curseCount = curseCount + 1
if curseCount == output.EnemyCurseLimit then
break
end
end
end
activeSkill.skillModList:NewMod("Multiplier:CurseApplied", "BASE", curseCount, "Base")
end,
statMap = {
["dark_ritual_damage_+%_final_per_curse_applied"] = {
mod("Damage", "MORE", nil, 0, 0, { type = "Multiplier", var = "CurseApplied" }),
},
["dark_ritual_skill_effect_duration_+%_per_curse_applied"] = {
mod("Duration", "INC", nil, 0, 0, { type = "Multiplier", var = "CurseApplied" }),
},
["apply_linked_curses_with_dark_ritual"] = {
},
["cannot_cast_curses"] = {
},
["display_linked_curse_effect_+%_final"] = {
},
["display_linked_curse_effect_+%"] = {
},
["support_bane_curse_effect_+%_final"] = {
},
},
#baseMod skill("debuff", true)
#mods
#skill SupportDarkRitual Bane
statMap = {
["apply_linked_curses_with_dark_ritual"] = {
flag("Condition:AppliedByBane"),
},
["support_bane_curse_effect_+%_final"] = {
mod("CurseEffect", "MORE", nil),
},
},
#mods
#skill BaneAltX
#flags spell duration area
preSkillTypeFunc = function(activeSkill, output)
local curseCount = 0
for _, skill in ipairs(activeSkill.actor.activeSkillList) do
if skill.socketGroup == activeSkill.socketGroup and skill.skillModList:GetCondition("AppliedByBane") then
curseCount = curseCount + 1
if curseCount == output.EnemyCurseLimit then
break
end
end
end
activeSkill.skillModList:NewMod("Multiplier:CurseApplied", "BASE", curseCount, "Base")
end,
statMap = {
["dark_ritual_damage_+%_final_per_curse_applied"] = {
mod("Damage", "MORE", nil, 0, 0, { type = "Multiplier", var = "CurseApplied" }),
},
["dark_ritual_skill_effect_duration_+%_per_curse_applied"] = {
mod("Duration", "INC", nil, 0, 0, { type = "Multiplier", var = "CurseApplied" }),
},
["apply_linked_curses_with_dark_ritual"] = {
},
["cannot_cast_curses"] = {
},
["support_bane_curse_effect_+%_final"] = {
},
},
#baseMod skill("debuff", true)
#mods
#skill SupportDarkRitualAltX Bane of Condemnation
statMap = {
["apply_linked_curses_with_dark_ritual"] = {
flag("Condition:AppliedByBane"),
},
["support_bane_curse_effect_+%_final"] = {
mod("CurseEffect", "MORE", nil),
},
},
#mods
#skill BlazingSalvo
#flags spell area projectile
parts = {
{
name = "1 Projectile",
},
{
name = "All Projectiles",
},
},
preDamageFunc = function(activeSkill, output)
if activeSkill.skillPart == 2 then
activeSkill.skillData.dpsMultiplier = (activeSkill.skillData.dpsMultiplier or 1) * output.ProjectileCount
end
end,
#baseMod skill("radius", 16)
#baseMod skill("radiusLabel", "Minimum Range:")
#baseMod skill("radiusSecondary", 22)
#baseMod skill("radiusSecondaryLabel", "Maximum Range:")
#baseMod flag("CannotSplit")
#mods
#skill Blight
#flags spell duration area
parts = {
{
name = "Manual Stacks",
stages = true,
},
{
name = "Maximum Sustainable Stacks",
},
},
statMap = {
["display_max_blight_stacks"] = {
mod("Multiplier:BlightMaxStages", "BASE", nil, 0, 0, { type = "SkillPart", skillPart = 1 }),
mod("BlightBaseMaxStages", "BASE", nil, 0, 0, { type = "SkillPart", skillPart = 2 }),
},
},
#baseMod mod("Damage", "MORE", 100, 0, 0, { type = "Multiplier", var = "BlightStageAfterFirst" })
#baseMod skill("debuff", true)
#baseMod skill("debuffSecondary", true)
#baseMod skill("radius", 26)
#mods
#skill BlightAltX
#flags spell duration area
parts = {
{
name = "Manual Stacks",
stages = true,
},
{
name = "Maximum Sustainable Stacks",
},
},
statMap = {
["display_max_blight_stacks"] = {
mod("Multiplier:BlightofContagionMaxStages", "BASE", nil, 0, 0, { type = "SkillPart", skillPart = 1 }),
mod("BlightBaseMaxStages", "BASE", nil, 0, 0, { type = "SkillPart", skillPart = 2 }),
},
},
#baseMod mod("Damage", "MORE", 100, 0, 0, { type = "Multiplier", var = "BlightofContagionStageAfterFirst" })
#baseMod skill("debuff", true)
#baseMod skill("debuffSecondary", true)
#baseMod skill("radius", 26)
#mods
#skill BlightAltY
#flags spell duration area
parts = {
{
name = "Manual Stacks",
stages = true,
},
{
name = "Maximum Sustainable Stacks",
},
},
statMap = {
["display_max_blight_stacks"] = {
mod("Multiplier:BlightofAtrophyMaxStages", "BASE", nil, 0, 0, { type = "SkillPart", skillPart = 1 }),
mod("BlightBaseMaxStages", "BASE", nil, 0, 0, { type = "SkillPart", skillPart = 2 }),
},
},
#baseMod mod("Damage", "MORE", 100, 0, 0, { type = "Multiplier", var = "BlightofAtrophyStageAfterFirst" })
#baseMod skill("debuff", true)
#baseMod skill("debuffSecondary", true)
#baseMod skill("radius", 26)
#mods
#skill VaalBlight
#flags spell duration area
statMap = {
["hinder_enemy_chaos_damage_taken_+%"] = {
mod("ChaosDamageTaken", "INC", nil, 0, 0, { type = "GlobalEffect", effectType = "Debuff", effectName = "Hinder" }),
},
["display_max_blight_stacks"] = {
mod("Multiplier:BlightMaxStages", "BASE", nil, 0, 0, { type = "SkillPart", skillPart = 1 }),
},
},
#baseMod skill("radius", 20)
#mods
#skill Bodyswap
#flags spell area
parts = {
{
name = "Self Explosion",
spell = true,
cast = false,
},
{
name = "Corpse Explosion",
spell = false,
cast = true,
},
},
preDamageFunc = function(activeSkill, output)
if activeSkill.skillPart == 1 then
local skillData = activeSkill.skillData
if activeSkill.skillFlags.totem then
skillData.FireBonusMin = output.TotemLife * skillData.selfFireExplosionLifeMultiplier
skillData.FireBonusMax = output.TotemLife * skillData.selfFireExplosionLifeMultiplier
else
skillData.FireBonusMin = output.Life * skillData.selfFireExplosionLifeMultiplier
skillData.FireBonusMax = output.Life * skillData.selfFireExplosionLifeMultiplier
end
end
end,
statMap = {
["spell_minimum_base_fire_damage"] = {
skill("FireMin", nil, { type = "SkillPart", skillPart = 1 }),
},
["spell_maximum_base_fire_damage"] = {
skill("FireMax", nil, { type = "SkillPart", skillPart = 1 }),
},
["corpse_warp_area_of_effect_+%_final_when_consuming_corpse"] = {
mod("AreaOfEffect", "MORE", nil, 0, 0, { type = "SkillPart", skillPart = 2 }),
},
},
#baseMod skill("explodeCorpse", true, { type = "SkillPart", skillPart = 2 })
#baseMod skill("radius", 14)
#mods
#skill BodyswapAltX
#flags spell area
parts = {
{
name = "Self Explosion",
spell = true,
cast = false,
},
{
name = "Minion Explosion",
spell = false,
cast = true,
},
},
preDamageFunc = function(activeSkill, output)
if activeSkill.skillPart == 1 then
local skillData = activeSkill.skillData
if activeSkill.skillFlags.totem then
skillData.FireBonusMin = output.TotemLife * skillData.selfFireExplosionLifeMultiplier
skillData.FireBonusMax = output.TotemLife * skillData.selfFireExplosionLifeMultiplier
else
skillData.FireBonusMin = output.Life * skillData.selfFireExplosionLifeMultiplier
skillData.FireBonusMax = output.Life * skillData.selfFireExplosionLifeMultiplier
end
end
end,
statMap = {
["spell_minimum_base_fire_damage"] = {
skill("FireMin", nil, { type = "SkillPart", skillPart = 1 }),
},
["spell_maximum_base_fire_damage"] = {
skill("FireMax", nil, { type = "SkillPart", skillPart = 1 }),
},
["spell_base_fire_damage_%_maximum_life"] = {
skill("selfFireExplosionLifeMultiplier", nil, { type = "SkillPart", skillPart = 1 }),
div = 100,
},
["skill_minion_explosion_life_%"] = {
skill("selfFireExplosionLifeMultiplier", nil, { type = "SkillPart", skillPart = 2 }),
div = 100,
},
["corpse_warp_area_of_effect_+%_final_when_consuming_minion"] = {
mod("AreaOfEffect", "MORE", nil, 0, 0, { type = "SkillPart", skillPart = 2 }),
},
},
#baseMod skill("explodeCorpse", true, { type = "SkillPart", skillPart = 2 })
#baseMod skill("radius", 14)
#mods
#skill BoneOffering
#flags spell duration
statMap = {
["monster_base_block_%"] = {
mod("BlockChance", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Buff" }),
},
["base_spell_block_%"] = {
mod("SpellBlockChance", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Buff" }),
},
},
#baseMod skill("buffMinions", true)
#baseMod skill("buffNotPlayer", true)
#mods
#skill BrandRecall
#flags spell
statMap = {
["recall_sigil_target_search_range_+%"] = {
mod("BrandAttachmentRange", "INC", nil, 0, 0,{ type = "Condition", var = "CannotRecallBrand", neg = true }, { type = "GlobalEffect", effectType = "Buff" }),
},
},
#mods
#skill Clarity
#flags spell aura area
statMap = {
["base_mana_regeneration_rate_per_minute"] = {
mod("ManaRegen", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Aura" }),
div = 60,
},
},
#baseMod skill("radius", 40)
#mods
#skill VaalClarity
#flags spell aura area duration
statMap = {
["no_mana_cost"] = {
mod("ManaCost", "MORE", nil, 0, 0, { type = "GlobalEffect", effectType = "Aura", unscalable = true}),
value = -100,
},
},
#baseMod skill("radius", 40)
#mods
#skill ColdSnap
#flags spell area
#baseMod skill("dotIsArea", true)
#baseMod skill("radiusLabel", "Initial Burst:")
#baseMod skill("radiusSecondaryLabel", "Initial Chilled Ground:")
#baseMod skill("radiusTertiaryLabel", "Final Chilled Ground:")
#mods
#skill ColdSnapAltX
#flags spell area
#mods
#skill VaalColdSnap
#flags spell area duration
#baseMod skill("dotIsArea", true)
#baseMod skill("radiusLabel", "Initial Burst:")
#baseMod skill("radiusSecondaryLabel", "Initial Chilled Ground:")
#baseMod skill("radiusTertiaryLabel", "Final Chilled Ground:")
#mods
#skill Conductivity
#flags spell curse area duration hex
statMap = {
["base_lightning_damage_resistance_%"] = {
mod("LightningResist", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Curse" }),
},
["chance_to_be_shocked_%"] = {
mod("SelfShockChance", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Curse" }),
},
["base_self_shock_duration_-%"] = {
mod("SelfShockDuration", "INC", nil, 0, 0, { type = "GlobalEffect", effectType = "Curse" }),
div = -1,
},
},
#baseMod skill("debuff", true)
#baseMod skill("radius", 22)
#mods
#skill Contagion
#flags spell area duration
#baseMod skill("debuff", true)
#mods
#skill ContagionAltX
#flags spell area duration
#baseMod skill("debuff", true)
#mods
#skill ContagionAltY
#flags spell area duration
#baseMod skill("debuff", true)
#mods
#skill ConversionTrap
#flags spell duration trap
#mods
#skill Convocation
#flags spell duration
statMap = {
["base_life_regeneration_rate_per_minute"] = {
mod("LifeRegen", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Buff" }),
div = 60,
},
},
#baseMod skill("buffMinions", true)
#baseMod skill("buffNotPlayer", true)
#mods
#skill CracklingLance
#flags spell area
statMap = {
["disintegrate_damage_+%_final_per_intensity"] = {
mod("Damage", "MORE", nil, 0, 0, { type = "Multiplier", var = "Intensity", limitVar = "IntensityLimit" }),
},
["disintegrate_base_radius_+_per_intensify"] = {
skill("radiusExtra", nil, { type = "Multiplier", var = "Intensity", limitVar = "IntensityLimit" }),
},
["quality_display_disintegrate_is_gem"] = {
-- Display only
},
},
#baseMod skill("radius", 10)
#mods
#skill CracklingLanceAltX
#flags spell area
#baseMod skill("radius", 10)
#mods
#skill CracklingLanceAltY
#flags spell area
#baseMod skill("radius", 10)
#mods
#skill DarkPact
#flags spell area chaining
parts = {
{
name = "Cast on Player",
},
{
name = "Cast on Skeleton",
},
},
preDamageFunc = function(activeSkill, output)
local life
if activeSkill.skillPart == 1 then
if activeSkill.skillFlags.totem then
life = output.TotemLife
else
life = output.Life
end
else
life = activeSkill.skillData.skeletonLife or 0
end
local add = life * activeSkill.skillData.lifeDealtAsChaos / 100
activeSkill.skillData.ChaosMin = activeSkill.skillData.ChaosMin + add
activeSkill.skillData.ChaosMax = activeSkill.skillData.ChaosMax + add
end,
statMap = {
["skeletal_chains_aoe_%_health_dealt_as_chaos_damage"] = {
skill("lifeDealtAsChaos", nil),
},
["skeletal_chains_no_minions_radius_+"] = {
skill("radiusExtra", nil, { type = "SkillPart", skillPart = 1 }),
},
["skeletal_chains_no_minions_damage_+%_final"] = {
mod("Damage", "MORE", nil, 0, bit.bor(KeywordFlag.Hit, KeywordFlag.Ailment), { type = "SkillPart", skillPart = 1 }),
},
["quality_display_dark_pact_is_gem"] = {
-- Display only
},
},
#baseMod skill("radius", 26)
#mods
#skill Despair
#flags spell curse area duration hex
statMap = {
["base_chaos_damage_resistance_%"] = {
mod("ChaosResist", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Curse" }),
},
["minimum_added_chaos_damage_taken"] = {
mod("SelfChaosMin", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Curse" }),
},
["maximum_added_chaos_damage_taken"] = {
mod("SelfChaosMax", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Curse" }),
},
},
#baseMod skill("debuff", true)
#baseMod skill("radius", 22)
#mods
#skill DestructiveLink
#flags spell duration
statMap = {
["critical_link_grants_base_critical_strike_multiplier_+"] = {
mod("CritMultiplier", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Link" }),
},
["critical_link_grants_accuracy_rating_+%"] = {
mod("Accuracy", "INC", nil, 0, 0, { type = "GlobalEffect", effectType = "Link" }),
},
["display_critical_link_overrides_main_hand_critical_strike_chance"] = {
flag("MainHandCritIsEqualToParent", { type = "GlobalEffect", effectType = "Link" }, { type = "Condition", var = "MainHandAttack" }),
},
},
#mods
#skill Discharge
#flags spell area
#mods
#skill DischargeAltX
#flags spell area
#mods
#skill Discipline
#flags spell aura area
statMap = {
["energy_shield_recharge_rate_+%"] = {
mod("EnergyShieldRecharge", "INC", nil, 0, 0, { type = "GlobalEffect", effectType = "Aura" }),
},
["base_maximum_energy_shield"] = {
mod("EnergyShield", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Aura" }),
},
},
#baseMod skill("radius", 40)
#mods
#skill VaalDiscipline
#flags spell aura area duration
statMap = {
["energy_shield_recharge_not_delayed_by_damage"] = {
mod("EnergyShieldRechargeNotDelayedByDamage", "DUMMY", nil, 0, 0, { type = "GlobalEffect", effectType = "Aura" }),
},
},
#baseMod skill("radius", 40)
#mods
#skill DivineIre
#flags spell area
preDamageFunc = function(activeSkill, output)
if activeSkill.skillPart == 2 then
activeSkill.skillData.hitTimeMultiplier = activeSkill.skillModList:Sum("BASE", activeSkill.skillCfg, "Multiplier:DivineIreStage")
end
end,
parts = {
{
name = "Channelling",
area = false,
},
{
name = "Release",
area = true,
stages = true,
channelRelease = true,
},
},
statMap = {
["divine_tempest_damage_+%_final_while_channelling"] = {
mod("Damage", "MORE", nil, 0, 0, { type = "SkillPart", skillPart = 1 }),
},
["divine_tempest_hit_damage_+%_final_per_stage"] = {
mod("Damage", "MORE", nil, ModFlag.Hit, 0, { type = "Multiplier", var = "DivineIreStageAfterFirst" }),
},
["divine_tempest_ailment_damage_+%_final_per_stage"] = {
mod("Damage", "MORE", nil, 0, KeywordFlag.Ailment, { type = "Multiplier", var = "DivineIreStageAfterFirst" }),
},
},
#baseMod mod("Multiplier:DivineIreMaxStages", "BASE", 10, 0, 0, { type = "SkillPart", skillPart = 2 })
#baseMod skill("radius", 38)
#mods
#skill DivineIreAltX
#flags spell area
preDamageFunc = function(activeSkill, output)
if activeSkill.skillPart == 2 then
activeSkill.skillData.hitTimeMultiplier = activeSkill.skillModList:Sum("BASE", activeSkill.skillCfg, "Multiplier:DivineIreofHolyLightningStage")
end
end,
parts = {
{
name = "Channelling",
area = false,
},
{
name = "Release",
area = true,
stages = true,
channelRelease = true,
},
},
statMap = {
["divine_tempest_hit_damage_+%_final_per_stage"] = {
mod("Damage", "MORE", nil, ModFlag.Hit, 0, { type = "Multiplier", var = "DivineIreofHolyLightningStageAfterFirst" }),
},
["divine_tempest_ailment_damage_+%_final_per_stage"] = {
mod("Damage", "MORE", nil, 0, KeywordFlag.Ailment, { type = "Multiplier", var = "DivineIreofHolyLightningStageAfterFirst" }),
},
["divine_tempest_no_beam"] = {
-- Display only
},
},
#baseMod mod("Multiplier:DivineIreofHolyLightningMaxStages", "BASE", 10, 0, 0, { type = "SkillPart", skillPart = 2 })
#baseMod skill("radius", 38)
#mods
#skill DivineIreAltY
#flags spell area
preDamageFunc = function(activeSkill, output)
if activeSkill.skillPart == 2 then
activeSkill.skillData.hitTimeMultiplier = activeSkill.skillModList:Sum("BASE", activeSkill.skillCfg, "Multiplier:DivineIreofDisintegrationStage")
end
end,
parts = {
{
name = "Channelling",
area = false,
},
{
name = "Release",
area = true,
stages = true,
channelRelease = true,
},
},
statMap = {
["divine_tempest_hit_damage_+%_final_per_stage"] = {
mod("Damage", "MORE", nil, ModFlag.Hit, 0, { type = "Multiplier", var = "DivineIreofDisintegrationStageAfterFirst" }),
},
["divine_tempest_ailment_damage_+%_final_per_stage"] = {
mod("Damage", "MORE", nil, 0, KeywordFlag.Ailment, { type = "Multiplier", var = "DivineIreofDisintegrationStageAfterFirst" }),
},
},
#baseMod mod("Multiplier:DivineIreofDisintegrationMaxStages", "BASE", 10, 0, 0, { type = "SkillPart", skillPart = 2 })
#mods
#skill DivineRetribution
#flags spell area
#mods
#skill ElementalWeakness
#flags spell curse area duration hex
statMap = {
["base_resist_all_elements_%"] = {
mod("ElementalResist", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Curse" }),
},
["self_elemental_status_duration_-%"] = {
mod("SelfElementalAilmentDuration", "INC", nil, 0, 0, { type = "GlobalEffect", effectType = "Curse" }),
mult = -1
}
},
#baseMod skill("debuff", true)
#baseMod skill("radius", 22)
#mods
#skill EnergyBlade
#flags spell
statMap = {
["storm_blade_energy_shield_+%_final"] = {
mod("EnergyShield", "MORE", nil, 0, 0, { type = "GlobalEffect", effectType = "Buff" }),
},
["storm_blade_minimum_lightning_damage_from_es_%"] = {
mod("EnergyBladeMinLightning", "BASE", nil, 0, 0, { type = "PercentStat", stat = "EnergyShield", percent = 1 }, { type = "GlobalEffect", effectType = "Buff", unscalable = true }),
},
["storm_blade_maximum_lightning_damage_from_es_%"] = {
mod("EnergyBladeMaxLightning", "BASE", nil, 0, 0, { type = "PercentStat", stat = "EnergyShield", percent = 1 }, { type = "GlobalEffect", effectType = "Buff", unscalable = true }),
},
["storm_blade_damage_+%_final_with_two_hand_weapon"] = {
mod("EnergyBladeDamage", "MORE", nil, 0, 0, { type = "Condition", var = "UsingTwoHandedWeapon" }, { type = "GlobalEffect", effectType = "Buff", unscalable = true }),
},
["storm_blade_minimum_lightning_damage"] = {
mod("EnergyBladeMinLightning", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Buff", unscalable = true }),
},
["storm_blade_maximum_lightning_damage"] = {
mod("EnergyBladeMaxLightning", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Buff", unscalable = true }),
},
},
#mods
#skill Enfeeble
#flags spell curse area duration hex
statMap = {
["enfeeble_damage_+%_final"] = {
mod("Damage", "MORE", nil, 0, 0, { type = "GlobalEffect", effectType = "Curse" }, { type = "Condition", var = "RareOrUnique", neg = true }),
},