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):
941941 # }
942942 stat_id = item [0 ][1 ]
943943 if stat_id in translation :
944+ stat_name = translation [stat_id ]
944945 # Assume anything under 1 million is a normal score screen item
945946 # Build order ids are generally 16 million+
946947 if stat_id < 1000000 :
947- stat_name = translation [stat_id ]
948948 for pid , value in enumerate (item [1 ]):
949949 if not value : continue
950950
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