From 330af759ef5ba017a01ebca654db166d9097f961 Mon Sep 17 00:00:00 2001 From: raeleus Date: Sat, 12 Oct 2024 10:19:55 -0700 Subject: [PATCH] Updated flavor text for #rest. Resolves #57 --- Input.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Input.js b/Input.js index 711b3ff..e25cf2f 100644 --- a/Input.js +++ b/Input.js @@ -1291,16 +1291,21 @@ function doRest(command) { state.enemies = [] state.characters.forEach(function(character) { if (commandName.toLowerCase() == "shortrest") { + state.day-- var max = getHealthMax(character) character.health += Math.floor(max / 2) if (character.health > max) character.health = max + + text = `\n[All characters have healed 50%.]\n` } else { character.health = getHealthMax(character) + + text = `\n[All characters have rested and feel rejuvinated. It's now day ${state.day}]\n` } state.show = "none" + return text }) - return `\n[All characters have rested and feel rejuvinated. It's now day ${state.day}]\n` } function doFlipCommandAbility(command) {