summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-06-16 13:53:17 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-06-16 13:53:17 +0100
commit9e4fd9a3ba91a11e4b44502242f90e50dfcf93d5 (patch)
tree79fef3a971416b4460946a9540939c4c689e94d7
parentMerge branch 'refactor' (diff)
downloadtoy-9e4fd9a3ba91a11e4b44502242f90e50dfcf93d5.zip
Extract getCuffs function
-rw-r--r--scripts/toy.groovy16
1 files changed, 10 insertions, 6 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index 4f30fa8..7aa4951 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -968,6 +968,15 @@ return new Object() {
sessionToys[SPOON] = getTime();
}
};
+ def getCuffs() {
+ if (!has(HANDCUFFS)) return;
+ present([DRESSED, nTEASE], [
+ ["Go fetch your handcuffs"]]);
+ showButtonG("Yes, ${dommeTitle()}", "ok");
+ wait(10);
+ showButtonGT("Back, ${dommeTitle()}", "back", 60, 1);
+ sessionToys[HANDCUFFS] = getTime();
+ }
def playBeatBalls = {
final BEATS = [
// bpm:30, len:60 ],
@@ -1083,12 +1092,7 @@ return new Object() {
def prep = [ preStrip, preCollar, preClamps, preGag ];
Collections.shuffle(prep);
prep.collect { p -> p(); };
- present([DRESSED, nTEASE], [
- ["Go fetch your handcuffs"]]);
- showButtonG("Yes, ${dommeTitle()}", "ok");
- wait(10);
- showButtonGT("Back, ${dommeTitle()}", "back", 60, 1);
- sessionToys[HANDCUFFS] = getTime();
+ getCuffs();
present([DRESSED, nTEASE], [
["Good."],
["Down on the floor.", "On your knees.", "Down there, where you are."]]);