private static PKM SetSquareShinyPID(PKM pkm, GameVersion gameVersion) { PKM tmp = pkm.Clone(); switch (tmp.Format) { case 1: case 2: tmp.Gen12Shiny(); return(tmp); case 3: case 4: case 5: tmp.Gen345Shiny(Shiny.AlwaysSquare); return(tmp); default: // Gen6-Gen8 tmp.Gen678Shiny(Shiny.AlwaysSquare); return(tmp); } }