#NEWLINE# def create_vapor( pos , time , intensity ) : #NEWLINE# #INDENT# _color = random . randint ( 200 , 205 ) #NEWLINE# _effect = { #NEWLINE# #INDENT# 'type' : 'vapor' , #NEWLINE# 'age' : ( pos * ( 1 - intensity ) ) , #NEWLINE# 'age_max' : time , #NEWLINE# 'max_intensity' : 0.3 , #NEWLINE# 'color' : tcod . Color ( _color , _color , _color ) , #NEWLINE# 'pos' : list ( pos ) , #NEWLINE# 'callback' : process_vapor , #NEWLINE# 'draw_callback' : draw_vapor , #NEWLINE# 'unregister_callback' : None , #NEWLINE# #UNINDENT# } #NEWLINE# register_effect ( _effect )