v0.3.0: improved previous hunger mechanics changes, now better coded & clarified

This commit is contained in:
Evan Debenham
2015-04-05 12:40:01 -04:00
parent 80c591e64a
commit 4e34e81365
13 changed files with 63 additions and 15 deletions
@@ -423,7 +423,7 @@ public class Hero extends Char {
if (curAction == null) {
if (restoreHealth) {
if (isStarving() || HP >= HT) {
if (isStarving() || HP >= HT || Dungeon.level.locked) {
restoreHealth = false;
} else {
spend( TIME_TO_REST ); next();