Since I started reading the books I feel that I definitely saw a few inspirations for things featured in the two games. But oh boy do I wish for them to include this lovely bit in some form:
So Dandelion frees a djinn, Geralt gets the to have the wishes, unbeknownst to them. And thus he unwittingly wishes for the Djinn to "piss off and **** yourself", which leaves the poor thing with no choice but to obey
Was laughing way too hard about that when it became clear in the story, heh.
Oh, the second wish, unwittingly still, is "I hope you explode/burst you son of a bitch" said to a guard.
Did I mention that technically it's a love story?