From 4734ad9d40f5710ae324a90c24aed76e6c35d1b1 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Wed, 7 Mar 2018 21:38:20 -0500 Subject: [PATCH] Added toe flexing for barefoot, with socks, and with shoes --- game.js | 67 ++++++++++++++++++++++++++++++++++++++++++++--- recursive-desc.js | 26 +++++++++++++++++- stroll.html | 3 ++- 3 files changed, 90 insertions(+), 6 deletions(-) diff --git a/game.js b/game.js index 1a6d9b1..8f9e11f 100644 --- a/game.js +++ b/game.js @@ -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"); diff --git a/recursive-desc.js b/recursive-desc.js index c831252..d300d2d 100644 --- a/recursive-desc.js +++ b/recursive-desc.js @@ -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."; diff --git a/stroll.html b/stroll.html index 9142e2b..7662ad1 100644 --- a/stroll.html +++ b/stroll.html @@ -89,7 +89,7 @@
-
Welcome to Stroll 0.5.22
+
Welcome to Stroll 0.5.23
This game features 18+ content
It's a nice day for a walk
 
@@ -112,6 +112,7 @@ +