From 4c5abe44d09bc5a681d35140fc7e1c403d8c4598 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 3 Dec 2003 04:36:29 +0000 Subject: [PATCH] It's possible to get 100% (or higher) DP in battle mode while still having judgements under Perfect (due to runtime modifiers). Only give a AAA if all taps are marvelous or perfect. --- stepmania/src/StageStats.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/stepmania/src/StageStats.cpp b/stepmania/src/StageStats.cpp index 715aabd38e..aac8953e2d 100644 --- a/stepmania/src/StageStats.cpp +++ b/stepmania/src/StageStats.cpp @@ -116,6 +116,15 @@ Grade StageStats::GetGrade( PlayerNumber pn ) iHoldNoteScores[pn][HNS_NG] == 0 ) return GRADE_AAAA; + if( fPercentDancePoints > .9999 && + iTapNoteScores[pn][TNS_PERFECT] > 0 && + iTapNoteScores[pn][TNS_GREAT] == 0 && + iTapNoteScores[pn][TNS_GOOD] == 0 && + iTapNoteScores[pn][TNS_BOO] == 0 && + iTapNoteScores[pn][TNS_MISS] == 0 && + iHoldNoteScores[pn][HNS_NG] == 0 ) + return GRADE_AAA; + /* Based on the percentage of your total "Dance Points" to the maximum * possible number, the following rank is assigned: * @@ -128,8 +137,7 @@ Grade StageStats::GetGrade( PlayerNumber pn ) * Fail - E */ - if ( fPercentDancePoints == 1.00 ) return GRADE_AAA; - else if( fPercentDancePoints >= 0.93 ) return GRADE_AA; + if( fPercentDancePoints >= 0.93 ) return GRADE_AA; else if( fPercentDancePoints >= 0.80 ) return GRADE_A; else if( fPercentDancePoints >= 0.65 ) return GRADE_B; else if( fPercentDancePoints >= 0.45 ) return GRADE_C;