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

Add support for "against enemies within/further than" #734

Merged
merged 4 commits into from
Feb 8, 2025

Conversation

Blitz54
Copy link
Contributor

@Blitz54 Blitz54 commented Feb 7, 2025

Fixes # .

Description of the problem being solved:

A few tree nodes like "Death from Afar" and "Stand and Deliver" activate based on distance from the enemy. This has those nodes and the smaller nodes work. There is a pierce mod worder "Close Confines" that has slightly different wording again, but I didn't touch that as pierce chance hasn't been implemented yet.

I can't figure out how to get the config for enemy distance to show up using ifTagType OR ifMult, I can only get it to work as AND. So for now I removed the ifTagType, so that enemyDistance config is always visible. Which I don't think is a bad thing, as eventually accuracy needs to be properly implemented for PoB2, because by default there is accuracy dropoff by distance as a mechanic.

Also, not sure if an enemy being at exactly 2m should count as within 2m. Same as further than 6m, does 6m count as further than? Or does it need to be 61. It's currently coded for the exact number, but can easily add or subtract 1. My concern is if at some point down the road, there is something like "20% inc damage against enemies within 3m" and "20% inc damage against enemies further than 3m", would being at exactly 3m count as both?

Setting as draft for now

Steps taken to verify a working solution:

Link to a build that showcases this PR:

https://maxroll.gg/poe2/pob/ju5v605j

Before screenshot:

After screenshot:

image
image

@LocalIdentity LocalIdentity marked this pull request as ready for review February 8, 2025 05:10
@LocalIdentity LocalIdentity added the enhancement New feature, calculation, or mod label Feb 8, 2025
@LocalIdentity LocalIdentity merged commit 8ae73eb into PathOfBuildingCommunity:dev Feb 8, 2025
2 checks passed
@Blitz54 Blitz54 deleted the distance-mods-2 branch February 8, 2025 11:45
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.

2 participants