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
@@ -449,11 +449,26 @@ int ScoreKeeperMAX2::TapNoteScoreToDancePoints( TapNoteScore tns )
/* This is used for Oni percentage displays. Grading values are currently in
* StageStats::GetGrade. */
const int TapScoreValues[NUM_TAP_NOTE_SCORES] = { 0, 0, 0, 0, +1, +2, +3 };
int TapScoreValues[NUM_TAP_NOTE_SCORES] =
{
0,
PREFSMAN->m_iPercentScoreMissWeight,
PREFSMAN->m_iPercentScoreBooWeight,
PREFSMAN->m_iPercentScoreGoodWeight,
PREFSMAN->m_iPercentScoreGreatWeight,
PREFSMAN->m_iPercentScorePerfectWeight,
PREFSMAN->m_iPercentScoreMarvelousWeight,
};
return TapScoreValues[tns];
}
int ScoreKeeperMAX2::HoldNoteScoreToDancePoints( HoldNoteScore hns )
{
return TapNoteScoreToDancePoints(TNS_MARVELOUS);
int HoldScoreValues[NUM_TAP_NOTE_SCORES] =
{
0,
PREFSMAN->m_iPercentScoreNGWeight,
PREFSMAN->m_iPercentScoreOKWeight,
};
return HoldScoreValues[hns];
}