We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d991b6f commit 6ee6a86Copy full SHA for 6ee6a86
1 file changed
cmd/pokemon/pokemon.go
@@ -112,6 +112,20 @@ func PokemonCommand() (string, error) {
112
capitalizedEggGroup := cases.Title(language.English).String(entry.Name)
113
eggGroupSlice = append(eggGroupSlice, capitalizedEggGroup)
114
}
115
+ modernEggGroupNames = map[string]string{
116
+ "indeterminate": "Amorphous",
117
+ "ground": "Field",
118
+ "humanshape": "Human-Like",
119
+ "plant": "Grass",
120
+ "no-eggs": "Undiscovered",
121
+ }
122
+
123
+ if name, exists := modernEggGroupNames[entry.Name]; exists {
124
+ eggGroupSlice = append(eggGroupSlice, name)
125
+ } else {
126
+ capitalizedEggGroup := cases.Title(language.English).String(entry.Name)
127
+ eggGroupSlice = append(eggGroupSlice, capitalizedEggGroup)
128
129
130
131
0 commit comments