@@ -1114,26 +1114,26 @@ function ImportTabClass:ImportItem(itemData, slotName)
11141114 end
11151115 if itemData .properties then
11161116 for _ , property in pairs (itemData .properties ) do
1117- if escapeGGGString (property .name ) == " Quality" then
1117+ local escapedPropertyName = escapeGGGString (property .name )
1118+ if escapedPropertyName == " Quality" then
11181119 item .quality = tonumber (property .values [1 ][1 ]:match (" %d+" ))
11191120 elseif property .name == " Radius" then
11201121 item .jewelRadiusLabel = property .values [1 ][1 ]
11211122 elseif property .name == " Limited to" then
11221123 item .limit = tonumber (property .values [1 ][1 ])
1123- elseif escapeGGGString ( property . name ) == " Evasion Rating" then
1124+ elseif escapedPropertyName == " Evasion Rating" then
11241125 if item .baseName == " Two-Toned Boots (Armour/Energy Shield)" then
11251126 -- Another hack for Two-Toned Boots
11261127 item .baseName = " Two-Toned Boots (Armour/Evasion)"
11271128 item .base = self .build .data .itemBases [item .baseName ]
11281129 end
1129- elseif escapeGGGString ( property . name ) == " Energy Shield" then
1130+ elseif escapedPropertyName == " Energy Shield" then
11301131 if item .baseName == " Two-Toned Boots (Armour/Evasion)" then
11311132 -- Yet another hack for Two-Toned Boots
11321133 item .baseName = " Two-Toned Boots (Evasion/Energy Shield)"
11331134 item .base = self .build .data .itemBases [item .baseName ]
11341135 end
11351136 end
1136- local escapedPropertyName = escapeGGGString (property .name )
11371137 if escapedPropertyName == " Energy Shield" or escapedPropertyName == " Ward" or escapedPropertyName == " Runic Ward" or escapedPropertyName == " Armour" or escapedPropertyName == " Evasion Rating" then
11381138 item .armourData = item .armourData or { }
11391139 local armourKey = escapedPropertyName :gsub (" Rating" , " " ):gsub (" " , " " )
0 commit comments