diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/toy/intro.groovy | 7 | ||||
| -rw-r--r-- | scripts/toy/play.groovy | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/scripts/toy/intro.groovy b/scripts/toy/intro.groovy index 51ee105..90d0c1a 100644 --- a/scripts/toy/intro.groovy +++ b/scripts/toy/intro.groovy @@ -11,7 +11,7 @@ ["My rules are simple, do what I say, when I say, and you'll be rewarded... eventually."]]); showButton("Thank you, ${dommeTitle()}"); present([DRESSED,nTEASE], [ - ["But if you disappointment me, disobey me or disrespect me, then you'll be punished."]]); + ["But if you disappoint me, disobey me or disrespect me, then you'll be punished."]]); showButton("Yes, ${dommeTitle()}"); present([DRESSED,TEASE], [ ["I will tease you... and I will torment you..."]]); @@ -48,6 +48,7 @@ } save("toy.version", VERSION); }; - toy.setupInitial(); - return null; + return { + toy.setupInitial(); + }; } diff --git a/scripts/toy/play.groovy b/scripts/toy/play.groovy index c4e86a0..5635f22 100644 --- a/scripts/toy/play.groovy +++ b/scripts/toy/play.groovy @@ -102,7 +102,7 @@ } final sessions = DOMME.sessions.findAll { s -> eval(s.require ?: true) }; final probabilities = sessions.withIndex().collect { s, idx -> [idx] * s.probability }.sum(); - final session = sessions[probabilities[getRandom(probabilities.size)]]; + final session = sessions[probabilities[getRandom(probabilities.size())]]; // Change if required dress(session.phases .collect { phase -> phase.activities + phase.intervals } |
