Skip to content

Commit cee77f2

Browse files
authored
Add support for Tactician's Strategic Embankments (#1961)
* add support for Tactician's Strategic Embankments * modcache * refactor to skill export * modcache
1 parent 845364a commit cee77f2

6 files changed

Lines changed: 36 additions & 1 deletion

File tree

src/Data/ModCache.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6147,7 +6147,7 @@ c["Totems have 12% additional Physical Damage Reduction"]={{[1]={flags=0,keyword
61476147
c["Totems have 20% additional Physical Damage Reduction"]={{[1]={flags=0,keywordFlags=16384,name="PhysicalDamageReduction",type="BASE",value=20}},nil}
61486148
c["Totems only use Skills when you fire an Attack Projectile"]={nil,"Totems only use Skills when you fire an Attack Projectile "}
61496149
c["Totems reserve 75 Spirit each"]={{[1]={flags=0,keywordFlags=0,name="AncestralBond",type="FLAG",value=true},[2]={[1]={skillType=25,type="SkillType"},flags=0,keywordFlags=0,name="ExtraSpirit",type="BASE",value=75}},nil}
6150-
c["Totems you place grant Embankment Auras"]={nil,"Totems you place grant Embankment Auras "}
6150+
c["Totems you place grant Embankment Auras"]={{[1]={flags=0,keywordFlags=0,name="Condition:StrategicEmbankments",type="FLAG",value=true}},nil}
61516151
c["Trigger Ancestral Spirits when you Summon a Totem"]={{},nil}
61526152
c["Trigger Decompose every 1.2 metres travelled"]={nil,"Trigger Decompose every 1.2 metres travelled "}
61536153
c["Trigger Elemental Expression on Melee Critical Hit"]={nil,"Trigger Elemental Expression on Melee Critical Hit "}

src/Data/Skills/act_int.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4555,6 +4555,9 @@ skills["DarkEffigyPlayer"] = {
45554555
totem = true,
45564556
duration = true,
45574557
},
4558+
baseMods = {
4559+
mod("Damage", "INC", 40, ModFlag.Dot, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"}),
4560+
},
45584561
constantStats = {
45594562
{ "base_totem_duration", 8000 },
45604563
{ "base_totem_range", 120 },

src/Data/Skills/act_str.lua

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,9 @@ skills["AncestralWarriorTotemPlayer"] = {
447447
totem = true,
448448
attack = true,
449449
},
450+
baseMods = {
451+
mod("GloryGeneration", "INC", 40, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"}),
452+
},
450453
constantStats = {
451454
{ "base_totem_duration", 8000 },
452455
{ "base_totem_range", 60 },
@@ -955,6 +958,12 @@ skills["ArtilleryBallistaPlayer"] = {
955958
totem = true,
956959
duration = true,
957960
},
961+
baseMods = {
962+
mod("Speed", "INC", 20, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"}),
963+
mod("WarcrySpeed", "INC", 20, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"}),
964+
mod("TotemPlacementSpeed", "INC", 20, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"}),
965+
mod("ReloadingSpeed", "INC", 20, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"}),
966+
},
958967
constantStats = {
959968
{ "base_totem_range", 80 },
960969
{ "base_totem_duration", 12000 },
@@ -13779,6 +13788,9 @@ skills["MetaMortarCannonPlayer"] = {
1377913788
totem = true,
1378013789
attack = true,
1378113790
},
13791+
baseMods = {
13792+
mod("DamageGainAsFire", "BASE", 25, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"}),
13793+
},
1378213794
constantStats = {
1378313795
{ "base_totem_duration", 8000 },
1378413796
{ "base_totem_range", 120 },
@@ -16758,6 +16770,9 @@ skills["ShockwaveTotemPlayer"] = {
1675816770
baseFlags = {
1675916771
totem = true,
1676016772
},
16773+
baseMods = {
16774+
mod("AreaOfEffect", "INC", 30, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"}),
16775+
},
1676116776
constantStats = {
1676216777
{ "base_totem_duration", 12000 },
1676316778
{ "base_totem_range", 80 },
@@ -17076,6 +17091,9 @@ skills["SiegeBallistaPlayer"] = {
1707617091
baseFlags = {
1707717092
totem = true,
1707817093
},
17094+
baseMods = {
17095+
mod("Damage", "MORE", 25, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"}, { type = "ActorCondition", actor = "enemy", var = "Immobilised" }),
17096+
},
1707917097
constantStats = {
1708017098
{ "base_totem_range", 80 },
1708117099
{ "base_totem_duration", 8000 },
@@ -17401,6 +17419,9 @@ skills["SummonMetaTotemSpellTotemPlayer"] = {
1740117419
statDescriptionScope = "summon_meta_totem_spell",
1740217420
baseFlags = {
1740317421
},
17422+
baseMods = {
17423+
mod("CritChance", "INC", 50, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"}),
17424+
},
1740417425
constantStats = {
1740517426
{ "base_totem_duration", 8000 },
1740617427
{ "base_totem_range", 80 },

src/Export/Skills/act_int.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ statMap = {
319319
#skill DarkEffigyPlayer
320320
#set DarkEffigyPlayer
321321
#flags area spell totem duration
322+
#baseMod mod("Damage", "INC", 40, ModFlag.Dot, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"})
322323
#mods
323324
#skillEnd
324325

src/Export/Skills/act_str.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ local skills, mod, flag, skill = ...
2626
#skill AncestralWarriorTotemPlayer
2727
#set AncestralWarriorTotemPlayer
2828
#flags totem attack
29+
#baseMod mod("GloryGeneration", "INC", 40, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"})
2930
#mods
3031
#skillEnd
3132

@@ -54,6 +55,10 @@ addFlags = {
5455
#skill ArtilleryBallistaPlayer
5556
#set ArtilleryBallistaPlayer
5657
#flags totem duration
58+
#baseMod mod("Speed", "INC", 20, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"})
59+
#baseMod mod("WarcrySpeed", "INC", 20, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"})
60+
#baseMod mod("TotemPlacementSpeed", "INC", 20, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"})
61+
#baseMod mod("ReloadingSpeed", "INC", 20, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"})
5762
#mods
5863
#skillEnd
5964

@@ -799,6 +804,7 @@ statMap = {
799804
#skill MetaMortarCannonPlayer
800805
#set MetaMortarCannonPlayer
801806
#flags totem attack
807+
#baseMod mod("DamageGainAsFire", "BASE", 25, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"})
802808
#mods
803809
#skillEnd
804810

@@ -977,6 +983,7 @@ statMap = {
977983
#skill ShockwaveTotemPlayer
978984
#set ShockwaveTotemPlayer
979985
#flags totem
986+
#baseMod mod("AreaOfEffect", "INC", 30, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"})
980987
#mods
981988
#skillEnd
982989

@@ -992,6 +999,7 @@ statMap = {
992999
#skill SiegeBallistaPlayer
9931000
#set SiegeBallistaPlayer
9941001
#flags totem
1002+
#baseMod mod("Damage", "MORE", 25, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"}, { type = "ActorCondition", actor = "enemy", var = "Immobilised" })
9951003
#mods
9961004
#skillEnd
9971005

@@ -1007,6 +1015,7 @@ statMap = {
10071015
#skill SummonMetaTotemSpellTotemPlayer
10081016
#set SummonMetaTotemSpellTotemPlayer
10091017
#flags
1018+
#baseMod mod("CritChance", "INC", 50, nil, nil, { type = "GlobalEffect", effectType = "Aura" }, { type = "Condition", var = "StrategicEmbankments"})
10101019
#mods
10111020
#skillEnd
10121021

src/Modules/ModParser.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3212,6 +3212,7 @@ local specialModList = {
32123212
mod("Multiplier:MainHandDamageToAllies", "BASE", num),
32133213
} end,
32143214
["projectile damage builds pin"] = { flag("CanPin", nil, ModFlag.Projectile) },
3215+
["totems you place grant embankment auras"] = { flag("Condition:StrategicEmbankments") },
32153216
-- Warrior - Smith of Kitava
32163217
["body armour grants armour also applies to (%a+) damage taken from hits"] = function(_, dmgType) return {
32173218
mod("ArmourAppliesTo"..firstToUpper(dmgType).."DamageTaken", "BASE", 100, { type = "ItemCondition", itemSlot = "Body Armour", rarityCond = "NORMAL" })

0 commit comments

Comments
 (0)