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

Invalid value for the "X poison damage over Y seconds" attribute #3

Open
artcom-net opened this issue Oct 7, 2020 · 3 comments
Open
Assignees
Labels
bug Something isn't working fixed_in_dev This issue was fixed in the dev branch

Comments

@artcom-net
Copy link
Owner

artcom-net commented Oct 7, 2020

Attribute id = 57.
now: Adds 205-205 Poison Damage over 125 Seconds
expected: 100 poison damage over 5 seconds

@artcom-net artcom-net added the bug Something isn't working label Oct 7, 2020
@artcom-net artcom-net self-assigned this Oct 7, 2020
@artcom-net artcom-net changed the title Invalid value for the "X poison damage over Y Seconds" attribute Invalid value for the "X poison damage over Y seconds" attribute Oct 7, 2020
@artcom-net
Copy link
Owner Author

I don't know how to parse it yet.

@artcom-net artcom-net added the help wanted Extra attention is needed label Oct 9, 2020
@artcom-net
Copy link
Owner Author

I think I found a divisor for the damage and duration values:

  • 25 is a divisor for the duration as a result we get the count of seconds;
  • 10.25 is a divisor of the source damage value as a result we get damage per second;
  • the final formula looks like this: damage_value = round((source_damage / 10.25) * (source_duration / 25)) .

@artcom-net artcom-net added help wanted Extra attention is needed and removed help wanted Extra attention is needed labels Oct 14, 2020
@artcom-net
Copy link
Owner Author

artcom-net commented Oct 15, 2020

After long testing, I found a more accurate divisor factor for calculating damage per second: 10.24.

@artcom-net artcom-net removed the help wanted Extra attention is needed label Oct 15, 2020
artcom-net added a commit that referenced this issue Oct 15, 2020
- fixed damage calculation;
- fixed duration calculation;
- if the minimum damage is equal to the maximum, then a template "+X poison damage over Y seconds" is used, otherwise "Adds X-Y poison damage over Z seconds".
@artcom-net artcom-net added the fixed_in_dev This issue was fixed in the dev branch label Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed_in_dev This issue was fixed in the dev branch
Projects
None yet
Development

No branches or pull requests

1 participant