#NEWLINE# def _step_advance_step( self ) : #NEWLINE# #INDENT# if ( not self . advance_queue ) : #NEWLINE# #INDENT# self . validate ( ) #NEWLINE# return #NEWLINE# #UNINDENT# self . valid = False #NEWLINE# reel = self . advance_queue [ 0 ] #NEWLINE# if ( ( reel . config [ 'confirm' ] == 'strict' ) and ( not reel . hw_sync ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not reel . ready ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# #UNINDENT# self . log . debug ( 'Reel: %s, Limit: %s, Current assumed value: %s' , reel . name , reel . config [ 'limit_hi' ] , reel . assumed_value ) #NEWLINE# if ( ( reel . config [ 'limit_hi' ] == reel . assumed_value ) and ( not reel . rollover_reel_advanced ) ) : #NEWLINE# #INDENT# buddy_pulse = True #NEWLINE# reel . rollover_reel_advanced = True #NEWLINE# self . log . debug ( 'Setting buddy pulse' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# buddy_pulse = False #NEWLINE# #UNINDENT# self . advance_queue . popleft ( ) #NEWLINE# if reel . advance ( direction = 1 ) : #NEWLINE# #INDENT# self . log . debug ( "Reel '%s' accepted advance" , reel . name ) #NEWLINE# self . log . debug ( 'Reels (assumed): %s' , self . assumed_value_int ) #NEWLINE# try : #NEWLINE# #INDENT# self . log . debug ( 'Score: %s' , self . machine . game . player . score ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# self . machine . events . post ( ( ( 'reel_' + reel . name ) + '_advance' ) ) #NEWLINE# if buddy_pulse : #NEWLINE# #INDENT# if reel . rollover_reel : #NEWLINE# #INDENT# self . advance_queue . appendleft ( reel . rollover_reel ) #NEWLINE# self . _step_advance_step ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . machine . events . post ( ( ( 'scorereelgroup_' + self . name ) + '_rollover' ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . advance_queue . appendleft ( reel ) #NEWLINE# self . log . debug ( "Reel '%s' rejected advance. We'll try again." , reel . name )