#NEWLINE# def calculate_all_effects( ) : #NEWLINE# #INDENT# _remove_lights = [ ] #NEWLINE# for effect in EFFECTS . values ( ) : #NEWLINE# #INDENT# effect [ 'callback' ] ( effect ) #NEWLINE# #UNINDENT# for light in WORLD_INFO [ 'lights' ] : #NEWLINE# #INDENT# if light [ 'fade' ] : #NEWLINE# #INDENT# light [ 'brightness' ] -= light [ 'fade' ] #NEWLINE# #UNINDENT# if ( light [ 'brightness' ] <= 0 ) : #NEWLINE# #INDENT# _remove_lights . append ( light ) #NEWLINE# #UNINDENT# #UNINDENT# for light in _remove_lights : #NEWLINE# #INDENT# delete_light ( light )