Browse Source

Fixed dying getting you stuck in an eaten, but non-digesting, state

tags/v0.2.8
Fen Dweller 7 years ago
parent
commit
08e546c3b8
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      feast.js

+ 4
- 1
feast.js View File

@@ -388,8 +388,11 @@ function attackClicked(index) {


update([attack.attackPlayer(player)]); update([attack.attackPlayer(player)]);


if (player.health <= 0) {
if (player.health <= -100) {
update(["You die..."]); update(["You die..."]);
respawn(respawnRoom);
} else if (player.health <= 0) {
update(["You fall to the ground..."]);
if (player.prefs.prey) { if (player.prefs.prey) {
changeMode("eaten"); changeMode("eaten");
} else { } else {


Loading…
Cancel
Save