The check now validates that the player has ACTUALLY died before
displaying that they died on the front end.
}
break;
case 'monster':
- // prompt to return to town and don't let them do anything
- html.push(`<p>You were killed...</p>`);
+ if(roundData.player.hp === 0) {
+ html.push(`<p>You were killed...</p>`);
+ }
html.push('<p><button hx-get="/player/explore" hx-target="#explore">Back to Town</button></p>');
break;
case 'in-progress':