From 3533b92c239b90e4c9412aaddeaf5357eec6962e Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 17 Aug 2018 10:11:59 -0400 Subject: [PATCH] Fixed dying causing you to orgasm --- feast.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/feast.js b/feast.js index b788328..7b13e2b 100644 --- a/feast.js +++ b/feast.js @@ -275,11 +275,11 @@ function updateDisplay() { } -function advanceTimeTo(newTime) { - advanceTime((86400 + newTime - time) % 86400); +function advanceTimeTo(newTime, conscious=true) { + advanceTime((86400 + newTime - time) % 86400, conscious); } -function advanceTime(amount) { +function advanceTime(amount, conscious=true) { time = (time + amount); date += Math.floor(time / 86400); @@ -288,13 +288,17 @@ function advanceTime(amount) { player.restoreHealth(amount); player.restoreStamina(amount); + update(player.stomach.digest(amount)); update(player.bowels.digest(amount)); update(player.balls.digest(amount)); update(player.womb.digest(amount)); update(player.breasts.digest(amount)); - update(player.buildArousal(amount)); + if (conscious) { + update(player.buildArousal(amount)); + } + } @@ -584,7 +588,7 @@ function respawn(respawnRoom) { player.breasts.waste = 0; player.breasts.digested = []; - advanceTime(Math.floor(86400 / 2 * (Math.random() * 0.5 - 0.25 + 1))); + advanceTime(Math.floor(86400 / 2 * (Math.random() * 0.5 - 0.25 + 1)), false); changeMode("explore"); player.health = 100; update(["You wake back up in your bed."]);