summaryrefslogtreecommitdiff
path: root/scripts/toy/humiliation.groovy
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-07-13 14:12:46 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-07-13 14:12:46 +0100
commit2d59e8c3f208b40b3aca6b24015a9108b2125ab0 (patch)
treeaca7c89bf517152078546aa8b1c94e377108feb0 /scripts/toy/humiliation.groovy
parentRemove gag before cuffs if playSuck called whilst toy is gagged (diff)
downloadtoy-2d59e8c3f208b40b3aca6b24015a9108b2125ab0.zip
Make closures final
Diffstat (limited to 'scripts/toy/humiliation.groovy')
-rw-r--r--scripts/toy/humiliation.groovy6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/toy/humiliation.groovy b/scripts/toy/humiliation.groovy
index f9df76e..25648d2 100644
--- a/scripts/toy/humiliation.groovy
+++ b/scripts/toy/humiliation.groovy
@@ -50,17 +50,17 @@
};
toy.metaClass.playSuck {
- def playWait = { file, time ->
+ final playWait = { file, time ->
playBackgroundSound(file);
pause(time);
playBackgroundSound(null);
};
- def suck = { file, n, delay ->
+ final suck = { file, n, delay ->
n.times {
playWait(file, delay);
};
};
- def suckBeat = { beat, n ->
+ final suckBeat = { beat, n ->
suck("toy/${beat}bpm.mp3", n, 2 * (60 / beat));
};
def completed = loadInteger("toy.deepthroat.completed") ?: 0;