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 a few regen every 4 seconds mods #6775

Conversation

Regisle
Copy link
Member

@Regisle Regisle commented Oct 1, 2023

Fixes #6774

The function in modparser doubles up the first match, so function(interval, percent, duration) is really function(interval, interval, percent) and should instead be written as function(interval, _, percent, duration)

This causes it to use the interval again as the percent value

I also checked the rest of the file and there was only one other error with the first value being a number, I did not look to see if there were any functions with an invalid non-number second param

@LocalIdentity LocalIdentity added the bug: calculation Numerical differences label Oct 2, 2023
@LocalIdentity LocalIdentity merged commit 3455b34 into PathOfBuildingCommunity:dev Oct 2, 2023
@Regisle Regisle deleted the fixModParserSecondParamError branch October 2, 2023 11:35
Regisle added a commit to Regisle/PathOfBuilding that referenced this pull request Oct 12, 2023
* fix mod parser second parameter error

* madcache
shafouz pushed a commit to shafouz/PathOfBuilding that referenced this pull request Dec 8, 2023
* fix mod parser second parameter error

* madcache
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.

Energy Shield/Evasion Regeneration Mastery is miscalculated
2 participants