void SetCurrentPalette(Palette palette)
{
for (var i = 0; i < 256; i++)
{
var color = palette.Colors[i];
if (Game.Version >= 5 && Game.Version <= 6)
{
if (i < 15 || i == 15 || color.R < 252 || color.G < 252 || color.B < 252)
{
CurrentPalette.Colors[i] = color;
}
}
else
{
CurrentPalette.Colors[i] = color;
}
}
if (Game.Version == 8)
{
Array.Copy(_currentPalette.Colors, _darkenPalette.Colors, _darkenPalette.Colors.Length);
}
SetDirtyColors(0, 255);
}