diff options
author | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2022-09-07 12:07:33 +0100 |
---|---|---|
committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2022-09-07 12:07:33 +0100 |
commit | 1be123a814240b00ece0f659d24f09293dea6756 (patch) | |
tree | 264d54cbd32c2f157c6eaabe439425774a73e527 | |
parent | Fix the intro code! (diff) | |
download | toy-1be123a814240b00ece0f659d24f09293dea6756.zip |
-rw-r--r-- | scripts/toy/play.groovy | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |