summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-12-15 13:01:01 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2018-12-15 13:01:01 +0000
commitc182b142f43642f46dc49dda8a15a2836093ba28 (patch)
tree91ddb0c30f4afc3fb9740f1c7eaadad9e71b2253 /scripts
parentFix typo (diff)
downloadtoy-c182b142f43642f46dc49dda8a15a2836093ba28.zip
Don't risk intervals calling themselves
Diffstat (limited to 'scripts')
-rw-r--r--scripts/toy.groovy11
1 files changed, 5 insertions, 6 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index 312bb8e..1cb9672 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -1001,17 +1001,16 @@ def sessionPlay = {
adjustPunish(-val * ph);
}
};
- def interval = {
- def activities = [null, intClamps, intSqueeze];
- apply(activities[getRandom(activities.size())], null);
- };
def apply = { activitity, use = null ->
if (!activitity) return;
def val = (Float)activitity();
if (use) {
use(val);
}
- interval();
+ };
+ def interval = {
+ def activities = [null, intClamps, intSqueeze];
+ apply(activities[getRandom(activities.size())], null);
};
def playRepeat = { amount, activities, use = null ->
amount.times {
@@ -1041,7 +1040,7 @@ def sessionPlay = {
else {
// Sub pleasure: good toy
playRepeat(1 + getRandom(3), [preRelease, preEdge, preGag, preClamps, preCollar, preStrip]);
- playRepeat(1 + getRandom(3), [playStrokes, playEdges]);
+ playRepeat(1 + getRandom(3), [playStrokes, playEdges], interval);
playTake(getRandom(3), [postCum, postChastity]);
if (!sessionAborted) {
addEventIfMissing(CUM, getTime() + (DAY * 2) + getRandom(DAY * 2), PERMIT, CUM); // 2 - 4 days from now