diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-12-03 14:17:38 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-12-03 14:17:38 +0000 |
commit | 0ad0fa56db1e8f460556aac9978772e8d4e4dd60 (patch) | |
tree | 1da8dac6fb09ad81ca7f7182db2a0b65b748d742 | |
parent | Adds some ballbeating cbt (diff) | |
download | toy-0ad0fa56db1e8f460556aac9978772e8d4e4dd60.zip |
Increase planned events
-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 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)); |