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 @@ -945,10 +945,10 @@ def load_player_stats(self):
945945 # }
946946 stat_id = item [0 ][1 ]
947947 if stat_id in translation :
948+ stat_name = translation [stat_id ]
948949 # Assume anything under 1 million is a normal score screen item
949950 # Build order ids are generally 16 million+
950951 if stat_id < 1000000 :
951- stat_name = translation [stat_id ]
952952 for pid , value in enumerate (item [1 ]):
953953 if not value : continue
954954
Original file line number Diff line number Diff line change 1313def test_a_WoL_s2gs ():
1414 summary = sc2reader .load_game_summary ("test_s2gs/s2gs1.s2gs" )
1515 assert summary .players [0 ].resource_collection_rate == 1276
16+ assert summary .players [0 ].build_order [0 ].order == 'Probe'
1617
1718def test_a_HotS_s2gs ():
1819 summary = sc2reader .load_game_summary ("test_s2gs/hots1.s2gs" )
1920 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