Add score submission command. Add highscore management function. Change how config file and data file are defined.

This commit is contained in:
alwayscompiling
2022-06-29 19:52:19 -04:00
parent ed62836b7f
commit f204be8d52
5 changed files with 91 additions and 11 deletions
+1 -2
View File
@@ -56,8 +56,7 @@ def format_highscore_message(boss):
boss_category_scores = boss_data[f"{hardmode_category}_hardmode"]
if len(boss_category_scores) > i:
score = boss_category_scores[i]
for key, value in score.items():
ret_string += f"{i+1}: {key} - {value}".ljust(30, " ")
ret_string += f"{i+1}: {score[0]} - {score[1]}".ljust(30, " ")
else:
ret_string += f"{i+1}: submit your score".ljust(30, " ")
ret_string += "\n"