Skip to content

Commit d991b6f

Browse files
Merge remote-tracking branch 'origin/1.7.2' into 1.7.2
2 parents 321c4d5 + e4f477c commit d991b6f

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

cmd/pokemon/pokemon.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,17 @@ func PokemonCommand() (string, error) {
102102
var eggGroupSlice []string
103103

104104
for _, entry := range pokemonSpeciesStruct.EggGroups {
105-
capitalizedEggGroup := cases.Title(language.English).String(entry.Name)
106-
eggGroupSlice = append(eggGroupSlice, capitalizedEggGroup)
105+
modernEggGroupNames := map[string]string{
106+
"indeterminate": "Amorphous",
107+
}
108+
109+
if name, exists := modernEggGroupNames[entry.Name]; exists {
110+
eggGroupSlice = append(eggGroupSlice, name)
111+
} else {
112+
capitalizedEggGroup := cases.Title(language.English).String(entry.Name)
113+
eggGroupSlice = append(eggGroupSlice, capitalizedEggGroup)
114+
}
115+
107116
}
108117

109118
sort.Strings(eggGroupSlice)

0 commit comments

Comments
 (0)