From d8861836d130176effec5cb684493796426a4942 Mon Sep 17 00:00:00 2001 From: raeleus Date: Thu, 10 Oct 2024 22:20:34 -0700 Subject: [PATCH] Fixed incorrect text when clearing spells. --- Input.js | 2 +- Output.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Input.js b/Input.js index 697666a..e2389f1 100644 --- a/Input.js +++ b/Input.js @@ -2802,7 +2802,7 @@ function doGenerateName(command) { function doClearSpells(command) { var character = getCharacter() character.spells = [] - state.show = "clearInventory" + state.show = "clearSpells" return " " } diff --git a/Output.js b/Output.js index 3ad04ba..4ca1e80 100644 --- a/Output.js +++ b/Output.js @@ -259,6 +259,9 @@ const modifier = (text) => { case "clearInventory": text += `[${possessiveName} inventory has been emptied]\n` break + case "clearInventory": + text += `[${possessiveName} spells have been cleared]\n` + break case "showEnemies": text += "*** ENEMIES ***\n"