Removes dashes in ability names
This commit is contained in:
@@ -31,7 +31,9 @@ def get_target_abilities(ability_data_path):
|
|||||||
|
|
||||||
species_name = line[0].split("-")[0].lower() # Removes the "-Mega" suffix and sends the name to lower case
|
species_name = line[0].split("-")[0].lower() # Removes the "-Mega" suffix and sends the name to lower case
|
||||||
|
|
||||||
ability = (line[1].replace(" ", "")).lower() # Removes the spaces
|
ability = (line[1].replace(" ", "")) # Removes the spaces
|
||||||
|
ability = ability.replace("-", "") # Removes the dashes
|
||||||
|
ability = ability.lower()
|
||||||
ability_data[species_name] = ability
|
ability_data[species_name] = ability
|
||||||
|
|
||||||
return ability_data
|
return ability_data
|
||||||
|
|||||||
Reference in New Issue
Block a user