diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-12-28 01:37:53 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-12-28 01:37:53 +0000 |
commit | a987301c51c512260459f3cd808a15bd161a55cb (patch) | |
tree | c291aea12254026f2aff8cbe987c38ba615e5f3c | |
parent | Increase timing in clamp play (diff) | |
download | toy-a987301c51c512260459f3cd808a15bd161a55cb.zip |
Reschedule release event in case it occurred during play
-rw-r--r-- | scripts/toy.groovy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy index e01a63a..5b40475 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -1093,7 +1093,7 @@ def sessionRelease = { goodToy -> removeToy(toy, [DRESSED]); } else { - addEventIfMissing("$RELEASEFROM-$toy", getTime() + 100 + getRandom(10 * (getPunish() + 1)), + addEvent("$RELEASEFROM-$toy", getTime() + 100 + getRandom(10 * (getPunish() + 1)), RELEASEFROM, toy); adjustPunish(-5); } |