Repository navigation
Add configurable Headhunter power levels - #10645
Open
AdamZ-8113 wants to merge 1 commit into
Open
AdamZ-8113 wants to merge 1 commit into
AdamZ-8113 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the problem being solved:
This adds a Headhunter Power Level dropdown under
When In Combatso 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:
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
MonsterModlikeMonsterModSpeedAurabut that prefix is omitted for readability.AttackCastMovementSpeedSpeedAuraIncreasedAccuracyIncreasedCriticalStrikeChanceAccuracyAndCritAuraExtraFireDamageExtraColdDamageExtraLightningDamageExtraChaosDamagePhysicalDamageAuraAreaOfEffectAdditionalProjectilesAdditionalChainApplyFreezeIncreasedLifeIncreasedEvasionRatingPhysicalDamageReductionResistantToFireResistantToColdResistantToLightningResistantToChaosFasterStartOfEnergyShieldEnergyShieldAuraEnergyShieldStunNovaLifeRegenerationDamageLeechedAsLifeAttackBlockCannotBeStunnedSoulEaterSteps taken to verify a working solution:
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:
After screenshot: