From 9b13e58a3b95dbfe3294110f98d3c6db50d79552 Mon Sep 17 00:00:00 2001 From: Jack Brown Date: Sat, 11 Nov 2023 23:16:42 +0000 Subject: [PATCH] Change the way we handle total level, rank and XP --- OSRSBytes/Hiscores.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/OSRSBytes/Hiscores.py b/OSRSBytes/Hiscores.py index 2483f32..2f0b2f4 100644 --- a/OSRSBytes/Hiscores.py +++ b/OSRSBytes/Hiscores.py @@ -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',