Add LifeMultiplier.

This commit is contained in:
Colby Klein
2008-12-05 02:23:55 +00:00
parent 0624f2f207
commit 6637549b5c
3 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -23,6 +23,7 @@ LifeMeterBar::LifeMeterBar()
DANGER_THRESHOLD.Load ("LifeMeterBar","DangerThreshold");
INITIAL_VALUE.Load ("LifeMeterBar","InitialValue");
HOT_VALUE.Load ("LifeMeterBar","HotValue");
LIFE_MULTIPLIER.Load ( "LifeMeterBar","LifeMultiplier");
MIN_STAY_ALIVE.Load ("LifeMeterBar","MinStayAlive");
m_fLifePercentChange.Load( "LifeMeterBar", LIFE_PERCENT_CHANGE_NAME, NUM_ScoreEvent );
@@ -225,7 +226,7 @@ void LifeMeterBar::ChangeLife( float fDeltaLife )
}
m_fLifePercentage += fDeltaLife;
CLAMP( m_fLifePercentage, 0, 1 );
CLAMP( m_fLifePercentage, 0, LIFE_MULTIPLIER );
AfterLifeChanged();
}