-
Notifications
You must be signed in to change notification settings - Fork 524
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
Incorrect Virtue Level calculation #5067
Comments
In talking to one other developer, they suggested the intent may have been to make it 0, 4k, 10k, Max. if that's the case, we should probably just make it a static point instead of a calculated midpoint. |
Also in a related note, it looks like the Virtue gump uses hardcoded values instead of GetMaxAmount(...)
|
The calculation is wrong because the value was changed from If your value is So the code simply needs to be reverted back to what RunUO had. |
In VirtueHelper class, the GetLevel method incorrectly determines seeker/follower tiers.
Proposed fix:
I believe we need to scale between 4,000 (which would be minimum for Seeker) and MaxAmount (which could be 20k, 21k, or 22k depending on the virtue). The calculated midpoint would be halfway between 4k and Max.
0 to 4,000 = None
4,000 to (calculated midpoint) = Seeker
(calculated midpoint) to Max-1 = Follower
Max = Knight
Proposed function change:
The text was updated successfully, but these errors were encountered: