Skip to content

Commit

Permalink
Merge pull request #1704 from atummons/high_score_variable_update
Browse files Browse the repository at this point in the history
Fix Format of Values Saved to Data/High_score
  • Loading branch information
toomanybrians authored Jul 15, 2023
2 parents 6ee8e4b + b89d00d commit 9f90c8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mpf/modes/high_score/code/high_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ def _assign_vars(self, category_name, player):
j = 0
while j < len(self.vars[category_name]) and bool(self.vars[category_name]):
if 'player' in self.vars[category_name][j][0]:
var_dict[self.vars[category_name][j][0] + '.' + self.vars[category_name][j][1]] \
var_dict[self.vars[category_name][j][0] + '_' + self.vars[category_name][j][1]] \
= self.machine.game.player_list[player_num_index][self.vars[category_name][j][1]]
else:
var_dict[self.vars[category_name][j][0] + '.' + self.vars[category_name][j][1]] \
var_dict[self.vars[category_name][j][0] + '_' + self.vars[category_name][j][1]] \
= self.machine.variables.get_machine_var(self.vars[category_name][j][1])
j += 1
# return the dictionary of items for this specific player and category entry
Expand Down

0 comments on commit 9f90c8b

Please sign in to comment.