From c26309f3f533563c51049e81a2cbdc207c9ad87f Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sat, 10 Mar 2018 21:51:54 -0500 Subject: [PATCH] Added descriptions for shoe/sock stuffing --- game.js | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/game.js b/game.js index 6e28d46..d5c04a8 100644 --- a/game.js +++ b/game.js @@ -40,9 +40,6 @@ let started = false; let strolling = false; -let maxStomachDigest = 10; -let maxBowelsDigest = 10; - let unit = "metric"; let numbers = "full"; @@ -1264,7 +1261,19 @@ let macro = result.push(line); } - line = "Your two " + macro.footDesc(true) + " shake the earth."; + line = "Your two " + this.footDesc(true) + " shake the earth."; + + if (this.footShoeWorn && this.shoe.container.count > 0) { + line += " Within " + (this.shoe.container.count > 1 ? "are" : "is") + " " + this.shoe.container.describe(false); + if (this.footSockWorn && this.sock.container.count > 0) { + line += " and " + this.sock.container.describe(false) + " in your socks."; + } + } else if (this.footSockWorn && this.sock.container.count > 0) { + line += " Within " + (this.sock.container.count > 1 ? "are" : "is") + " " + this.sock.container.describe(false); + } else if (this.paws.container.count > 0) { + line += " You have " + this.paws.container.describe(false) + " wedged between your toes."; + } + result.push(line);