Skip to content

fixed poison damage transformation#17

Closed
mgamperl wants to merge 1 commit intodschu012:masterfrom
mgamperl:bugs/12-fix-poison-damage
Closed

fixed poison damage transformation#17
mgamperl wants to merge 1 commit intodschu012:masterfrom
mgamperl:bugs/12-fix-poison-damage

Conversation

@mgamperl
Copy link
Contributor

fixes #12, still marked as draft as discussion may be necessary.

let min = Math.floor((values[0] * values[2]) / 256);
let max = Math.floor((values[1] * values[2]) / 256);
let seconds = Math.floor(values[2] / 25);
values = [min, max, seconds];
Copy link
Owner

Choose a reason for hiding this comment

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

I think an issue w/ doing it here is I am trying to mirror the output of https://github.com/nokka/d2s, because I have a plugin for the slashdiablo armory that will take their jsons (from his library) and create a d2s from it. So if I were to write a save w/ this change I'd think the new save would get the wrong values for psn dmg.

@dschu012 dschu012 mentioned this pull request May 6, 2021
@mgamperl mgamperl marked this pull request as ready for review May 6, 2021 14:59
@mgamperl
Copy link
Contributor Author

This is included in #31 so I will close it.

@mgamperl mgamperl closed this May 13, 2021
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.

magical_attributes poison damage

2 participants