Add the ExtraStageFreshBar metric.
This commit is contained in:
@@ -8,6 +8,13 @@ ________________________________________________________________________________
|
||||
StepMania 5.0 $next | 2011xxxx
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
2011/11/15
|
||||
----------
|
||||
* [LifeMeterBar] Added the ExtraStageFreshBar metric. Let the themer decide
|
||||
if extra stages should have their own life bar behavior. Note that this
|
||||
metric does NOT change the lifebar to the battery style. This metric starts
|
||||
as true. [Wolfman2000]
|
||||
|
||||
2011/11/14
|
||||
----------
|
||||
* [Mac OS X] Restore JPEG functionality. [Wolfman2000]
|
||||
|
||||
@@ -526,6 +526,8 @@ HotValue=1.0
|
||||
LifeMultiplier=1.0
|
||||
# How good you gotta hit it to keep it alive. ( W3 is 'Great' );
|
||||
MinStayAlive="TapNoteScore_W3"
|
||||
# If the life bar resets to "default" settings on an extra stage.
|
||||
ExtraStageFreshBar=true
|
||||
|
||||
# How much it changes
|
||||
LifePercentChangeW1=0.008
|
||||
|
||||
@@ -25,6 +25,7 @@ LifeMeterBar::LifeMeterBar()
|
||||
HOT_VALUE.Load ("LifeMeterBar","HotValue");
|
||||
LIFE_MULTIPLIER.Load ( "LifeMeterBar","LifeMultiplier");
|
||||
MIN_STAY_ALIVE.Load ("LifeMeterBar","MinStayAlive");
|
||||
EXTRA_STAGE_FRESH_BAR.Load ("LifeMeterBar","ExtraStageFreshBar");
|
||||
m_fLifePercentChange.Load( "LifeMeterBar", LIFE_PERCENT_CHANGE_NAME, NUM_ScoreEvent );
|
||||
|
||||
m_pPlayerState = NULL;
|
||||
@@ -306,7 +307,7 @@ void LifeMeterBar::UpdateNonstopLifebar()
|
||||
// if (iCleared > iTotal) iCleared = iTotal; // clear/iTotal <= 1
|
||||
// if (iTotal == 0) iTotal = 1; // no division by 0
|
||||
|
||||
if( GAMESTATE->IsAnExtraStage() )
|
||||
if( GAMESTATE->IsAnExtraStage() && EXTRA_STAGE_FRESH_BAR )
|
||||
{
|
||||
// extra stage is its own thing, should not be progressive
|
||||
// and it should be as difficult as life 4
|
||||
|
||||
@@ -38,6 +38,7 @@ private:
|
||||
ThemeMetric<float> INITIAL_VALUE;
|
||||
ThemeMetric<float> HOT_VALUE;
|
||||
ThemeMetric<float> LIFE_MULTIPLIER;
|
||||
ThemeMetric<bool> EXTRA_STAGE_FRESH_BAR;
|
||||
ThemeMetric<TapNoteScore> MIN_STAY_ALIVE;
|
||||
|
||||
ThemeMetric1D<float> m_fLifePercentChange;
|
||||
|
||||
Reference in New Issue
Block a user