riddles are done!

This commit is contained in:
Luca Carnegie
2019-05-29 22:32:44 -04:00
parent 0fc289deb0
commit 48b8545cc6
5 changed files with 21 additions and 12 deletions

View File

@@ -40,15 +40,10 @@ public class Player extends Entity{
}
public void eat() {
// TODO Do we want health or hunger?
health+=5;
hunger+=5;
if(health > 100.0) {
health = 100.0;
}
if(hunger > 100.0) {
hunger = 100.0;
}
}
}