Skip to content

Commit

Permalink
Improve breakdown insertion points
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Jun 6, 2024
1 parent 8b1be86 commit 488d23a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,9 @@ L["Reduced Physical Damage Taken"] = true
-- Tip2: The strings are passed into string.find, so you should escape the magic characters ^$()%.[]*+-? with a %
L["numberPatterns"] = {
{pattern = " by (%d+)%f[^%d%%]", addInfo = "AfterNumber",},
{pattern = "([%+%-]%d+)%f[^%d%%]", addInfo = "AfterStat",},
{pattern = "grant.-(%d+)", addInfo = "AfterNumber",}, -- for "grant you xx stat" type pattern, ex: Quel'Serrar, Assassination Armor set
{pattern = "add.-(%d+)[^%%]?$", addInfo = "AfterNumber",}, -- for "add xx stat" type pattern, ex: Adamantite Sharpening Stone
-- Added [^%%] so that it doesn't match strings like "Increases healing by up to 10% of your total Intellect." [Whitemend Pants] ID: 24261
-- Added [^|] so that it doesn't match enchant strings (JewelTips)
{pattern = "(%d+)([^%d%%|]+)", addInfo = "AfterStat",}, -- [發光的暗影卓奈石] +6法術傷害及5耐力
{pattern = "chest, legs, hands or feet by (%d+)"},
{pattern = "([%+%-]?%d+)%f[^%d%%]", addInfo = "AfterStat",},
}

-- Exclusions are used to ignore instances of separators that should not get separated
L["exclusions"] = {
["head, chest, shoulders, legs,"] = "head chest shoulders legs", -- Borean Armor Kit
Expand Down Expand Up @@ -386,6 +381,7 @@ L["statList"] = {

{"armor penetration", StatLogic.Stats.ArmorPenetrationRating},
{"elemental mastery", false}, -- Frost Witch's Regalia
{"mastery rating", StatLogic.Stats.MasteryRating},
{"mastery", StatLogic.Stats.MasteryRating},
{ARMOR:lower(), StatLogic.Stats.Armor},
}
Expand Down

0 comments on commit 488d23a

Please sign in to comment.