parameters: ()
return_statement: return
docstring: Auto-equips equipment if possible.
docstring_summary: Auto-equips equipment if possible.
docstring_tokens: Auto - equips equipment if possible .
function: def OnAutoEquip ():
  	"""Auto-equips equipment if possible."""
  
  	if GemRB.IsDraggingItem ()!=1:
  		return
  
  	pc = GemRB.GameGetSelectedPCSingle ()
  
  	#-1 : drop stuff in equipable slots (but not inventory)
  	GemRB.DropDraggedItem (pc, -1)
  
  	if GemRB.IsDraggingItem ()==1:
  		GemRB.PlaySound("GAM_47") #failed equip
  
  	UpdateInventoryWindow ()
  	return
function_tokens: def OnAutoEquip ( ) : if GemRB . IsDraggingItem ( ) != 1 : return pc = GemRB . GameGetSelectedPCSingle ( ) #-1 : drop stuff in equipable slots (but not inventory) GemRB . DropDraggedItem ( pc , - 1 ) if GemRB . IsDraggingItem ( ) == 1 : GemRB . PlaySound ( "GAM_47" ) #failed equip UpdateInventoryWindow ( ) return