Skip to content

Add configurable Headhunter power levels - #10645

Open
AdamZ-8113 wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
AdamZ-8113:feature/headhunter-power-level
Open

AdamZ-8113 wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
AdamZ-8113:feature/headhunter-power-level

Conversation

@AdamZ-8113

Copy link
Copy Markdown
Contributor

Description of the problem being solved:

This adds a Headhunter Power Level dropdown under When In Combat so players can approximate stolen buffs without entering a custom config block.

The options are Off, Low, Medium, High and Full. Off is the default setting. Low/Medium/High apply 25%/50%/75% of the modeled bonuses and assume 11/22/33 Soul Eater souls. Full applies 100% and uses the character's maximum souls, including increases or reductions from Soul Ascension.

If another Soul Eater source is present, the higher of the manual count and the preset count is used, capped at the character's maximum. The counts aren't added together.

The option is enabled by parsing the rare monster modifier-stealing line. This supports regular Headhunter and the Foulborn variant that has the monster stealing modifier. This doesn't yet work with Inspired Learning or Behead Support. Modeling Inspired Learning I think is much harder, and Behead Support is even further limited.

The modifier data was decided upon based on research from the RePoE modifier export, which has 107 rare modifiers with a positive spawn weight, associated with a monster, that isn't explicitly blocked on rares. I couldn't find data about explicit "stealability" or data about whether or not modifiers applied differently to players, except for Soul Eater which we know caps at 45 souls. So from the 107 rare modifiers I used Codex to do an in-game comparison, looking primarily at mods that work in PoB and that are observable in game.

I did this by recording 12 gameplay clips of 3 different characters with ~50-81 headhunter buffs, and captured the character sheet data. The recordings included keeping the sheet open while buffs expired to show incremental changes. I fed the data to Codex along with PoB exports for each character, and had it compare the character sheets against completely unbuffed character sheet data. Map modifiers were accounted for, and no flasks were used. I then had Codex analyze whether or not the HH bonuses mathematically worked with what I captured on the character sheets.

Most mods matched perfectly, but the measurements prevented several overestimates:

  • Three modifier records each contain 40% life as ES, but I never observed more than 80%, so that's what "full" uses. Maybe 1 is un-stealable
  • In some cases I believe "adaptive resistances" were stolen, because rotating +75% resistance values were observed, but I excluded those here due to their extreme volatility.
  • In some occasions I observed 5% life regen instead of 3%, but I couldn't find an accompanying modifier that explained it, and the bonus wasn't consistent, so we use 3%.

Low/Medium/High presets are scaled off of "full" and rounded down where appropriate.

Modeled source list and Full values (expand)

The full list of modifiers was whittled down to these 29. All record IDs below start with MonsterMod like MonsterModSpeedAura but that prefix is omitted for readability.

Prefix/suffix name Record ID Included contribution at Full
Quick AttackCastMovementSpeed 30% increased attack/cast speed; 40% increased movement speed
of Haste SpeedAura 40% increased attack/cast speed; 30% increased movement speed
of the Marksman IncreasedAccuracy 100% increased accuracy
of Incision IncreasedCriticalStrikeChance 300% increased critical chance
of Precision AccuracyAndCritAura 100% increased accuracy; 300% increased critical chance
of Flames ExtraFireDamage Gain 50% of physical damage as extra fire
of Rime ExtraColdDamage Gain 50% of physical damage as extra cold
of Electricity ExtraLightningDamage Gain 50% of physical damage as extra lightning
of the Void ExtraChaosDamage Gain 15% of non-chaos damage as extra chaos
of Damaging PhysicalDamageAura 40% increased physical damage
of Giants AreaOfEffect 80% increased area of effect
of Splintering AdditionalProjectiles 4 additional projectiles
Chaining AdditionalChain 2 additional chains
of Freezing ApplyFreeze 25% chance to freeze
Fecund IncreasedLife 40% increased maximum life
Blurred IncreasedEvasionRating 100% increased evasion
Carapaced PhysicalDamageReduction 50% additional physical damage reduction
of the Magma ResistantToFire +75% fire resistance; 80% reduced ignite duration on self
of the Ice ResistantToCold +75% cold resistance; 80% reduced chill effect; 80% increased freeze duration on self
of the Tempest ResistantToLightning +75% lightning resistance; 80% reduced shock effect
of Exile ResistantToChaos +60% chaos resistance
Resplendent FasterStartOfEnergyShield Candidate 40% life as extra ES; 150% faster start of ES recharge
of Discipline EnergyShieldAura Candidate 40% life as extra ES
of Arcane Energy EnergyShieldStunNova Candidate 40% life as extra ES
of the Hydra LifeRegeneration Regenerate 3% of life per second
Remora's DamageLeechedAsLife 100% of damage leeched as life; 500% increased total recovery per second from life leech
Stalwart AttackBlock +50% attack block chance
Unwavering CannotBeStunned Cannot be stunned, Full only
Soul Eater SoulEater Character's maximum souls through PoB's existing player calculation

Steps taken to verify a working solution:

  • Used Codex to do a comprehensive video + character sheet + PoB based comparison. See above.
  • Manually compared all presets against a manually input "custom config" with the expected values
  • Added regression coverage for all power levels, Off defaults, saved selections, unequipping HH, Foulborn eligibility and Replica exclusion.
  • Verified Soul Eater source combination without double counting, including positive and negative Soul Ascension rolls and counts above the maximum.
  • Regenerated the relevant modifier-cache entries and removed the obsolete combined-text entry.
  • Full suite: 934 successes, 0 failures and 0 errors.

Link to a build that showcases this PR:

https://pob.codes/b/xDTk81FVZSM
https://pob.codes/b/tDoelKtTVoL
https://pob.codes/b/Ix6Vg2CPGhQ

Before screenshot:

image

After screenshot:

image

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.

1 participant