Skip to content

Add Luminary Mercenary import, Warrant paste, and Party tab overview - #10580

Open
AleFachini wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
AleFachini:feat/luminary-mercenary-party
Open

AleFachini wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
AleFachini:feat/luminary-mercenary-party

Conversation

@AleFachini

Copy link
Copy Markdown

Description of the problem being solved:

New luminary class with permanent mercenaries is not supported from fetching builds and adding Mercenary from warrant for theory crafting builds.
Mercenary can have item added by pasting them from trade or the items tab into the party tab

1. PoE OAuth API Mercenary Roster Import

  • Added the "account:league_accounts" OAuth scope and DownloadLeagueAccount(realm, league, callback) (using urlEncode(league) and supporting PC and console realms).
  • Registered "league-account-request-limit" and guarded InsertRequest for new policy keys.
  • ImportTab.lua
    • Kept Items and Skills strictly scoped to /character/<name>.
    • Added a Luminary-only Mercenary row below Items and Skills (Mercenary fetch button, league roster dropdown, and Import button), dynamically expanding the OAuth import section height when a Luminary character is selected.
    • Parses only mercenaries from /league-account/<league> (caching per (realm, league)), handles sparse mercenary indices, and upserts each imported mercenary's metadata, skills/tiered supports, and wearable items into the build.

2. Mercenary Warrant Paste Parser

  • MercenaryWarrantParser.lua
    • Parses both in-game and PoE Trade Ctrl+C Mercenary Warrants (handling Item Class: / Rarity: headers, Build:, Mercenary Level:, skill blocks, and (Tier: N) supports).
    • Filters out non-skill trailing sections (Right click..., Open a portal..., Note: ~b/o ..., Corrupted, etc.), maps known archetypes/support aliases, and preserves Mercenary-exclusive skills cleanly without parser errors.
    • Upserts parsed warrants into the Party tab mercenary roster.

3. Multi-Mercenary Party Tab Overview & <Party><Mercenaries> XML

  • PartyTab.lua:
    • Maintains a multi-mercenary roster (self.mercenaries + activeMercenaryIndex) visible for Luminary builds or whenever mercenaries are loaded.
    • Displays the active mercenary's header (Name, Build, Type, Level), a Mercenary selector dropdown (enabled when >1 mercenary is in the roster), a Paste Warrant popup dialog (OpenPasteWarrantPopup), and a Remove button.
    • Shows the active mercenary's Skills (with Lv and Tier) and an interactive Mercenary Items ListControl with item type icons and full PoB framed item tooltips on hover (itemsTab:AddItemTooltip(..., nil, true)).
    • Persists all mercenaries in <Party><Mercenaries active="..."> (with backward compatibility for single <Mercenary> XMLs) and supports cross-build <Party> import by cloning referenced <Item> nodes into the build's item pool.

4. Supporting Build Data & Item Pool Integration

  • ItemsTab.lua & ItemListControl.lua: Stores Mercenary metadata and mercenaryItems references without adding extra UI menus, tags items equipped by any mercenary in the roster as (Mercenary) in Any Loadout, and cleans up references if an item is deleted.
  • SkillsTab.lua: Stores mercenarySocketGroupList per SkillSet and mercTier per gem, suppresses false-positive errors for Mercenary-exclusive skills/supports, and supports Ctrl+V warrant paste.

5. Automated Tests (Busted)

IMPORT TAB:

Before screenshot:

{AE2D4B94-3D61-4028-8704-D041DD5A7BBB}

After screenshot:

{8EE162B9-FAFF-4835-86E9-351FAA294EFC}

PARTY TAB

before
{BC39FCDC-47A4-48AF-A3B0-86C99ED6F5C9}

After
{0B3AB898-36A0-4088-86C2-E403C85B0F3A}

@AleFachini
AleFachini force-pushed the feat/luminary-mercenary-party branch 2 times, most recently from 0ea5bdc to e54e7b1 Compare November 25, 2026 22:43
Comment thread src/Classes/PartyTab.lua Resolved
@AleFachini
AleFachini force-pushed the feat/luminary-mercenary-party branch from e54e7b1 to 44a9d5e Compare November 27, 2026 23:51
@AleFachini
AleFachini requested a review from mcagnion November 27, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants