class DisassembleAction extends BaseItemAction
{

	public override function CompleteAction( gameInstance : GameInstance )
	{
		var disassembleRequest : DisassembleItemRequest;
		var i : Int32;
		if( GetItemData().HasTag( 'UnequipBlocked' ) || GetItemData().HasTag( 'Quest' ) )
		{
			return;
		}
		if( EquipmentSystem.GetInstance( GetExecutor() ).IsEquipped( GetExecutor(), GetItemData().GetID() ) )
		{
			return;
		}
		for( i = 0; i < GetRequestQuantity(); i += 1 )
		{
			super.CompleteAction( gameInstance );
		}
		disassembleRequest = new DisassembleItemRequest;
		disassembleRequest.target = GetExecutor();
		disassembleRequest.itemID = GetItemData().GetID();
		disassembleRequest.amount = GetRequestQuantity();
		CraftingSystem.GetInstance( gameInstance ).QueueRequest( disassembleRequest );
	}

}

