Merge pull request #341 from fdelapena/master

Add initial Emscripten support for Player
Remove non-persistent conditions (e.g sleep) after battle ends
Make the code actually compile
Use the existing fuction instead of duplicating the code
Formatting: remove stray tab
Refernce enum values correctly
Merge pull request #343 from rohkea/sleep

Remove non-persistent conditions (e.g sleep) after battle ends