move percent score and and grading constants to prefs

This commit is contained in:
Chris Danford
2004-01-02 01:39:14 +00:00
parent 48c8ce5579
commit 4640fb10ad
4 changed files with 124 additions and 4 deletions
+17 -2
View File
@@ -16,6 +16,7 @@
#include "RageLog.h"
#include "SongManager.h"
#include "RageUtil.h"
#include "PrefsManager.h"
StageStats g_CurStageStats;
vector<StageStats> g_vPlayedStageStats;
@@ -145,8 +146,22 @@ Grade StageStats::GetGrade( PlayerNumber pn ) const
* is tricky since at that point the ScoreKeepers no longer exist.
*
* See http://www.aaroninjapan.com/ddr2.html ("Regular play scoring") */
const float TapScoreValues[NUM_TAP_NOTE_SCORES] = { 0, -8, -4, 0, +1, +2, +2 };
const float HoldScoreValues[NUM_HOLD_NOTE_SCORES] = { 0, 0, +6 };
const float TapScoreValues[NUM_TAP_NOTE_SCORES] =
{
0,
PREFSMAN->m_iGradeMissWeight,
PREFSMAN->m_iGradeBooWeight,
PREFSMAN->m_iGradeGoodWeight,
PREFSMAN->m_iGradeGreatWeight,
PREFSMAN->m_iGradePerfectWeight,
PREFSMAN->m_iGradeMarvelousWeight,
};
const float HoldScoreValues[NUM_HOLD_NOTE_SCORES] =
{
0,
PREFSMAN->m_iGradeNGWeight,
PREFSMAN->m_iGradeOKWeight,
};
float Possible = 0, Actual = 0;
int i;