more rave balancing

add "noquads"
This commit is contained in:
Chris Danford
2004-01-12 03:47:55 +00:00
parent 43d23e5b3a
commit b555be59df
13 changed files with 66 additions and 20 deletions
+11 -4
View File
@@ -74,12 +74,19 @@ void PlayerAI::InitFromDisk()
}
TapNoteScore PlayerAI::GetTapNoteScore( int iCpuSkill, int iSumOfAttackLevels )
TapNoteScore PlayerAI::GetTapNoteScore( PlayerNumber pn )
{
// shouldn't call this unless we're CPU controlled
ASSERT( iCpuSkill>=0 && iCpuSkill<NUM_SKILL_LEVELS );
iCpuSkill -= iSumOfAttackLevels;
int iCpuSkill = GAMESTATE->m_iCpuSkill[pn];
int iSumOfAttackLevels =
GAMESTATE->m_fSecondsUntilAttacksPhasedOut[pn] > 0 ?
GAMESTATE->m_iLastPositiveSumOfAttackLevels[pn] :
0;
ASSERT( iCpuSkill>=0 && iCpuSkill<NUM_SKILL_LEVELS );
ASSERT( GAMESTATE->m_PlayerController[pn] == PC_CPU );
iCpuSkill -= iSumOfAttackLevels*3;
CLAMP( iCpuSkill, 0, NUM_SKILL_LEVELS-1 );
TapScoreDistribution& distribution = g_Distributions[iCpuSkill];