File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -941,10 +941,10 @@ def load_player_stats(self):
941
941
# }
942
942
stat_id = item [0 ][1 ]
943
943
if stat_id in translation :
944
+ stat_name = translation [stat_id ]
944
945
# Assume anything under 1 million is a normal score screen item
945
946
# Build order ids are generally 16 million+
946
947
if stat_id < 1000000 :
947
- stat_name = translation [stat_id ]
948
948
for pid , value in enumerate (item [1 ]):
949
949
if not value : continue
950
950
Original file line number Diff line number Diff line change 13
13
def test_a_WoL_s2gs ():
14
14
summary = sc2reader .load_game_summary ("test_s2gs/s2gs1.s2gs" )
15
15
assert summary .players [0 ].resource_collection_rate == 1276
16
+ assert summary .players [0 ].build_order [0 ].order == 'Probe'
16
17
17
18
def test_a_HotS_s2gs ():
18
19
summary = sc2reader .load_game_summary ("test_s2gs/hots1.s2gs" )
19
20
assert summary .players [0 ].resource_collection_rate == 1599
21
+ assert summary .players [0 ].build_order [0 ].order == 'SCV'
You can’t perform that action at this time.
0 commit comments