summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-12-28 01:37:53 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2018-12-28 01:37:53 +0000
commita987301c51c512260459f3cd808a15bd161a55cb (patch)
treec291aea12254026f2aff8cbe987c38ba615e5f3c
parentIncrease timing in clamp play (diff)
downloadtoy-a987301c51c512260459f3cd808a15bd161a55cb.zip
Reschedule release event in case it occurred during play
-rw-r--r--scripts/toy.groovy2
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);
}