private static PKM SetUnShinyPID(PKM pkm, GameVersion gameVersion) { PKM tmp = pkm.Clone(); switch (tmp.Format) { case 1: case 2: tmp.Gen12UnShiny(); return(tmp); case 3: case 4: case 5: tmp.Gen345UnShiny(); return(tmp); default: // Gen6-Gen8 tmp.Gen678UnShiny(); return(tmp); } }