reinstate MaxRegenComboAfterMiss Preference
This preference existed in previous versions of StepMania (3.95, at least) and is needed to properly emulate certain games (namely, In The Groove). This PR brings back the code as seen here: https://github.com/sigatrev/Stepmania-3.95/blob/4af304c51aeeedacd07f612d7f0e5ecaa81cce19/LifeMeterBar.cpp#L228-L233 Unlike in SM3.95, however, I've now set the default value to be 5, the same as the RegenComboAfterMiss. If players don't change the value, they won't see any difference in behavior in SM5. If players want, they can manually set the preference to 10 (or a value of their choosing) to emulate the game of their choice.
This commit is contained in:
@@ -211,7 +211,13 @@ void LifeMeterBar::ChangeLife( float fDeltaLife )
|
||||
fDeltaLife *= 1 + (float)m_iProgressiveLifebar/8 * m_iMissCombo;
|
||||
// do this after; only successive W5/miss will increase the amount of life lost.
|
||||
m_iMissCombo++;
|
||||
m_iComboToRegainLife = PREFSMAN->m_iRegenComboAfterMiss;
|
||||
/* Increase by m_iRegenComboAfterMiss; never push it beyond m_iMaxRegenComboAfterMiss
|
||||
* but don't reduce it if it's already past. */
|
||||
const int NewComboToRegainLife = min(
|
||||
(int)PREFSMAN->m_iMaxRegenComboAfterMiss,
|
||||
m_iComboToRegainLife + PREFSMAN->m_iRegenComboAfterMiss );
|
||||
|
||||
m_iComboToRegainLife = max( m_iComboToRegainLife, NewComboToRegainLife );
|
||||
}
|
||||
|
||||
// If we've already failed, there's no point in letting them fill up the bar again.
|
||||
|
||||
Reference in New Issue
Block a user