add NumControllerSteps
This commit is contained in:
@@ -1622,9 +1622,11 @@ void Player::StepStrumHopo( int col, int row, const RageTimer &tm, bool bHeld, b
|
||||
{
|
||||
// TODO: remove use of PlayerNumber
|
||||
PlayerNumber pn = m_pPlayerState->m_PlayerNumber;
|
||||
int iWeightPounds = 120;
|
||||
Profile *pProfile = PROFILEMAN->GetProfile( pn );
|
||||
if( pProfile )
|
||||
{
|
||||
iWeightPounds = pProfile->GetCalculatedWeightPounds();
|
||||
|
||||
int iNumTracksHeld = 0;
|
||||
for( int t=0; t<m_NoteData.GetNumTracks(); t++ )
|
||||
{
|
||||
@@ -1651,7 +1653,7 @@ void Player::StepStrumHopo( int col, int row, const RageTimer &tm, bool bHeld, b
|
||||
}
|
||||
|
||||
m_pPlayerStageStats->m_fCaloriesBurned += fCals;
|
||||
}
|
||||
m_pPlayerStageStats->m_iNumControllerSteps ++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ void PlayerStageStats::Init()
|
||||
m_iSongsPassed = 0;
|
||||
m_iSongsPlayed = 0;
|
||||
m_fLifeRemainingSeconds = 0;
|
||||
m_iNumControllerSteps = 0;
|
||||
m_fCaloriesBurned = 0;
|
||||
|
||||
ZERO( m_iTapNoteScores );
|
||||
@@ -90,6 +91,7 @@ void PlayerStageStats::AddStats( const PlayerStageStats& other )
|
||||
m_radarActual += other.m_radarActual;
|
||||
m_iSongsPassed += other.m_iSongsPassed;
|
||||
m_iSongsPlayed += other.m_iSongsPlayed;
|
||||
m_iNumControllerSteps += other.m_iNumControllerSteps;
|
||||
m_fCaloriesBurned += other.m_fCaloriesBurned;
|
||||
m_fLifeRemainingSeconds = other.m_fLifeRemainingSeconds; // don't accumulate
|
||||
m_bDisqualified |= other.m_bDisqualified;
|
||||
@@ -634,6 +636,7 @@ bool PlayerStageStats::IsDisqualified() const
|
||||
LuaFunction( GetGradeFromPercent, GetGradeFromPercent( FArg(1), false ) )
|
||||
|
||||
|
||||
|
||||
// lua start
|
||||
#include "LuaBinding.h"
|
||||
|
||||
|
||||
@@ -59,6 +59,7 @@ public:
|
||||
float m_fLifeRemainingSeconds; // used in survival
|
||||
|
||||
// workout
|
||||
float m_iNumControllerSteps;
|
||||
float m_fCaloriesBurned;
|
||||
|
||||
map<float,float> m_fLifeRecord;
|
||||
|
||||
Reference in New Issue
Block a user