File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,10 @@ function ItemClass:ParseRaw(raw)
82
82
end
83
83
local mode = " WIKI"
84
84
local l = 1
85
+ local itemClass
85
86
if self .rawLines [l ] then
86
87
if self .rawLines [l ]:match (" ^Item Class:" ) then
88
+ itemClass = self .rawLines [l ]:gsub (" ^Item Class: %s+" , " %1" )
87
89
l = l + 1 -- Item class is already determined by the base type
88
90
end
89
91
local rarity = self .rawLines [l ]:match (" ^Rarity: (%a+)" )
@@ -116,7 +118,7 @@ function ItemClass:ParseRaw(raw)
116
118
end
117
119
118
120
-- Found the name for a rare or unique, but let's parse it if it's a magic or normal or Unidentified item to get the base
119
- if not (self .rarity == " NORMAL" or self .rarity == " MAGIC" or unidentified ) then
121
+ if not (self .rarity == " NORMAL" or self .rarity == " MAGIC" or unidentified ) or self . name : match ( " Energy Blade " ) then
120
122
l = l + 1
121
123
end
122
124
end
@@ -395,6 +397,9 @@ function ItemClass:ParseRaw(raw)
395
397
local baseName
396
398
if self .rarity == " NORMAL" or self .rarity == " MAGIC" then
397
399
-- Exact match (affix-less magic and normal items)
400
+ if self .name :match (" Energy Blade" ) and itemClass then -- Special handling for energy blade base.
401
+ self .name = itemClass :match (" One Hand" ) and " Energy Blade One Handed" or " Energy Blade Two Handed"
402
+ end
398
403
if data .itemBases [self .name ] then
399
404
baseName = self .name
400
405
else
You can’t perform that action at this time.
0 commit comments