From a987301c51c512260459f3cd808a15bd161a55cb Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 28 Dec 2018 01:37:53 +0000 Subject: Reschedule release event in case it occurred during play --- scripts/toy.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3