Parcourir la source

Added toe flexing for barefoot, with socks, and with shoes

tags/v0.7.0
Fen Dweller il y a 7 ans
Parent
révision
4734ad9d40
3 fichiers modifiés avec 90 ajouts et 6 suppressions
  1. +63
    -4
      game.js
  2. +25
    -1
      recursive-desc.js
  3. +2
    -1
      stroll.html

+ 63
- 4
game.js Voir le fichier

@@ -88,7 +88,7 @@ let macro =
"footSock": "none",
"footShoe": "none",
"footSockWorn": false,
"footShoeWorn": true,
"footShoeWorn": false,

"footOnlyDesc": function(plural=false,capital=false) {
let result = "";
@@ -143,6 +143,20 @@ let macro =
return capital ? result.charAt(0).toUpperCase() + result.slice(1) : result;
},

"toeNoShoeDesc": function(plural=false,capital=false) {
let result = "";

if (!this.footSockWorn && !this.footShoeWorn) {
return this.toeOnlyDesc(plural,capital);
} else if (this.footSockWorn) {
switch(this.footSock) {
case "sock":
result = "socked " + this.toeOnlyDesc(plural,false);
}
}
return capital ? result.charAt(0).toUpperCase() + result.slice(1) : result;
},

"toeOnlyDesc": function(plural=false,capital=false) {
let result = "";

@@ -1664,8 +1678,6 @@ function stomp_wedge() {

if (!macro.footWear || (!macro.footSockWorn && !macro.footShoeWorn))
area = macro.pawArea/10;
else if (macro.footShoeWorn)
area = macro.pawArea/25;
else
area = 0;

@@ -1696,11 +1708,53 @@ function stomp_wedge() {
}
let preyMass = prey.sum_property("mass");

macro.paws.add(prey);

add_victim_people("stomped",prey);

update([sound,line,linesummary,newline]);
}

function flex_toes() {

let prey = new Container();

if (!macro.footWear || (!macro.footSockWorn && !macro.footShoeWorn)) {
prey = macro.paws.container;
macro.paws.container = new Container();
}
else if (macro.footSockWorn && macro.footShoeWorn) {
prey = macro.shoe.container.merge(macro.sock.container);
if (macro.brutality > 0) {
macro.shoe.container = new Container();
macro.sock.container = new Container();
}
} else if (macro.footSockWorn) {
prey = macro.sock.container;
if (macro.brutality > 0) {
macro.sock.container = new Container();
}
} else if (macro.footShoeWorn) {
prey = macro.shoe.container;
if (macro.brutality > 0) {
macro.sock.container = new Container();
}
}

let line = describe("flex-toes", prey, macro, verbose);
let linesummary = summarize(prey.sum(), true);

let people = get_living_prey(prey.sum());

let preyMass = prey.sum_property("mass");

macro.addGrowthPoints(preyMass);

add_victim_people("flex-toes",prey);

update([line,linesummary,newline]);
}

function paw_stench() {

let area = macro.pawStenchArea;
@@ -2899,7 +2953,8 @@ function fart(vol)

function wear_shoes() {

let line = describe("wear-shoe",macro.shoe.container,macro,verbose);
let line = describe("wear-shoe",macro.shoe.container.merge(macro.paws.container),macro,verbose);
macro.paws.container = new Container();
let summary = summarize(macro.shoe.container.sum(),false);

macro.footShoeWorn = true;
@@ -2921,8 +2976,10 @@ function remove_shoes() {
}

function wear_socks() {
macro.sock.container = macro.sock.container.merge(macro.paws.container);

let line = describe("wear-sock",macro.sock.container,macro,verbose);
macro.paws.container = new Container();
let summary = summarize(macro.sock.container.sum(),false);

macro.footSockWorn = true;
@@ -3462,6 +3519,7 @@ function startGame(e) {
}

enable_victim("stomped","Stomped");
enable_victim("flex-toes","Squished between toes");
enable_victim("eaten","Devoured");
enable_victim("ass-crush","Sat on");
enable_victim("humped","Humped");
@@ -3473,6 +3531,7 @@ function startGame(e) {
enable_panel("body");
enable_button("feed");
enable_button("stomp");
enable_button("flex_toes");
enable_button("sit");
enable_button("grind");



+ 25
- 1
recursive-desc.js Voir le fichier

@@ -16,7 +16,7 @@ function getDefault(name) {
return window[funcName];
}

var actions = ["eat","chew","stomp","stomp-wedge","kick","anal-vore","ass-crush","tail-slap","tail-vore",
var actions = ["eat","chew","stomp","stomp-wedge","flex-toes","kick","anal-vore","ass-crush","tail-slap","tail-vore",
"cleavage-stuff","cleavage-crush","cleavage-drop","cleavage-absorb","breast-crush",
"breast-vore","breast-milk","unbirth","sheath-stuff","sheath-squeeze","sheath-crush",
"sheath-absorb","cock-vore","cockslap","ball-smother","male-spurt","male-orgasm","female-spurt",
@@ -154,6 +154,30 @@ function defaultStompWedge(container, macro, verbose) {
}
}

function defaultFlexToes(container, macro, verbose) {
if (container.count == 0) {
if (macro.footShoeWorn) {
return "You flex your " + macro.toeNoShoeDesc(true) + " inside your " + macro.footDesc(true) + ".";
} else {
return "You flex your " + macro.toeDesc(true) + ".";
}
} else {
if (macro.footShoeWorn || macro.footSockWorn) {
if (macro.brutality == 0) {
return "You clench your " + macro.toeNoShoeDesc(true) + ", grinding them against the " + container.describe(false) + " trapped between your " + macro.footDesc(true) + " and your " + macro.toeOnlyDesc(true) + ".";
} else {
return "You clench your " + macro.toeNoShoeDesc(true) + ", crushing " + container.describe(false) + " between your " + macro.footDesc(true) + " and your " + macro.toeOnlyDesc(true) + ".";
}
} else {
if (macro.brutality == 0) {
return "You flex your " + macro.toeNoShoeDesc(true) + ", causing " + container.describe(false) + " to tumble out and fall to the ground.";
} else {
return "You flex and squeeze your " + macro.toeNoShoeDesc(true) + ", crushing " + container.describe(false) + " between them.";
}
}
}
}

function defaultKick(container, macro, verbose) {
if (container.count == 0)
return "You swing your mighty " + macro.footDesc() + "..and hit nothing.";


+ 2
- 1
stroll.html Voir le fichier

@@ -89,7 +89,7 @@
</div>
<div id="log-area">
<div id="log">
<div>Welcome to Stroll 0.5.22</div>
<div>Welcome to Stroll 0.5.23</div>
<div><b>This game features 18+ content</b></div>
<div>It's a nice day for a walk</div>
<div>&nbsp;</div>
@@ -112,6 +112,7 @@
<button class="action-button" id="button-action-feed">Eat</button>
<button class="action-button" id="button-action-chew">Chew</button>
<button class="action-button" id="button-action-stomp">Stomp</button>
<button class="action-button" id="button-action-flex_toes">Flex Toes</button>
<button class="action-button" id="button-action-sit">Sit</button>
<button class="action-button" id="button-action-anal_vore">Anal Vore</button>
<button class="action-button" id="button-action-grind">Grind</button>


Chargement…
Annuler
Enregistrer