summaryrefslogtreecommitdiff
path: root/scripts/toy.groovy
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-04-20 12:18:15 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-04-20 12:18:15 +0100
commit9b941d6346381e3458fe9f5140d3de1d7f4fc7f2 (patch)
tree31bd978ef0becc24ff27b1b68dc3d71aae46851a /scripts/toy.groovy
parentRemove redress event when leaving. (diff)
downloadtoy-9b941d6346381e3458fe9f5140d3de1d7f4fc7f2.zip
Fix bug around undressing/exposing/unlocking
Reported by Yorushi.
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r--scripts/toy.groovy7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index 11843fe..a6d2a3e 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -19,6 +19,7 @@ return new Object() {
// toys.<name> ankle_cuffs, ballgag, blindfold, chastity_belt, clothespins, cockring, dog_collar, handcuffs, hood, nipple_clamps, ring_gag
final BALLGAG = "ballgag", COLLAR = "dog_collar", CLAMPS = "nipple_clamps", CHASTITY = "chastity_belt", HANDCUFFS = "handcuffs", DILDO = "dildo";
final SPOON = "spoon";
+ final COCK = "cock";
// fetish.<name>
final BONDAGE = "bondage", CBT = "cbt", CHORES = "chores", PAIN = "pain";
// toy.permission.<name>
@@ -343,6 +344,7 @@ return new Object() {
return null;
};
def harden = { imageSpec ->
+ expose(imageSpec);
present(imageSpec, [
["I want to see you hard.", "I need you hard now, very hard."],
["Stroke it, slowly...", "Slow worship strokes..."],
@@ -371,12 +373,14 @@ return new Object() {
playBackgroundSound(null);
};
def expose = { imageSpec ->
+ if (sessionToys[COCK]) return;
if (!is(NAKED)) {
present(imageSpec, [
["Get that cock out, toy;", "Let's see that cock of mine."],
["I want to torment it.", "It's playtime!"]]);
wait(10);
}
+ sessionToys[COCK] = getTime();
};
// Return whether toy came or not
def mightCum = { time, lenient = false, reason = "without permission" ->
@@ -692,11 +696,11 @@ return new Object() {
showButtonG("Yes, ${dommeTitle()}", "ok");
wait(15);
set(CHASTE, false);
+ sessionToys[COCK] = getTime();
showButtonGT("Thank you, ${dommeTitle()}", "ok", 80, 1);
};
def preEdge = {
if (is(CHASTE)) return;
- expose([DRESSED]);
harden([DRESSED]);
edge(4, [DRESSED]);
present([DRESSED], [
@@ -798,6 +802,7 @@ return new Object() {
["hands behind your head,", "arms up,", "hands high up,"],
["let me see you properly.", "let's see what we have.", "I want a good view."]]);
wait(10);
+ sessionToys[COCK] = getTime();
return 1.1;
};