File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -1044,7 +1044,7 @@ def load_players(self):
10441044
10451045 def __str__ (self ):
10461046 return "{0} - {1} {2}" .format (self .start_time ,self .game_length ,
1047- 'v' .join ('' .join (self . players [ p ]. race [0 ] for p in self . teams [ tid ] ) for tid in self .teams ))
1047+ 'v' .join ('' .join (p . play_race [0 ] for p in team . players ) for team in self .teams . values () ))
10481048
10491049
10501050
Original file line number Diff line number Diff line change @@ -16,13 +16,14 @@ def main():
1616 print ("\n " + "-" * 40 + "\n " )
1717 print ("= {0} =" .format (r ))
1818 for p in r .players :
19- print ("== {0} - {1} ==" .format (p .race , p .bnetid if not p .is_ai else "AI" ))
19+ print ("== {0} - {1}/{2} ==" .format (p .play_race , p . region , p .bnetid if not p .is_ai else "AI" ))
2020 for order in r .build_orders [p .pid ]:
21- print ("{0:0>2}:{1:0>2} {2:<35} {3:>2}/{4}" .format (order ['time' ] / 60 ,
22- order ['time' ] % 60 ,
23- order ['order' ]['name' ],
24- order ['supply' ],
25- order ['total_supply' ]))
21+ print ("{0:0>2}:{1:0>2} {2:<35} {3:>2}/{4}" .format (order .time / 60 ,
22+ order .time % 60 ,
23+ order .order ,
24+ order .supply ,
25+ order .total_supply ))
26+ print
2627
2728if __name__ == '__main__' :
2829 main ()
You can’t perform that action at this time.
0 commit comments