Skip to content

Commit

Permalink
Change the way we handle total level, rank and XP
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Brown committed Nov 11, 2023
1 parent 31638fd commit 9b13e58
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions OSRSBytes/Hiscores.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,20 +168,9 @@ def __parseSkills(self):
subset = {}
# Totals
info = {}

# Split data into lists
for value in self.data.split(" "):
total_info = value.split(",")

# assign into dictionary
info['rank'] = total_info[0]
info['level'] = total_info[1]
info['experience'] = total_info[2]
break

subset['total'] = info


self.__skills = [
'total',
'attack',
'defense',
'strength',
Expand Down

0 comments on commit 9b13e58

Please sign in to comment.