Skip to content

Commit ef22b9b

Browse files
committed
also retrieve Structures Razed Count
1 parent 30c2bb9 commit ef22b9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sc2reader/resources.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ def load_player_stats(self):
862862
# Value is as seen on the score screen in game.
863863
stats_items = self.parts[3][0]
864864
if len(self.parts) > 4:
865-
stats_items.append(self.parts[4][0][1])
865+
stats_items.append(self.parts[4][0][0])
866866

867867
for item in stats_items:
868868
stat_name = self.translations['enUS'][item[0][1]]
@@ -970,6 +970,7 @@ def load_players(self):
970970
player.units_killed = stats.get('Killed Unit Count', None)
971971
player.structures_built = stats.get('Structures Built', None)
972972
player.units_trained = stats.get('Units Trained', None)
973+
player.structures_razed = stats.get('Structures Razed Count', None)
973974

974975
# Graphs Tab
975976
player.army_graph = stats.get('Army Graph')

0 commit comments

Comments
 (0)