Max Energy change

Changing Max Energy check into a more generalized function to be called
for max stamina checks as well
FB ID fix

Fix from Yinzanat
Merge pull request #154 from Artifice/master

FB ID fix