https://github.com/jojobear13/shinpokered/blob/master/custom_functions/func_shiny.asm
All the core functions for shiny display are in here, but they do hook into lots of other places in the code. Should not be too hard to do if you just want an indicator on the hud.