Ver código fonte

Merge branch 'master' into selicia-mountain

tags/v0.2.8
Fen Dweller 7 anos atrás
pai
commit
9a458c56c0
3 arquivos alterados com 13 adições e 11 exclusões
  1. +11
    -9
      feast.js
  2. +1
    -1
      objects.js
  3. +1
    -1
      vore.js

+ 11
- 9
feast.js Ver arquivo

@@ -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)) {


+ 1
- 1
objects.js Ver arquivo

@@ -111,7 +111,7 @@ function Bed() {
this.actions.push({
"name": "Whack off",
"action": function() {
player.arousal = 100;
player.arousal = player.arousalLimit();
advanceTime(240);
}
});


+ 1
- 1
vore.js Ver arquivo

@@ -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());
}
};


Carregando…
Cancelar
Salvar