Skip to content

Commit ae41bda

Browse files
committed
handle 3.7
1 parent a131d50 commit ae41bda

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

sc2reader/readers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def __call__(self, data, replay):
123123
tandem_id=data.read_bits(4) if replay.base_build >= 39576 and data.read_bool() else None,
124124
commander_mastery_level=data.read_uint32() if replay.base_build >= 42932 else None,
125125
commander_mastery_talents=[data.read_uint32() for i in range(data.read_bits(3))] if replay.base_build >= 42932 else None,
126+
reward_overrides=[data.read_unit32() for i in range(data.read_bits(17))] if replay.base_build >= 47185 else None,
126127
) for i in range(data.read_bits(5))],
127128
random_seed=data.read_uint32(),
128129
host_user_id=data.read_bits(4) if data.read_bool() else None,

test_replays/3.7.0/1.SC2Replay

70.2 KB
Binary file not shown.

test_replays/test_all.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,9 @@ def test_lotv_time(self):
516516
self.assertEqual(replay.length.seconds, 1002)
517517
self.assertEqual(replay.real_length.seconds, 1002)
518518

519+
def test_37(self):
520+
replay = sc2reader.load_replay("test_replays/3.7.0/1.SC2Replay")
521+
519522

520523
class TestGameEngine(unittest.TestCase):
521524
class TestEvent(object):

0 commit comments

Comments
 (0)