#NEWLINE# def getTeamTalentTierTimes( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return self . teamTalentTierTimes #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# teamTalentTierLevel = [ [ ] , [ ] ] #NEWLINE# teamTalentTiersFirstPick = [ [ ] , [ ] ] #NEWLINE# teamTalentTiersLastPick = [ [ ] , [ ] ] #NEWLINE# players = self . getPlayers ( ) #NEWLINE# for ( playerIndex , playerTalentPicks ) in enumerate ( self . getTalents ( ) ) : #NEWLINE# #INDENT# player = players [ playerIndex ] #NEWLINE# for ( talentTierIndex , talentPick ) in enumerate ( playerTalentPicks ) : #NEWLINE# #INDENT# talentPickTime = talentPick [ 'seconds' ] #NEWLINE# teamIndex = player [ 'm_teamId' ] #NEWLINE# tiersFirstPick = teamTalentTiersFirstPick [ teamIndex ] #NEWLINE# if ( talentTierIndex >= len ( tiersFirstPick ) ) : #NEWLINE# #INDENT# tiersFirstPick . append ( talentPickTime ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( talentPickTime < tiersFirstPick [ talentTierIndex ] ) : #NEWLINE# #INDENT# tiersFirstPick [ talentTierIndex ] = talentPickTime #NEWLINE# #UNINDENT# #UNINDENT# tiersLastPick = teamTalentTiersLastPick [ teamIndex ] #NEWLINE# if ( talentTierIndex >= len ( tiersLastPick ) ) : #NEWLINE# #INDENT# tiersLastPick . append ( talentPickTime ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( talentPickTime > tiersLastPick [ talentTierIndex ] ) : #NEWLINE# #INDENT# tiersLastPick [ talentTierIndex ] = talentPickTime #NEWLINE# #UNINDENT# #UNINDENT# if ( talentTierIndex >= len ( teamTalentTierLevel [ teamIndex ] ) ) : #NEWLINE# #INDENT# teamTalentTierLevel [ teamIndex ] . append ( talentPick [ 'level' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# teamTalentTierLevel [ teamIndex ] [ talentTierIndex ] = talentPick [ 'level' ] #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . teamTalentTierTimes = [ [ ] , [ ] ] #NEWLINE# for teamIndex in xrange ( 2 ) : #NEWLINE# #INDENT# for ( talentTierIndex , level ) in enumerate ( teamTalentTierLevel [ teamIndex ] ) : #NEWLINE# #INDENT# self . teamTalentTierTimes [ teamIndex ] . append ( { #NEWLINE# #INDENT# 'earliest' : teamTalentTiersFirstPick [ teamIndex ] [ talentTierIndex ] , #NEWLINE# 'latest' : teamTalentTiersLastPick [ teamIndex ] [ talentTierIndex ] , #NEWLINE# 'level' : level , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return self . teamTalentTierTimes