Just a word about the smart drop system which was mentionned, in a game with fix classes, you can have a smart drop system providing you an item you can wear with suitable bonus, but in a game like the Divinity you can build up your character the way you want so the way you want to balance his stats is entirely up to you. In those conditions, it is hard to judge what is or is not a suitable loot so talking about smart drop system is in my opinion irrelevant
You don't have the option of looking at a class, but you can certainly look at the chosen skills and attributes.
You can also go the more open route of popping up a (limited) choice of items and telling the player to choose one as a reward.
Many games do this and to be honest, the whole "You always get what you want perfectly tailored to you" is one of the things that is killing gaming in general. The whole point is that you may not get what you want, you may get lucky, you may not and if it is such a big issue that you have to have something specific, just cheat to get it and not expect the basic game features themselves to hand you exactly what you were expecting.