Skip to content

Commit 8d6fec6

Browse files
committed
Add support for Trap & Mine Chain mod
"Skills used by your Traps and Mines Chain 2 additional times" - Added "skills used by your traps and mines" preFlag - Added "chain " as modName (extra space to avoid match with "chaining") - Added "(%d+) additional times?" to formList
1 parent f5a84a6 commit 8d6fec6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Modules/ModParser.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ local formList = {
7474
["^([%+%-][%d%.]+)%%? base"] = "BASE",
7575
["^([%+%-]?[%d%.]+)%%? additional"] = "BASE",
7676
["(%d+) additional hits?"] = "BASE",
77+
["(%d+) additional times?"] = "BASE",
7778
["^throw up to (%d+)"] = "BASE",
7879
["^you gain ([%d%.]+)"] = "GAIN",
7980
["^gains? ([%d%.]+)%% of"] = "GAIN",
@@ -536,6 +537,7 @@ local modNameList = {
536537
["projectiles"] = "ProjectileCount",
537538
["projectile speed"] = "ProjectileSpeed",
538539
["arrow speed"] = { "ProjectileSpeed", flags = ModFlag.Bow },
540+
["chain "] = "ChainCountMax",
539541
-- Totem/trap/mine/brand modifiers
540542
["totem placement speed"] = "TotemPlacementSpeed",
541543
["totem life"] = "TotemLife",
@@ -1082,6 +1084,7 @@ local preFlagList = {
10821084
["^skills which throw traps ([hgd][ae][via][enl])? "] = { keywordFlags = KeywordFlag.Trap },
10831085
["^skills used by mines [hgd][ae][via][enl] "] = { keywordFlags = KeywordFlag.Mine },
10841086
["^skills which throw mines ([hgd][ae][via][enl])? "] = { keywordFlags = KeywordFlag.Mine },
1087+
["^skills used by your traps and mines ([hgd]?[ae]?[via]?[enl]?[ ]?)"] = { keywordFlags = bor(KeywordFlag.Trap, KeywordFlag.Mine) },
10851088
-- Local damage
10861089
["^attacks with this weapon "] = { tagList = { { type = "Condition", var = "{Hand}Attack" }, { type = "SkillType", skillType = SkillType.Attack } } },
10871090
["^attacks with this weapon [hd][ae][va][el] "] = { tagList = { { type = "Condition", var = "{Hand}Attack" }, { type = "SkillType", skillType = SkillType.Attack } } },

0 commit comments

Comments
 (0)