It's basically just lighting and a shader that restricts all colors based on a palette.
Ah the magic of shader. I see, thank you