titleScreens[1].animPal[frame][col - 128] = color;
if (num == 1) { if (frame >= NUM_CHAR_ANIM_PALETTES) {  titleScreens[0].palette[col + 128] = color; } else { animPal[frame][col] = color; } } else  { if (col >= 112 && col < 128) {  if (frame >= NUM_CHAR_ANIM_PALETTES) { animPal[frame - NUM_CHAR_ANIM_PALETTES][col - 112] = color; } else { super.setPaletteColor(col, 0, color); } } else if (col >= 128 && col < 144) {  titleScreens[1] .setPaletteColor(col - 128, frame, color); } else { super.setPaletteColor(col, 0, color); } }
        public void setPaletteColor(int col, int frame, Color color)        {            if (frame < 0 || (num == 0 && frame >= NUM_ANIM_PALETTES)                || (num == 1 && frame >= NUM_CHAR_ANIM_PALETTES)                || (num == 0 && (col < 112 || col >= 144)))            {                super.setPaletteColor(col, 0, color);            }            else if (num == 1)            {                animPal[frame][col] = color;            }            else if (col < 128)            {                animPal[frame][col - 112] = color;            }            else            {                titleScreens[1].animPal[frame][col - 128] = color;            }        }