-
Notifications
You must be signed in to change notification settings - Fork 739
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 performance factor breaking stamina recovery #6204
Conversation
I don't think that this is correct. But if it really fixes a gameplay issue. Go for it.
But then we would also have to change this line:
|
I don't think it's how it's meant either, this is more of a hotfix tbh. If you have an idea where else the problem might be let me know. |
I think part of the problem is that we derive Instead we should use |
That's definitely not the underlying issue. The stamina bar displays only the anaerobic reserve which very visibly shows that it does essentially not recover at all. |
Right. What if the performance factor would also modify |
GVAR(anFatigue) = GVAR(anFatigue) + _anPower * (0.057 / GVAR(peakPower)) * 1.1; | ||
// 1264.64 = 0.057 / peakPower with default VO2 max | ||
// See #6163 | ||
GVAR(anFatigue) = GVAR(anFatigue) + _anPower * 1264.64 * 1.1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1264.64
seems to be very high. Where did you get peakPower 0.00004507211
from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, we just want to replace GVAR(peakPower)
with the default value of 1264, not the whole term inside the ()
Just to clarify my changes But I'm not sure if this is correct, line 58 increases fatigue and line 69 handles recovery. With this PR we change fatigue increase to ignore peakPower, but recovery still is negatively effected by it. |
I'm still not convinced by this PR. But I sadly don't have time to take a closer look. One solution might be to finish this PR: #5723 It should be almost ready to go if we leave the Experimental movement speed limiter out. |
Closing due to age and/or inactivity, unlikely to be finished or has to be reworked due to other changes over the years. May be re-opened if someone finds it useful, even better just open a new up-to-date PR. |
When merged this pull request will:
From the original VBS documentation:
Acidosis accumulation
anaerobicFatigue += anaerobicDwork * maxPowerFatigueRatio * 1.1;
[...]
maxPowerFatigueRatio
is a constant designed to scale the accumulation and recovery of anaerobicFatigue:maxPowerFatigueRatio = 0.057 / peakPower;
They might mean that it's a constant regardless of the actual peakPower, which is calculated from the VO₂max (which in turn is adjusted by the performance factor). This seems to fix issue #6163.