Skip to content

Commit 58828b7

Browse files
authored
Update ItemsTab.lua
Added the flavour texts for Foulborn Uniques with numbers at the end.
1 parent cd3c588 commit 58828b7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Classes/ItemsTab.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ local catalystQualityFormat = {
4949

5050
local flavourLookup = {}
5151

52+
setmetatable(flavourLookup, {
53+
__index = function(t, key)
54+
if type(key) == "string" then
55+
local normalized = key:gsub("%s%d+$", "")
56+
return rawget(t, normalized)
57+
end
58+
end
59+
})
60+
5261
for _, entry in pairs(data.flavourText) do
5362
if entry.name and entry.id and entry.text then
5463
flavourLookup[entry.name] = flavourLookup[entry.name] or {}

0 commit comments

Comments
 (0)