I don't know what I'm doing wrong, but the above code only seem to work sometimes/most things still spawn in as eggs, and then the things that do spawn in that are native to the area spawn in their alternate forms (like I keep seeing Alolan Geodudes and Hisuian Growlithes, Dark Morpeko, etc...