Skip to content

Add Mercenary support by treating it as a minion-like actor - #10501

Open
vaisest wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
vaisest:luminary-mercenaries
Open

vaisest wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
vaisest:luminary-mercenaries

Conversation

@vaisest

@vaisest vaisest commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Description of the problem being solved:

This PR attempts to implement Mercenaries by representing them as a pseudo-minion. They mostly reuse minion and Animate Guardian, but have a different UI workflow as they also use player skill implementations, which need skill parts stages, etc. They use the mercenary gems via a toggle on the skills tab. These skills also have an item set selector similar to how Animate Guardians work.

The skill and support implementations are mostly done by inheriting from existing player implementations. This might result in incorrect implementations on some skills, but skips having to re-implement everything. These can be overridden later if this is a problem.

This should include most things necessary for calculating Mercs correctly. That is:

  • Minion modifiers from the minion code path are restricted to actual minions.
  • Auras from the player work.
  • Triggers and minions work.
  • Full DPS is supported.
  • Mercenary tuning knobs are somewhat taken into account. The ones that are known are for sure correct, but there are some that are not known by the playerbase, such as the damage taken multiplier. The attack damage multiplier IS included at up to 100%, but I don't know if it's even close to being correct. This needs some additional in-game testing somehow. The new resistance penalty is also included. The -80% damage taken from DoT effects multiplier is included.
  • Merc build stats are calculated. There is a config selector for the merc build. Lower level mercs should have correct level scaling based on both the build and known penalties. The -30% damage multiplier is included too.
  • Links should function and so should the light radius node for it.
  • Blocked uniques are exported and blocked (currently only Kalandra's Touch). The unique nodes work too.
  • Anoints work.
  • Merc configs use the minion config options. For example, "Linked to Minion?". This may or may not be confusing.
  • Merc buffs should correctly apply to the player, even when not using the granted skill.
  • Calc tab should show merc stats properly. Though given the lack of the damage intake multiplier, defensive stats might not be correct.

Caveats:

  • Mercs have rotations. This is NOT simulated here. This PR will not be able to figure out e.g. what extra skills on mercs brick them. The cooldowns, however, are exported on skills and work properly, so this could possible be done in the future?
  • Item comparison tooltips don't enable easy comparison of merc gear.
  • This might be confusing. PoB already has a small reputation for being tricky, so I feel like we might want to somehow change the way you build item sets in the future. The skills also being amongst player skills might be an issue. We might want to move both of these to a new tab in the future?

Steps taken to verify a working solution:

Link to a build that showcases this PR:

(Make sure you import these while on the branch or things will disappear)

https://poe.ninja/poe1/pob/9d81e (kboc)

https://poe.ninja/poe1/pob/9d824 (static strike)

After screenshot:

image image image image image image

@vaisest

vaisest commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

e500344 now has a merc import button:

image image

But as seen in the screeenshot, I don't have a Luminary. I've tested this with some merc json examples. The PoE API should work the same

@vaisest

vaisest commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Warning labels are also now present. There's one for no build selected, and one for a build selected that can't have the current skills.

image image

@vaisest
vaisest marked this pull request as ready for review November 19, 2026 04:13
@vaisest
vaisest force-pushed the luminary-mercenaries branch from 14637ce to 3835d95 Compare November 26, 2026 02:06
Comment thread src/Modules/Data.lua Resolved
@vaisest
vaisest marked this pull request as draft November 27, 2026 16:38
@vaisest
vaisest force-pushed the luminary-mercenaries branch from 5a79e80 to b29781b Compare November 28, 2026 15:27
@vaisest

vaisest commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

I revisited the UX here a bit. This now works by directly selecting the skill as opposed to choosing it like a minion skill, which resulted in weird UX. Hopefully it is better so I am marking this ready for review again

@vaisest
vaisest marked this pull request as ready for review November 28, 2026 15:52
@AdamZ-8113

Copy link
Copy Markdown
Contributor

I think this is good enough to ship as an MVP for supporting Mercs, an obviously highly desired feature, but I still feel strongly that Mercenaries deserve their own tab to be created/configured in, or that it should be incorporated into the Party tab.

List of feedback:

  1. I'd like to be able to select a Mercenary type in the Config panel without needing to know that I have to create Order: To Me! as a skill. Without this skill, you can't set a Mercenary type, even if you have a Mercenary skill gem set to active, and even if you use the Show All Configurations button.

  2. The unique DB DPS sorting doesn't apply to minions, even if you have a Merc skill active and the Mercenary gear set selected. Example here where I would expect a bow to show up as a recommended weapon since Ice Shot requires a bow to use. The Merc won't attack without a bow equipped and also can't use any other non-bow weapons. We don't currently support sort by Minion DPS either.

image
  1. Related to the above, we should show this message on the Merc when relevant
image
  1. Nitpick, can we make these drop down boxes for Skill Part, Show Stats For: and Mercenary Set: all the same width? Just a little nicer to look at. Also, is there a valid scenario where you would want a Mercenary skill selected and still want to show stats for a player? Any reason we can't just always show Mercenary stats for a Merc skill?
image
  1. If you type in the name of a skill gem that could be used by a Mercenary, like Ice Shot and then check the Mercenary box after the fact, it deletes the skill gem from the group. Would be nice to auto-convert matching on name where relevant.

  2. If you choose a valid Mercenary support gem before choosing a Mercenary skill gem, you can create invalid configurations

image
  1. Not every config that apply to players that could apply to Mercenaries, is configurable. For example if you equip Death Rush which gives Adrenaline on kill, we don't have a config option for a Mercenary to have adrenaline.

If we had a dedicated Mercenary tab to show their gear, skills, stats, etc., it could also serve as a natural section for creating Mercenaries from generated data / templates. We could have an import warrant section, and it would be a natural place to have a trade link to search for a Mercenary you create too.

@vaisest

vaisest commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

I think this is good enough to ship as an MVP for supporting Mercs, an obviously highly desired feature, but I still feel strongly that Mercenaries deserve their own tab to be created/configured in, or that it should be incorporated into the Party tab.

List of feedback:

  1. The skill is added by selecting the luminary node. I feel like it is reasonable for you to first spec into the perma merc node and then start configuring it
  2. This is just the same behaviour as the previous minion stats checkbox

Otherwise I agree these are kind of real problems left unsolved here. I'm not sure if we need an ally tab or e.g. 7 should just be solved with an actor selector on the config tab. Currently I only have minion config selectors wired up to add MercenaryModifiers. This is probably not optimal because then we'd have to duplicate basically every flag. Do tell me if that's a blocker for this PR

@AdamZ-8113

Copy link
Copy Markdown
Contributor

Ah I didn't realize that allocating the Mercenary node for Luminary granted the skill - that's cool

I don't think everything else needs to be solved in this PR, but I might open issues for the gem stuff so that we can track it. In the future, we could explore something like player.mercenary and give each actor its own configuration modifier list. An actor selector could then route actor-specific configurations to the player, or a minion/Mercenary, instead of duplicating every flag like MinionModifier / MercenaryModifier. Then the user could pick the actor that each configuration applies to. It's not critical though.

For (4) if you agree, I don't mind pushing a small commit to tweak the drop downs to be the same size. I think it just adds a little bit of polish if we keep some uniformity.

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.

3 participants