mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-08-25 06:56:45 +00:00
fix parsing Expedition Logbook, fixes #1839
This commit is contained in:
@@ -679,9 +679,9 @@ function parseLogbookArea (section: string[], item: ParsedItem) {
|
||||
if (item.info.refName !== 'Expedition Logbook') return 'PARSER_SKIPPED'
|
||||
if (section.length < 3) return 'SECTION_SKIPPED'
|
||||
|
||||
// skip Area, parse Faction
|
||||
// skip Logbook Area line, parse Faction
|
||||
const faction = STAT_BY_MATCH_STR(section[1])
|
||||
if (!faction) return 'SECTION_SKIPPED'
|
||||
if (!faction || !faction.stat.ref.startsWith('Has Logbook Faction:')) return 'SECTION_SKIPPED'
|
||||
|
||||
const areaMods: ParsedModifier[] = [{
|
||||
info: { tags: [], type: ModifierType.Pseudo },
|
||||
|
||||
Reference in New Issue
Block a user