function isEnhancedDef(item, percent)
for i = 0, item.mods:size() - 1 do
if item.mods
[i
].
Stat.
Stat ==
"item_armor_percent" and item.mods
[i
].Value >= percent then
return true
end
function hasCertainSockets(item, sockets)
for i = 0, item.mods:size() - 1 do
if item.mods
[i
].
Stat.
Stat ==
"Sockets" and item.mods
[i
].Value == sockets then
return true
end
if (item.baseItem.code == "utu" or item.baseItem.code == "utp" or item.baseItem.code == "uui" or item.baseItem.code == "uar")
and item.quality == ItemQuality.Superior then
if isEnhancedDef(item, 15) and (hasCertainSockets(item, 0) or hasCertainSockets(item, 3) or hasCertainSockets(item,
4)) then
return 6
end
end -- pick only
0/
3/
4 soc wire archon dusk or sacred armors