fundamental progression, fixes

This commit is contained in:
muskit
2022-09-25 18:31:50 -07:00
committed by msk
parent 65a0c898e9
commit 8f4b8679df
9 changed files with 60 additions and 15 deletions
+4 -1
View File
@@ -7,14 +7,17 @@ niji_exid = dict()
talents = dict()
def __create_dict(file, _dict):
print(f'Initializing talents\' account list from {file}...')
global talents
with open(file, 'r') as f:
for line in f:
words = line.split()
if len(words) == 2 and line[0] != '#':
name, id = line.split()
_dict[int(id)] = name
talents[int(id)] = name
name = util.get_username_online(id) # attempt to get updated name
talents[int(id)] = name
_dict[int(id)] = name
def init():
global holo_en
global holo_id