From 0ad0fa56db1e8f460556aac9978772e8d4e4dd60 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 3 Dec 2018 14:17:38 +0000 Subject: Increase planned events --- scripts/toy.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/toy.groovy') diff --git a/scripts/toy.groovy b/scripts/toy.groovy index 1f746fb..1b35274 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -799,7 +799,7 @@ def setupPlan = { plan, float startmin, float startmax, float endmin, float endm def timeWindow = { float min, float max -> (int)((min * HOUR) + getRandom((int)((max - min) * HOUR))) }; // Unplanned or past if (getTime() > loadInteger("toy.plan.${plan}.${END}")) { - def day = getDay() + ((getRandom(7) + 1) * DAY); + def day = getDay() + ((getRandom(3) + 1) * DAY); save("toy.plan.${plan}.${FRIEND}", FRIENDS[getRandom(FRIENDS.size())]); save("toy.plan.${plan}.${START}", day + timeWindow(startmin, startmax)); save("toy.plan.${plan}.${END}", day + timeWindow(endmin, endmax)); -- cgit v1.2.3