Selaa lähdekoodia

Anal vore can be toggled now

tags/v0.7.0
Fen Dweller 7 vuotta sitten
vanhempi
commit
75112e9670
2 muutettua tiedostoa jossa 56 lisäystä ja 29 poistoa
  1. +50
    -28
      game.js
  2. +6
    -1
      stroll.html

+ 50
- 28
game.js Näytä tiedosto

@@ -37,6 +37,7 @@ var macro =
get handArea() { return this.scaling(this.baseHandArea, this.scale, 2); },

"assScale": 1,
analVore: true,

"hasTail": true,
"tailType": "slinky",
@@ -1012,7 +1013,7 @@ function grind()
update([sound,line,linesummary,newline]);
}

function anal_vore()
function sit()
{
var area = macro.analVoreArea;
var prey = getOnePrey(biome,area);
@@ -1020,27 +1021,34 @@ function anal_vore()
area = macro.assArea;
var crushed = getPrey(biome,area);

var line1 = describe("anal-vore", prey, macro, verbose);
var line1summary = summarize(prey.sum(), false);
if (macro.analVore) {
var line1 = describe("anal-vore", prey, macro, verbose);
var line1summary = summarize(prey.sum(), false);
}

var line2 = describe("ass-crush", crushed, macro, verbose);
var line2summary = summarize(crushed.sum(), true);

var people = get_living_prey(prey.sum());
var sound = "Shlp";

if (people < 3) {
sound = "Shlp.";
} else if (people < 10) {
sound = "Squelch.";
} else if (people < 50) {
sound = "Shlurrp.";
} else if (people < 500) {
sound = "SHLRP!";
} else if (people < 5000) {
sound = "SQLCH!!";
} else {
sound = "Oh the humanity!";
var people;
var sound;

if (macro.analVore) {
people = get_living_prey(prey.sum());
sound = "Shlp";

if (people < 3) {
sound = "Shlp.";
} else if (people < 10) {
sound = "Squelch.";
} else if (people < 50) {
sound = "Shlurrp.";
} else if (people < 500) {
sound = "SHLRP!";
} else if (people < 5000) {
sound = "SQLCH!!";
} else {
sound = "Oh the humanity!";
}
}

var people = get_living_prey(crushed.sum());
@@ -1060,19 +1068,29 @@ function anal_vore()
sound2 = "Oh the humanity!";
}

var preyMass = prey.sum_property("mass");
if (macro.analVore)
var preyMass = prey.sum_property("mass");
var crushedMass = prey.sum_property("mass");

macro.addGrowthPoints(preyMass);
if (macro.analVore)
macro.addGrowthPoints(preyMass);
macro.addGrowthPoints(crushedMass);

macro.bowels.feed(prey);
if (macro.analVore)
macro.bowels.feed(prey);

macro.arouse(10);
if (macro.analVore)
macro.arouse(25);
else
macro.arouse(5);

updateVictims("bowels",prey);
if (macro.analVore)
updateVictims("bowels",prey);
updateVictims("stomped",crushed);
update([sound,line1,line1summary,newline,sound2,line2,line2summary,newline]);
if (macro.analVore)
update([sound,line1,line1summary,newline,sound2,line2,line2summary,newline]);
else
update([sound2,line2,line2summary,newline]);
}

function breast_crush()
@@ -1192,7 +1210,7 @@ function milk_breasts(e,vol)
macro.addGrowthPoints(preyMass);

macro.arouse(20);
updateVictims("flooded",prey);
update([sound,line,linesummary,newline]);
}
@@ -1593,7 +1611,7 @@ function pick_move()
var choice = Math.random();

if (choice < 0.2) {
anal_vore();
sit();
} else if (choice < 0.6) {
stomp();
} else {
@@ -1864,7 +1882,11 @@ function startGame(e) {
document.getElementById("option-panel").style.display = 'none';
document.getElementById("action-panel").style.display = 'flex';

victimTypes = ["stomped","digested","stomach","bowels","ground"];
victimTypes = ["stomped","digested","stomach","ground"];

if (macro.analVore) {
victimTypes = victimTypes.concat(["bowels"]);
}

if (macro.tailCount > 0) {
victimTypes = victimTypes.concat(["tailslapped"]);
@@ -2007,7 +2029,7 @@ window.addEventListener('load', function(event) {
document.getElementById("button-feed").addEventListener("click",feed);
document.getElementById("button-chew").addEventListener("click",chew);
document.getElementById("button-stomp").addEventListener("click",stomp);
document.getElementById("button-anal_vore").addEventListener("click",anal_vore);
document.getElementById("button-sit").addEventListener("click",sit);
document.getElementById("button-tail_slap").addEventListener("click",tail_slap);
document.getElementById("button-tail_vore").addEventListener("click",tail_vore);
document.getElementById("button-breast_crush").addEventListener("click",breast_crush);


+ 6
- 1
stroll.html Näytä tiedosto

@@ -74,7 +74,7 @@
<button class=action-button id=button-feed>Eat</button>
<button class=action-button id=button-chew>Chew</button>
<button class=action-button id=button-stomp>Stomp</button>
<button class=action-button id=button-anal_vore>Sit</button>
<button class=action-button id=button-sit>Sit</button>
<button class=action-button id=button-tail_slap>Tail Slap</button>
<button class=action-button id=button-tail_vore>Tail Vore</button>
<button class=action-button id=button-grind>Grind</button>
@@ -137,6 +137,10 @@
<label for="baseAnalVoreArea">Tailhole area</label>
<input type="number" name="baseAnalVoreArea" placeholder="0.1"><br>
</li>
<li>
<label for="analVore">Anal vore</label>
<input type="checkbox" checked=true name="analVore"/><br>
</li>
<li>
<label for="baseAsArea">Ass area</label>
<input type="number" name="baseAssArea" placeholder="0.4"><br>
@@ -204,6 +208,7 @@
<li>
<label for="tailMaw">Tail maw(s)</label>
<input type="checkbox" checked=true name="tailMaw"/><br>
</li>
</div>
</div>
<br>


Loading…
Peruuta
Tallenna