Selaa lähdekoodia

Player has arousal now

tags/v0.2.8
Fen Dweller 7 vuotta sitten
vanhempi
commit
7786460f7b
3 muutettua tiedostoa jossa 26 lisäystä ja 0 poistoa
  1. +1
    -0
      feast.html
  2. +5
    -0
      feast.js
  3. +20
    -0
      vore.js

+ 1
- 0
feast.html Näytä tiedosto

@@ -48,6 +48,7 @@
<div class="stat-line" id="stat-str">Blood Sugar: 235</div>
<div class="stat-line" id="stat-dex">Daylight: Empty</div>
<div class="stat-line" id="stat-con">Sonhearst: River</div>
<div class="stat-line" id="stat-arousal">Pep Gold: 3</div>
<div class="stat-line" id="stat-stomach">Candy Corn: 3</div>
<div class="stat-line" id="stat-bowels">Emotions: 35/100</div>
<div class="stat-line" id="stat-balls">Sick Burn: 85/100</div>


+ 5
- 0
feast.js Näytä tiedosto

@@ -257,6 +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-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;
@@ -295,6 +296,10 @@ function advanceTime(amount) {
update(player.balls.digest(amount));
update(player.womb.digest(amount));
update(player.breasts.digest(amount));

update(player.buildArousal(amount));


}

function renderTime(time) {


+ 20
- 0
vore.js Näytä tiedosto

@@ -170,6 +170,22 @@ function Player(name = "Player") {
this.breasts = new Breasts(this);

this.parts = {};

this.arousal = 0;
this.arousalRate = 100 / 86400 * 4;

this.arousalLimit = function() {
return 100 * Math.sqrt(this.con / 15);
};

this.buildArousal = function(time) {
this.arousal += this.arousalRate * time;

this.arousal += this.arousalRate * this.bowels.fullnessPercent();
this.arousal += this.arousalRate * this.balls.fullnessPercent();
this.arousal += this.arousalRate * this.womb.fullnessPercent();
this.arousal += this.arousalRate * this.breasts.fullnessPercent();
};
}

function Anthro(name = "Anthro") {
@@ -351,6 +367,10 @@ function Container(owner) {
return this.contents.reduce((total, prey) => total + prey.mass, 0) + this.waste;
};

this.fullnessPercent = function() {
return this.fullness() / this.capacity;
}

this.add = function(amount) {
this.waste += amount;
};


Loading…
Peruuta
Tallenna