Replace: moveId -> move, moveIdx -> moveIndex (#2134)
This commit is contained in:
23 files changed
+133
-133
No files matched your search
+3
-3
@@ -326,8 +326,8 @@ u8 ContestAI_GetActionToUse(void)
|
||||
{
|
||||
// Randomly choose a move index. If it's the move
|
||||
// with the highest (or tied highest) score, return
|
||||
u8 moveIdx = MOD(Random(), MAX_MON_MOVES);
|
||||
u8 score = eContestAI.moveScores[moveIdx];
|
||||
u8 moveIndex = MOD(Random(), MAX_MON_MOVES);
|
||||
u8 score = eContestAI.moveScores[moveIndex];
|
||||
int i;
|
||||
for (i = 0; i < MAX_MON_MOVES; i++)
|
||||
{
|
||||
@@ -335,7 +335,7 @@ u8 ContestAI_GetActionToUse(void)
|
||||
break;
|
||||
}
|
||||
if (i == MAX_MON_MOVES)
|
||||
return moveIdx;
|
||||
return moveIndex;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user