#NEWLINE# def with_spellcasting_factory( self , spellcasting_factory = None ) : #NEWLINE# #INDENT# '\n        Configure action factory to use real magic factory\n\n        .. versionadded:: 0.9\n        ' #NEWLINE# if ( not spellcasting_factory ) : #NEWLINE# #INDENT# self . use_real_spellcasting_factory = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( spellcasting_factory , 'build' ) : #NEWLINE# #INDENT# self . factories . append ( spellcasting_factory . build ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . factories . append ( spellcasting_factory ) #NEWLINE# #UNINDENT# #UNINDENT# return self