Skip to content

Remove item name translation check #858

@Kvan7

Description

@Kvan7

https://www.pathofexile.com/forum/view-thread/3913283

if (!info?.length) {
// HACK: controller support while poe2 doesn't have advanced copy for controllers
if (item.category === ItemCategory.DivinationCard) {
info = ITEM_BY_TRANSLATED("DIVINATION_CARD", item.name);
} else if (item.category === ItemCategory.CapturedBeast) {
info = ITEM_BY_TRANSLATED("CAPTURED_BEAST", item.baseType ?? item.name);
} else if (item.category === ItemCategory.Gem) {
info = ITEM_BY_TRANSLATED("GEM", item.name);
} else if (item.category === ItemCategory.MetamorphSample) {
info = ITEM_BY_TRANSLATED("ITEM", item.name);
} else if (item.category === ItemCategory.Voidstone) {
info = ITEM_BY_TRANSLATED("ITEM", "Charged Compass");
} else if (item.rarity === ItemRarity.Unique && !item.isUnidentified) {
info = ITEM_BY_TRANSLATED("UNIQUE", item.name);
} else {
info = ITEM_BY_TRANSLATED("ITEM", item.baseType ?? item.name);
}
if (!info?.length) {
return err("item.unknown");
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    task[Dev only] just needs to get doneupstream: POE2Blocked by something not available in poe2 yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions