mirror of
https://github.com/LazoCoder/Pokemon-Terminal
synced 2025-02-17 13:28:32 +00:00
move __pokemon_type_dictionary from class --> instance
https://github.com/LazoCoder/Pokemon-Terminal/pull/81#issuecomment-312487428 This is ready for review.
This commit is contained in:
parent
56cfcedb49
commit
47380b5df8
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,6 @@ class Pokemon:
|
|||
|
||||
class Database:
|
||||
"""The Database object is a container for all the supported Pokemon."""
|
||||
__pokemon_type_dictionary = {}
|
||||
__POKEMON_TYPES = ('normal', 'fire', 'fighting', 'water', 'flying',
|
||||
'grass', 'poison', 'electric', 'ground', 'psychic',
|
||||
'rock', 'ice', 'bug', 'dragon', 'ghost', 'dark',
|
||||
|
@ -73,6 +72,7 @@ class Database:
|
|||
def __init__(self):
|
||||
self.__pokemon_list = []
|
||||
self.__pokemon_dictionary = {}
|
||||
self.__pokemon_type_dictionary = {}
|
||||
self.directory = os.path.dirname(os.path.realpath(__file__))
|
||||
for pkmn_t in self.__POKEMON_TYPES:
|
||||
self.__pokemon_type_dictionary[pkmn_t] = []
|
||||
|
|
Loading…
Add table
Reference in a new issue