localdex 0.2.46__py3-none-any.whl → 0.2.48__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- localdex/core.py +5 -667
- localdex/name_normalizer.py +23 -0
- localdex/stat_calculator.py +699 -0
- {localdex-0.2.46.dist-info → localdex-0.2.48.dist-info}/METADATA +1 -1
- {localdex-0.2.46.dist-info → localdex-0.2.48.dist-info}/RECORD +9 -8
- {localdex-0.2.46.dist-info → localdex-0.2.48.dist-info}/WHEEL +0 -0
- {localdex-0.2.46.dist-info → localdex-0.2.48.dist-info}/entry_points.txt +0 -0
- {localdex-0.2.46.dist-info → localdex-0.2.48.dist-info}/licenses/LICENSE +0 -0
- {localdex-0.2.46.dist-info → localdex-0.2.48.dist-info}/top_level.txt +0 -0
localdex/name_normalizer.py
CHANGED
@@ -81,6 +81,24 @@ class PokemonNameNormalizer:
|
|
81
81
|
else:
|
82
82
|
return 'necrozma'
|
83
83
|
|
84
|
+
#Oricorio forms
|
85
|
+
if 'oricorio' in name_lower:
|
86
|
+
if 'baile' in name_lower:
|
87
|
+
return 'oricorio-baile'
|
88
|
+
elif 'pa' in name_lower:
|
89
|
+
return 'oricorio-pau'
|
90
|
+
elif 'sensu' in name_lower:
|
91
|
+
return 'oricorio-sensu'
|
92
|
+
elif 'pom' in name_lower:
|
93
|
+
return 'oricorio-pom-pom'
|
94
|
+
else:
|
95
|
+
return 'oricorio-baile'
|
96
|
+
|
97
|
+
if 'porygon-z' in name_lower:
|
98
|
+
return 'porygon-z'
|
99
|
+
|
100
|
+
if 'porygon-z' in name_lower:
|
101
|
+
return 'porygon-z'
|
84
102
|
# Florges forms
|
85
103
|
if 'florges' in name_lower:
|
86
104
|
return 'florges'
|
@@ -98,7 +116,12 @@ class PokemonNameNormalizer:
|
|
98
116
|
return 'alcremie-gmax'
|
99
117
|
else:
|
100
118
|
return 'alcremie'
|
119
|
+
if 'polteageist' in name_lower:
|
120
|
+
return 'polteageist'
|
101
121
|
|
122
|
+
if 'poltchageist' in name_lower:
|
123
|
+
return 'poltchageist'
|
124
|
+
|
102
125
|
if 'oinkologne' in name_lower:
|
103
126
|
if 'f' in name_lower:
|
104
127
|
return 'oinkologne-female'
|