mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2025-12-15 12:35:59 +00:00
fix unique belt
This commit is contained in:
@@ -622,8 +622,11 @@ function parseStackSize(section: string[], item: ParsedItem) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function parseRuneSockets(section: string[], item: ParsedItem) {
|
function parseRuneSockets(section: string[], item: ParsedItem) {
|
||||||
const categoryMax = getMaxSockets(item.category);
|
const categoryMax = getMaxSockets(item);
|
||||||
const armourOrWeapon = categoryMax && isArmourOrWeaponOrCaster(item.category);
|
const armourOrWeapon =
|
||||||
|
categoryMax &&
|
||||||
|
(isArmourOrWeaponOrCaster(item.category) ||
|
||||||
|
item.info.refName === "Darkness Enthroned");
|
||||||
if (!armourOrWeapon) return "PARSER_SKIPPED";
|
if (!armourOrWeapon) return "PARSER_SKIPPED";
|
||||||
if (section[0].startsWith(_$.SOCKETS)) {
|
if (section[0].startsWith(_$.SOCKETS)) {
|
||||||
const sockets = section[0].slice(_$.SOCKETS.length).trimEnd();
|
const sockets = section[0].slice(_$.SOCKETS.length).trimEnd();
|
||||||
@@ -1594,7 +1597,12 @@ export function parseAffixStrings(clipboard: string): string {
|
|||||||
return part2 || part1;
|
return part2 || part1;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function getMaxSockets(category: ItemCategory | undefined) {
|
function getMaxSockets(item: ParsedItem) {
|
||||||
|
if (item.info.refName === "Darkness Enthroned") {
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
const { category } = item;
|
||||||
switch (category) {
|
switch (category) {
|
||||||
case ItemCategory.BodyArmour:
|
case ItemCategory.BodyArmour:
|
||||||
case ItemCategory.TwoHandedAxe:
|
case ItemCategory.TwoHandedAxe:
|
||||||
|
|||||||
Reference in New Issue
Block a user