mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2025-12-14 20:15:51 +00:00
Foil Unique disambiguation
This commit is contained in:
@@ -46,7 +46,7 @@ const parsers: Array<ParserFn | { virtual: VirtualParserFn }> = [
|
||||
parseFlask,
|
||||
parseStackSize,
|
||||
parseCorrupted,
|
||||
parseRelic,
|
||||
parseFoil,
|
||||
parseInfluence,
|
||||
parseMap,
|
||||
parseSockets,
|
||||
@@ -363,12 +363,12 @@ function parseCorrupted (section: string[], item: ParsedItem) {
|
||||
return 'SECTION_SKIPPED'
|
||||
}
|
||||
|
||||
function parseRelic (section: string[], item: ParsedItem) {
|
||||
function parseFoil (section: string[], item: ParsedItem) {
|
||||
if (item.rarity !== ItemRarity.Unique) {
|
||||
return 'PARSER_SKIPPED'
|
||||
}
|
||||
if (section[0] === _$.RELIC_UNIQUE) {
|
||||
item.isRelic = true
|
||||
if (section[0] === _$.FOIL_UNIQUE) {
|
||||
item.isFoil = true
|
||||
return 'SECTION_PARSED'
|
||||
}
|
||||
return 'SECTION_SKIPPED'
|
||||
|
||||
Reference in New Issue
Block a user