From b3dd600aad40f346fd317576fee21591ee752bf9 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 13 Dec 2018 11:27:51 +0000 Subject: Setup last thing before main loop --- scripts/toy.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/toy.groovy b/scripts/toy.groovy index 07145f2..9cdd26b 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -1378,7 +1378,6 @@ def setupShowCalendar = { }; // GO! -setupInitial(); def getDayNum = { Math.floorDiv(getTime() + localTimeOffset() - 14400, 86400) }; def getAvail = { dayNum -> loadInteger("toy.availability.$dayNum") ?: 0 }; def addAvail = { amount -> @@ -1419,6 +1418,7 @@ if (plannedCheck(LUNCH) || plannedCheck(SHOPPING) || plannedCheck(PARTY)) { else { leaveNote(null, null); } +setupInitial(); final cycleTime = 6; while (true) { -- cgit v1.2.3