Using RGB color constants where appropiate

This commit is contained in:
Eduardo Quezada
2023-07-31 15:33:14 -04:00
parent 39192725f2
commit f8c0f91c66
11 changed files with 35 additions and 35 deletions
+4 -4
View File
@@ -2898,13 +2898,13 @@ static u32 Cmd_FinishGame(struct BerryCrushGame *game, u8 *args)
case 0:
game->gameState = STATE_FINISHED;
PlaySE(SE_M_STRENGTH);
BlendPalettes(PALETTES_ALL, 8, RGB(31, 31, 0));
BlendPalettes(PALETTES_ALL, 8, RGB_YELLOW);
game->gfx.counter = 2;
break;
case 1:
if (--game->gfx.counter != (u8)-1)
return 0;
BlendPalettes(PALETTES_ALL, 0, RGB(31, 31, 0));
BlendPalettes(PALETTES_ALL, 0, RGB_YELLOW);
game->gfx.vibrationIdx = 4;
game->gfx.counter = 0;
game->gfx.numVibrations = sIntroOutroVibrationData[game->gfx.vibrationIdx][0];
@@ -2955,13 +2955,13 @@ static u32 Cmd_HandleTimeUp(struct BerryCrushGame *game, u8 *args)
case 0:
game->gameState = STATE_TIMES_UP;
PlaySE(SE_FAILURE);
BlendPalettes(PALETTES_ALL, 8, RGB(31, 0, 0));
BlendPalettes(PALETTES_ALL, 8, RGB_RED);
game->gfx.counter = 4;
break;
case 1:
if (--game->gfx.counter != (u8)-1)
return 0;
BlendPalettes(PALETTES_ALL, 0, RGB(31, 0, 0));
BlendPalettes(PALETTES_ALL, 0, RGB_RED);
game->gfx.counter = 0;
break;
case 2: