Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minion Accuracy equals player Accuracy #5808

Conversation

synotim
Copy link
Contributor

@synotim synotim commented Mar 31, 2023

…mastery

Description of the problem being solved:

  • Added support for the new "Minion's accuracy rating is equal to yours" mod that is added in 3.21.
  • Screenshots show this is a nerf to minion accuracy if you don't have enough player accuracy

Steps taken to verify a working solution:

  • Added Raise Zombie skill
  • Added +1000 accuracy rating in custom modifiers
  • Added minion's accuracy rating is equal to yours
  • Zombie's MH Accuracy is 1040 (1000 flat + 40 from dex)

Link to a build that showcases this PR:

https://pobb.in/bSRGKIGq9tCB

Before screenshot:

3 21-minion-accuracy-equal-yours_before

After screenshot:

3 21-minion-accuracy-equal-yours_after

@@ -1184,7 +1184,11 @@ function calcs.perform(env, avoidCache)
env.minion.modDB:NewMod("Armour", "BASE", m_floor((10 + env.minion.level * 2) * env.minion.minionData.armour * 1.038 ^ env.minion.level), "Base")
end
env.minion.modDB:NewMod("Evasion", "BASE", round((30 + env.minion.level * 5) * 1.03 ^ env.minion.level), "Base")
env.minion.modDB:NewMod("Accuracy", "BASE", round((17 + env.minion.level / 2) * (env.minion.minionData.accuracy or 1) * 1.03 ^ env.minion.level), "Base")
if modDB:Flag(nil, "MinionAccuracyEqualsAccuracy") then
env.minion.modDB:NewMod("Accuracy", "BASE", calcLib.val(modDB, "Accuracy") + calcLib.val(modDB, "Dex") * (modDB:Override(nil, "DexAccBonusOverride") or data.misc.AccuracyPerDexBase), "Player")
Copy link
Contributor Author

@synotim synotim Mar 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to manually account for the dex modifier here unexpectedly - originally incorrectly assumed calcLib.val(modDB, "Accuracy") would get me the final player value.

@QuickStick123 QuickStick123 added the enhancement New feature, calculation, or mod label Mar 31, 2023
@LocalIdentity LocalIdentity merged commit 757fee7 into PathOfBuildingCommunity:dev Mar 31, 2023
@LocalIdentity LocalIdentity changed the title 3.21/minion accuracy equals accuracy Minion Accuracy equals player Accuracy Mar 31, 2023
Dullson pushed a commit to Dullson/PathOfBuilding that referenced this pull request Dec 6, 2023
* Added support for the new minion's accuracy rating is equal to yours mastery

* Fix: have to account for accuracy from dex as well
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature, calculation, or mod
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants