Intelligent fire power selection that takes into account my energy and hit rate in current situation
Minor cleanup and refactoring