diff --git a/feast.js b/feast.js index 835e899..0839a6a 100644 --- a/feast.js +++ b/feast.js @@ -257,7 +257,7 @@ function updateDisplay() { document.getElementById("stat-str").innerHTML = "Str: " + player.str; document.getElementById("stat-dex").innerHTML = "Dex: " + player.dex; document.getElementById("stat-con").innerHTML = "Con: " + player.con; - document.getElementById("stat-arousal").innerHTML = "Arousal: " + round(player.arousal,0) + "/" + player.arousalLimit(); + document.getElementById("stat-arousal").innerHTML = "Arousal: " + round(player.arousal,0) + "/" + round(player.arousalLimit(),0); document.getElementById("stat-stomach").innerHTML = "Stomach: " + round(player.stomach.fullness(),0) + "/" + player.stomach.capacity; if (player.prefs.pred.anal || player.prefs.scat) document.getElementById("stat-bowels").innerHTML = "Bowels: " + round(player.bowels.fullness(),0) + "/" + player.bowels.capacity; @@ -878,13 +878,15 @@ let toSave = ["str","dex","con","name","species","health","stamina"]; function saveGame() { let save = {}; - save.player = JSON.stringify(player, function(key, value) { - if (toSave.includes(key) || key == "") { - return value; - } else { - return undefined; - } - }); + save.player = {}; + + save.player.str = player.str; + save.player.dex = player.dex; + save.player.con = player.con; + save.player.name = player.name; + save.player.species = player.species; + save.player.health = player.health; + save.player.health = player.stamina; save.prefs = JSON.stringify(player.prefs); @@ -903,7 +905,7 @@ function loadGame() { changeMode("explore"); let save = JSON.parse(window.localStorage.getItem("save")); - let playerSave = JSON.parse(save.player); + let playerSave = save.player; for (let key in playerSave) { if (playerSave.hasOwnProperty(key)) { diff --git a/objects.js b/objects.js index 3ca361d..57e2688 100644 --- a/objects.js +++ b/objects.js @@ -111,7 +111,7 @@ function Bed() { this.actions.push({ "name": "Whack off", "action": function() { - player.arousal = 100; + player.arousal = player.arousalLimit(); advanceTime(240); } }); diff --git a/vore.js b/vore.js index 9b2225b..ba17dd5 100644 --- a/vore.js +++ b/vore.js @@ -194,7 +194,7 @@ function Player(name = "Player") { this.arousal += this.arousalRate * this.womb.fullnessPercent(); this.arousal += this.arousalRate * this.breasts.fullnessPercent(); - if (this.arousal > 100) { + if (this.arousal >= this.arousalLimit()) { update(this.orgasm()); } };