Fix replay parser fucking up mods
@@ -85,7 +85,7 @@ class Replay(object):
self.score = self.read_int()
self.max_combo = self.read_short()
self.is_perfect_combo = self.read_byte()
- self.mods = self.read_int()
+ self.mod_combination = self.read_int()
self.life_bar_graph = self.read_string()
self.timestamp = datetime.datetime.min + datetime.timedelta(microseconds=self.read_long()/10)
self.parse_mod_combination()
@@ -105,6 +105,7 @@ class Replay(object):
bit_values_gen = bits(self.mod_combination)
self.mod_combination = frozenset(Mod(mod_val) for mod_val in bit_values_gen)
+
def parse_play_data(self, replay_data: bytes):
frames = []
lzma_len = self.read_int() # aka self.__replay_length
