def _equip_clothing(life,id):
	item = get_inventory_item(life,id)
	
	if not can_wear_item(life, id):
		return False
	
	_limbs = get_all_limbs(life['body'])
	
	#TODO: Faster way to do this with sets
	for limb in item['attaches_to']:
		if not limb in _limbs:
			logging.warning('Limb not found: %s' % limb)
			return False
	
	remove_item_in_storage(life,id)
	
	logging.debug('%s puts on a %s.' % (life['name'][0],item['name']))
	
	if item['attaches_to']:			
		for limb in item['attaches_to']:
			attach_item_to_limb(life['body'],item['uid'],limb)
	
	return True
Registers an error handler that becomes active for this blueprint
dataset/ETHPy150Open flags/Reactor-3/life.py/_equip_clothing--crossover with--dataset/ETHPy150Open zeaphoo/cocopot/cocopot/blueprints.py/Blueprint.errorhandler