re-simplify

This commit is contained in:
Glenn Maynard
2003-07-12 21:41:12 +00:00
parent a44b6d0a86
commit bf5cd55bb6
+3 -23
View File
@@ -518,29 +518,9 @@ float UnlockSystem::UnlockAddSP(float credit)
float UnlockSystem::UnlockAddSP(Grade credit)
{
ReadValues("Data/MemCard.ini");
switch (credit)
{
case GRADE_AAAA:
SongPoints += 20;
break;
case GRADE_AAA:
SongPoints += 10;
break;
case GRADE_AA:
SongPoints += 5;
break;
case GRADE_A:
SongPoints += 4;
break;
case GRADE_B:
SongPoints += 3;
break;
case GRADE_C:
SongPoints += 2;
break;
case GRADE_D:
SongPoints += 1;
}
const float SongPointsVals[NUM_GRADES] = { -1 /* unused */, 0, 1, 2, 3, 4, 5, 10, 20 };
SongPoints += SongPointsVals[credit];
WriteValues("Data/MemCard.ini");
return SongPoints;