Ported the Energy patch to QL 3.1.1

QL 3.1.1 added some extra stuff to the rating system that this energy
patch doesn't mirror yet, such as preference window options for default
energy and energy level count. Maybe I'll add them later.