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

Fix self hit damage conversion #7351

Merged

Conversation

Regisle
Copy link
Member

@Regisle Regisle commented Feb 14, 2024

Fixes #7190 and issue created by normalisation, and taken as not applying to non-phys self hits

Fixes taken as being only from phys to something else (present from creation), not any ele to other, as well as normalisation being applied to the taken as (fixed for calc defence in #6844 but not this), and it only including generic and not hit specific taken as (introduced issue in #6803)

This also moves the function to calc defence and cleans it up a little

image

I would like to properly dedupe it with other calc defence stuff (eg takenHitFromDamage) as it likely has other issues with being out of date, but it is too much work for how much time I have for it at the moment and this is still an improvement.

@Paliak Paliak added the bug: calculation Numerical differences label Feb 18, 2024
@LocalIdentity LocalIdentity merged commit bf8bc06 into PathOfBuildingCommunity:dev Mar 22, 2024
2 checks passed
@Regisle Regisle deleted the FixSelfHitDamageConversion branch March 23, 2024 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: calculation Numerical differences
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Boneshatter self damage calulation with damage shifting mods
3 participants