*Move tooltip generation to separate function for reusing
Merge pull request #861 from igorko/powers

Move tooltip generation to separate function for reusing